diff --git a/.github/workflows/main-build.yml b/.github/workflows/main-build.yml
index b13694950..02825a38a 100644
--- a/.github/workflows/main-build.yml
+++ b/.github/workflows/main-build.yml
@@ -17,8 +17,8 @@ jobs:
# TODO_TECHDEBT: upgrade to the latest Ignite (the latest at the moment of creating a note is 0.28). Need to downgrade to fix CI pipelines. Might be done in scope of #240.
run: |
# curl https://get.ignite.com/cli! | bash
- wget https://github.com/ignite/cli/releases/download/v0.27.2/ignite_0.27.2_linux_amd64.tar.gz
- tar -xzf ignite_0.27.2_linux_amd64.tar.gz
+ wget https://github.com/ignite/cli/releases/download/v28.2.0/ignite_28.2.0_linux_amd64.tar.gz
+ tar -xzf ignite_28.2.0_linux_amd64.tar.gz
sudo mv ignite /usr/local/bin/ignite
ignite version
@@ -29,7 +29,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
- go-version: "1.20.10"
+ go-version: "1.21.6"
- name: Install CI dependencies
run: make install_ci_deps
@@ -103,11 +103,11 @@ jobs:
sparse-checkout: |
.github
- - id: 'auth'
- name: 'Authenticate to Google Cloud'
- uses: 'google-github-actions/auth@v1'
+ - id: "auth"
+ name: "Authenticate to Google Cloud"
+ uses: "google-github-actions/auth@v1"
with:
- credentials_json: '${{ secrets.GKE_PROTOCOL_US_CENTRAL }}'
+ credentials_json: "${{ secrets.GKE_PROTOCOL_US_CENTRAL }}"
- uses: google-github-actions/get-gke-credentials@v1
with:
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index b843265b6..ea7f2edd3 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -21,8 +21,8 @@ jobs:
# TODO_TECHDEBT: upgrade to the latest Ignite (the latest at the moment of creating a note is 0.28). Need to downgrade to fix CI pipelines. Might be done in scope of #240.
run: |
# curl https://get.ignite.com/cli! | bash
- wget https://github.com/ignite/cli/releases/download/v0.27.2/ignite_0.27.2_linux_amd64.tar.gz
- tar -xzf ignite_0.27.2_linux_amd64.tar.gz
+ wget https://github.com/ignite/cli/releases/download/v28.2.0/ignite_28.2.0_linux_amd64.tar.gz
+ tar -xzf ignite_28.2.0_linux_amd64.tar.gz
sudo mv ignite /usr/local/bin/ignite
ignite version
@@ -33,7 +33,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
- go-version: "1.20.10"
+ go-version: "1.21.6"
- name: Install CI dependencies
run: make install_ci_deps
diff --git a/.gitignore b/.gitignore
index 11d396a32..9c6d636a9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,10 +49,6 @@ localnet/*/config/*.json
# Frontend utils
ts-client/
-# Proto artifacts
-**/*.pb.go
-**/*.pb.gw.go
-
# Mock
**/*_mock.go
diff --git a/.tool-versions b/.tool-versions
index 44c16157f..9b7a6107e 100644
--- a/.tool-versions
+++ b/.tool-versions
@@ -1,4 +1,4 @@
# Run `asdf plugin add golang` and `asdf install` to install the dependencies,
# and `asdf current` to switch to the versions of dependencies listed below
-golang 1.20.10
-go 1.20.10
+golang 1.21.6
+go 1.21.6
diff --git a/Dockerfile.dev b/Dockerfile.dev
index be65919a6..585aefa4d 100644
--- a/Dockerfile.dev
+++ b/Dockerfile.dev
@@ -1,12 +1,12 @@
# This Dockerfile is used to build container image for development purposes.
# It intentionally contains no security features, ships with code and troubleshooting tools.
-FROM golang:1.20 as base
+FROM golang:1.21.6 as base
RUN apt update && \
apt-get install -y \
- ca-certificates net-tools kubernetes-client \
- curl jq make vim less dnsutils
+ ca-certificates net-tools kubernetes-client \
+ curl jq make vim less dnsutils
# enable faster module downloading.
ENV GOPROXY https://proxy.golang.org
diff --git a/Makefile b/Makefile
index 4db767ccb..105a2cefc 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,7 @@ install_ci_deps: ## Installs `mockgen` and other go tools
go install "github.com/golang/mock/mockgen@v1.6.0" && mockgen --version
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest && golangci-lint --version
go install golang.org/x/tools/cmd/goimports@latest
+ go install github.com/mikefarah/yq/v4@latest
########################
### Makefile Helpers ###
@@ -49,8 +50,8 @@ check_go_version:
MAJOR_VERSION=$$(echo $$GO_VERSION | cut -d "." -f 1) && \
MINOR_VERSION=$$(echo $$GO_VERSION | cut -d "." -f 2) && \
\
- if [ "$$MAJOR_VERSION" -ne 1 ] || [ "$$MINOR_VERSION" -ge 21 ] || [ "$$MINOR_VERSION" -le 18 ] ; then \
- echo "Invalid Go version. Expected 1.19.x or 1.20.x but found $$GO_VERSION"; \
+ if [ "$$MAJOR_VERSION" -ne 1 ] || [ "$$MINOR_VERSION" -le 20 ] ; then \
+ echo "Invalid Go version. Expected 1.21.x or newer but found $$GO_VERSION"; \
exit 1; \
fi
@@ -140,6 +141,13 @@ proto_regen: ## Delete existing protobuf artifacts and regenerate them
find . \( -name "*.pb.go" -o -name "*.pb.gw.go" \) | xargs --no-run-if-empty rm
ignite generate proto-go --yes
+.PHONY: proto_clean_pulsar
+proto_clean_pulsar: ## TODO: explain...
+ @find ./ -name "*.go" | xargs --no-run-if-empty sed -i -E 's,(^[[:space:]_[:alnum:]]+"github.com/pokt-network/poktroll/api.+"),///\1,'
+ find ./ -name "*.pulsar.go" | xargs --no-run-if-empty rm
+ ignite generate proto-go --yes
+ find ./ -name "*.go" | xargs --no-run-if-empty sed -i -E 's,^///([[:space:]_[:alnum:]]+"github.com/pokt-network/poktroll/api.+"),\1,'
+
#######################
### Docker Helpers ###
#######################
@@ -163,16 +171,27 @@ localnet_up: ## Starts localnet
.PHONY: localnet_down
localnet_down: ## Delete resources created by localnet
tilt down
- kubectl delete secret celestia-secret || exit 1
.PHONY: localnet_regenesis
localnet_regenesis: ## Regenerate the localnet genesis file
# NOTE: intentionally not using --home
flag to avoid overwriting the test keyring
- ignite chain init
- mkdir -p $(POKTROLLD_HOME)/config/
- cp -r ${HOME}/.poktroll/keyring-test $(POKTROLLD_HOME)
- cp ${HOME}/.poktroll/config/*_key.json $(POKTROLLD_HOME)/config/
- cp ${HOME}/.poktroll/config/genesis.json $(POKTROLLD_HOME)/config/
+# NB: Currently the stake => power calculation is constant; however, cosmos-sdk
+# intends to make this parameterizable in the future.
+ @echo "Initializing chain..."
+ @set -e ;\
+ ignite chain init ;\
+ mkdir -p $(POKTROLLD_HOME)/config/ ;\
+ cp -r ${HOME}/.poktroll/keyring-test $(POKTROLLD_HOME) ;\
+ cp ${HOME}/.poktroll/config/*_key.json $(POKTROLLD_HOME)/config/ ;\
+ ADDRESS=$$(jq -r '.address' $(POKTROLLD_HOME)/config/priv_validator_key.json) ;\
+ PUB_KEY=$$(jq -r '.pub_key' $(POKTROLLD_HOME)/config/priv_validator_key.json) ;\
+ POWER=$$(yq ".validators[0].bonded" ./config.yml | sed 's,000000upokt,,') ;\
+ NAME=$$(yq ".validators[0].name" ./config.yml) ;\
+ echo "Regenerating genesis file with new validator..." ;\
+ jq --argjson pubKey "$$PUB_KEY" '.consensus["validators"]=[{"address": "'$$ADDRESS'", "pub_key": $$pubKey, "power": "'$$POWER'", "name": "'$$NAME'"}]' ${HOME}/.poktroll/config/genesis.json > temp.json ;\
+ mv temp.json ${HOME}/.poktroll/config/genesis.json ;\
+ cp ${HOME}/.poktroll/config/genesis.json $(POKTROLLD_HOME)/config/ ;\
+
# TODO_BLOCKER(@okdas): Figure out how to copy these over w/ a functional state.
# cp ${HOME}/.poktroll/config/app.toml $(POKTROLLD_HOME)/config/app.toml
@@ -224,12 +243,12 @@ itest: check_go_version ## Run tests iteratively (see usage for more)
.PHONY: go_mockgen
go_mockgen: ## Use `mockgen` to generate mocks used for testing purposes of all the modules.
find . -name "*_mock.go" | xargs --no-run-if-empty rm
- go generate ./x/application/types/
- go generate ./x/gateway/types/
- go generate ./x/supplier/types/
- go generate ./x/session/types/
+ # go generate ./x/application/types/
+ # go generate ./x/gateway/types/
+ # go generate ./x/supplier/types/
+ # go generate ./x/session/types/
go generate ./x/service/types/
- go generate ./x/tokenomics/types/
+ # go generate ./x/tokenomics/types/
go generate ./pkg/client/interface.go
go generate ./pkg/miner/interface.go
go generate ./pkg/relayer/interface.go
@@ -250,7 +269,7 @@ go_develop: proto_regen go_mockgen ## Generate protos and mocks
go_develop_and_test: go_develop go_test ## Generate protos, mocks and run all tests
.PHONY: load_test_simple
-load_test_simple: ## Runs the simpliest load test through the whole stack (appgate -> relayminer -> anvil)
+load_test_simple: ## Runs the simplest load test through the whole stack (appgate -> relayminer -> anvil)
k6 run load-testing/tests/appGateServerEtherium.js
#############
@@ -644,4 +663,4 @@ act_list: check_act ## List all github actions that can be executed locally with
act_reviewdog: check_act check_gh ## Run the reviewdog workflow locally like so: `GITHUB_TOKEN=$(gh auth token) make act_reviewdog`
$(eval CONTAINER_ARCH := $(shell make -s detect_arch))
@echo "Detected architecture: $(CONTAINER_ARCH)"
- act -v -s GITHUB_TOKEN=$(GITHUB_TOKEN) -W .github/workflows/reviewdog.yml --container-architecture $(CONTAINER_ARCH)
\ No newline at end of file
+ act -v -s GITHUB_TOKEN=$(GITHUB_TOKEN) -W .github/workflows/reviewdog.yml --container-architecture $(CONTAINER_ARCH)
diff --git a/Tiltfile b/Tiltfile
index 6102c2222..69f40ad31 100644
--- a/Tiltfile
+++ b/Tiltfile
@@ -97,7 +97,7 @@ local_resource(
docker_build_with_restart(
"poktrolld",
".",
- dockerfile_contents="""FROM golang:1.20.8
+ dockerfile_contents="""FROM golang:1.21.6
RUN apt-get -q update && apt-get install -qyy curl jq less
RUN go install github.com/go-delve/delve/cmd/dlv@latest
COPY bin/poktrolld /usr/local/bin/poktrolld
diff --git a/api/poktroll/service/genesis.pulsar.go b/api/poktroll/service/genesis.pulsar.go
new file mode 100644
index 000000000..576428f97
--- /dev/null
+++ b/api/poktroll/service/genesis.pulsar.go
@@ -0,0 +1,750 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ _ "cosmossdk.io/api/amino"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ shared "github.com/pokt-network/poktroll/api/poktroll/shared"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var _ protoreflect.List = (*_GenesisState_2_list)(nil)
+
+type _GenesisState_2_list struct {
+ list *[]*shared.Service
+}
+
+func (x *_GenesisState_2_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_GenesisState_2_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.Service)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_GenesisState_2_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.Service)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value {
+ v := new(shared.Service)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_GenesisState_2_list) NewElement() protoreflect.Value {
+ v := new(shared.Service)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_GenesisState_2_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_GenesisState protoreflect.MessageDescriptor
+ fd_GenesisState_params protoreflect.FieldDescriptor
+ fd_GenesisState_service_list protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_genesis_proto_init()
+ md_GenesisState = File_poktroll_service_genesis_proto.Messages().ByName("GenesisState")
+ fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
+ fd_GenesisState_service_list = md_GenesisState.Fields().ByName("service_list")
+}
+
+var _ protoreflect.Message = (*fastReflection_GenesisState)(nil)
+
+type fastReflection_GenesisState GenesisState
+
+func (x *GenesisState) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_GenesisState)(x)
+}
+
+func (x *GenesisState) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_genesis_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType
+var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{}
+
+type fastReflection_GenesisState_messageType struct{}
+
+func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_GenesisState)(nil)
+}
+func (x fastReflection_GenesisState_messageType) New() protoreflect.Message {
+ return new(fastReflection_GenesisState)
+}
+func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_GenesisState
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor {
+ return md_GenesisState
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_GenesisState) Type() protoreflect.MessageType {
+ return _fastReflection_GenesisState_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_GenesisState) New() protoreflect.Message {
+ return new(fastReflection_GenesisState)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage {
+ return (*GenesisState)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_GenesisState_params, value) {
+ return
+ }
+ }
+ if len(x.ServiceList) != 0 {
+ value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.ServiceList})
+ if !f(fd_GenesisState_service_list, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.GenesisState.params":
+ return x.Params != nil
+ case "poktroll.service.GenesisState.service_list":
+ return len(x.ServiceList) != 0
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.service.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.GenesisState.params":
+ x.Params = nil
+ case "poktroll.service.GenesisState.service_list":
+ x.ServiceList = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.service.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.GenesisState.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ case "poktroll.service.GenesisState.service_list":
+ if len(x.ServiceList) == 0 {
+ return protoreflect.ValueOfList(&_GenesisState_2_list{})
+ }
+ listValue := &_GenesisState_2_list{list: &x.ServiceList}
+ return protoreflect.ValueOfList(listValue)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.service.GenesisState does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.GenesisState.params":
+ x.Params = value.Message().Interface().(*Params)
+ case "poktroll.service.GenesisState.service_list":
+ lv := value.List()
+ clv := lv.(*_GenesisState_2_list)
+ x.ServiceList = *clv.list
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.service.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.GenesisState.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "poktroll.service.GenesisState.service_list":
+ if x.ServiceList == nil {
+ x.ServiceList = []*shared.Service{}
+ }
+ value := &_GenesisState_2_list{list: &x.ServiceList}
+ return protoreflect.ValueOfList(value)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.service.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.GenesisState.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ case "poktroll.service.GenesisState.service_list":
+ list := []*shared.Service{}
+ return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.GenesisState"))
+ }
+ panic(fmt.Errorf("message poktroll.service.GenesisState does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.GenesisState", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_GenesisState) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*GenesisState)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Params != nil {
+ l = options.Size(x.Params)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if len(x.ServiceList) > 0 {
+ for _, e := range x.ServiceList {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*GenesisState)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.ServiceList) > 0 {
+ for iNdEx := len(x.ServiceList) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.ServiceList[iNdEx])
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if x.Params != nil {
+ encoded, err := options.Marshal(x.Params)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*GenesisState)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Params == nil {
+ x.Params = &Params{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ServiceList", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.ServiceList = append(x.ServiceList, &shared.Service{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ServiceList[len(x.ServiceList)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/service/genesis.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// GenesisState defines the service module's genesis state.
+type GenesisState struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // params defines all the parameters of the module.
+ Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
+ ServiceList []*shared.Service `protobuf:"bytes,2,rep,name=service_list,json=serviceList,proto3" json:"service_list,omitempty"`
+}
+
+func (x *GenesisState) Reset() {
+ *x = GenesisState{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_genesis_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GenesisState) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GenesisState) ProtoMessage() {}
+
+// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
+func (*GenesisState) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_genesis_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *GenesisState) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+func (x *GenesisState) GetServiceList() []*shared.Service {
+ if x != nil {
+ return x.ServiceList
+ }
+ return nil
+}
+
+var File_poktroll_service_genesis_proto protoreflect.FileDescriptor
+
+var file_poktroll_service_genesis_proto_rawDesc = []byte{
+ 0x0a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x12, 0x10, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8e, 0x01, 0x0a, 0x0c, 0x47, 0x65,
+ 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x70, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52,
+ 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x41, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e,
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x42, 0xa8, 0x01, 0x0a, 0x14, 0x63,
+ 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74,
+ 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69,
+ 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca,
+ 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
+ 0x61, 0xea, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_service_genesis_proto_rawDescOnce sync.Once
+ file_poktroll_service_genesis_proto_rawDescData = file_poktroll_service_genesis_proto_rawDesc
+)
+
+func file_poktroll_service_genesis_proto_rawDescGZIP() []byte {
+ file_poktroll_service_genesis_proto_rawDescOnce.Do(func() {
+ file_poktroll_service_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_service_genesis_proto_rawDescData)
+ })
+ return file_poktroll_service_genesis_proto_rawDescData
+}
+
+var file_poktroll_service_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_service_genesis_proto_goTypes = []interface{}{
+ (*GenesisState)(nil), // 0: poktroll.service.GenesisState
+ (*Params)(nil), // 1: poktroll.service.Params
+ (*shared.Service)(nil), // 2: poktroll.shared.Service
+}
+var file_poktroll_service_genesis_proto_depIdxs = []int32{
+ 1, // 0: poktroll.service.GenesisState.params:type_name -> poktroll.service.Params
+ 2, // 1: poktroll.service.GenesisState.service_list:type_name -> poktroll.shared.Service
+ 2, // [2:2] is the sub-list for method output_type
+ 2, // [2:2] is the sub-list for method input_type
+ 2, // [2:2] is the sub-list for extension type_name
+ 2, // [2:2] is the sub-list for extension extendee
+ 0, // [0:2] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_service_genesis_proto_init() }
+func file_poktroll_service_genesis_proto_init() {
+ if File_poktroll_service_genesis_proto != nil {
+ return
+ }
+ file_poktroll_service_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_service_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GenesisState); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_service_genesis_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_service_genesis_proto_goTypes,
+ DependencyIndexes: file_poktroll_service_genesis_proto_depIdxs,
+ MessageInfos: file_poktroll_service_genesis_proto_msgTypes,
+ }.Build()
+ File_poktroll_service_genesis_proto = out.File
+ file_poktroll_service_genesis_proto_rawDesc = nil
+ file_poktroll_service_genesis_proto_goTypes = nil
+ file_poktroll_service_genesis_proto_depIdxs = nil
+}
diff --git a/api/poktroll/service/module/module.pulsar.go b/api/poktroll/service/module/module.pulsar.go
new file mode 100644
index 000000000..a7217c244
--- /dev/null
+++ b/api/poktroll/service/module/module.pulsar.go
@@ -0,0 +1,578 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package module
+
+import (
+ _ "cosmossdk.io/api/cosmos/app/v1alpha1"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Module protoreflect.MessageDescriptor
+ fd_Module_authority protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_module_module_proto_init()
+ md_Module = File_poktroll_service_module_module_proto.Messages().ByName("Module")
+ fd_Module_authority = md_Module.Fields().ByName("authority")
+}
+
+var _ protoreflect.Message = (*fastReflection_Module)(nil)
+
+type fastReflection_Module Module
+
+func (x *Module) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Module)(x)
+}
+
+func (x *Module) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_module_module_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Module_messageType fastReflection_Module_messageType
+var _ protoreflect.MessageType = fastReflection_Module_messageType{}
+
+type fastReflection_Module_messageType struct{}
+
+func (x fastReflection_Module_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Module)(nil)
+}
+func (x fastReflection_Module_messageType) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor {
+ return md_Module
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Module) Type() protoreflect.MessageType {
+ return _fastReflection_Module_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Module) New() protoreflect.Message {
+ return new(fastReflection_Module)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage {
+ return (*Module)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_Module_authority, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.module.Module.authority":
+ return x.Authority != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.service.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.module.Module.authority":
+ x.Authority = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.service.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.module.Module.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.service.module.Module does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.module.Module.authority":
+ x.Authority = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.service.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.module.Module.authority":
+ panic(fmt.Errorf("field authority of message poktroll.service.module.Module is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.service.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.module.Module.authority":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.module.Module"))
+ }
+ panic(fmt.Errorf("message poktroll.service.module.Module does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.module.Module", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_Module) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Module)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/service/module/module.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Module is the config object for the module.
+type Module struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority defines the custom module authority. If not set, defaults to the governance module.
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+}
+
+func (x *Module) Reset() {
+ *x = Module{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_module_module_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Module) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Module) ProtoMessage() {}
+
+// Deprecated: Use Module.ProtoReflect.Descriptor instead.
+func (*Module) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_module_module_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Module) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+var File_poktroll_service_module_module_proto protoreflect.FileDescriptor
+
+var file_poktroll_service_module_module_proto_rawDesc = []byte{
+ 0x0a, 0x24, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a,
+ 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c,
+ 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x22, 0x5a, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61,
+ 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
+ 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x32, 0xba, 0xc0, 0x96, 0xda, 0x01,
+ 0x2c, 0x0a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f,
+ 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0xd2, 0x01,
+ 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x4d,
+ 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x63, 0x6f,
+ 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f,
+ 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x4d, 0xaa, 0x02, 0x17, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
+ 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xca, 0x02, 0x17, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
+ 0xe2, 0x02, 0x23, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c,
+ 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75,
+ 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_service_module_module_proto_rawDescOnce sync.Once
+ file_poktroll_service_module_module_proto_rawDescData = file_poktroll_service_module_module_proto_rawDesc
+)
+
+func file_poktroll_service_module_module_proto_rawDescGZIP() []byte {
+ file_poktroll_service_module_module_proto_rawDescOnce.Do(func() {
+ file_poktroll_service_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_service_module_module_proto_rawDescData)
+ })
+ return file_poktroll_service_module_module_proto_rawDescData
+}
+
+var file_poktroll_service_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_service_module_module_proto_goTypes = []interface{}{
+ (*Module)(nil), // 0: poktroll.service.module.Module
+}
+var file_poktroll_service_module_module_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_service_module_module_proto_init() }
+func file_poktroll_service_module_module_proto_init() {
+ if File_poktroll_service_module_module_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_service_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Module); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_service_module_module_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_service_module_module_proto_goTypes,
+ DependencyIndexes: file_poktroll_service_module_module_proto_depIdxs,
+ MessageInfos: file_poktroll_service_module_module_proto_msgTypes,
+ }.Build()
+ File_poktroll_service_module_module_proto = out.File
+ file_poktroll_service_module_module_proto_rawDesc = nil
+ file_poktroll_service_module_module_proto_goTypes = nil
+ file_poktroll_service_module_module_proto_depIdxs = nil
+}
diff --git a/api/poktroll/service/params.pulsar.go b/api/poktroll/service/params.pulsar.go
new file mode 100644
index 000000000..346acdd52
--- /dev/null
+++ b/api/poktroll/service/params.pulsar.go
@@ -0,0 +1,563 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ _ "cosmossdk.io/api/amino"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Params protoreflect.MessageDescriptor
+ fd_Params_add_service_fee protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_params_proto_init()
+ md_Params = File_poktroll_service_params_proto.Messages().ByName("Params")
+ fd_Params_add_service_fee = md_Params.Fields().ByName("add_service_fee")
+}
+
+var _ protoreflect.Message = (*fastReflection_Params)(nil)
+
+type fastReflection_Params Params
+
+func (x *Params) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Params)(x)
+}
+
+func (x *Params) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_params_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Params_messageType fastReflection_Params_messageType
+var _ protoreflect.MessageType = fastReflection_Params_messageType{}
+
+type fastReflection_Params_messageType struct{}
+
+func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Params)(nil)
+}
+func (x fastReflection_Params_messageType) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
+ return md_Params
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Params) Type() protoreflect.MessageType {
+ return _fastReflection_Params_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Params) New() protoreflect.Message {
+ return new(fastReflection_Params)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
+ return (*Params)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.AddServiceFee != uint64(0) {
+ value := protoreflect.ValueOfUint64(x.AddServiceFee)
+ if !f(fd_Params_add_service_fee, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.Params.add_service_fee":
+ return x.AddServiceFee != uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.Params.add_service_fee":
+ x.AddServiceFee = uint64(0)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.Params.add_service_fee":
+ value := x.AddServiceFee
+ return protoreflect.ValueOfUint64(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Params does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.Params.add_service_fee":
+ x.AddServiceFee = value.Uint()
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.Params.add_service_fee":
+ panic(fmt.Errorf("field add_service_fee of message poktroll.service.Params is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.Params.add_service_fee":
+ return protoreflect.ValueOfUint64(uint64(0))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Params"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Params does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.Params", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_Params) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.AddServiceFee != 0 {
+ n += 1 + runtime.Sov(uint64(x.AddServiceFee))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.AddServiceFee != 0 {
+ i = runtime.EncodeVarint(dAtA, i, uint64(x.AddServiceFee))
+ i--
+ dAtA[i] = 0x8
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Params)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AddServiceFee", wireType)
+ }
+ x.AddServiceFee = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ x.AddServiceFee |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/service/params.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Params defines the parameters for the module.
+type Params struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The amount of uPOKT required to add a new service.
+ // This will be deducted from the signer's account balance,
+ // and transferred to the pocket network foundation.
+ AddServiceFee uint64 `protobuf:"varint,1,opt,name=add_service_fee,json=addServiceFee,proto3" json:"add_service_fee,omitempty"`
+}
+
+func (x *Params) Reset() {
+ *x = Params{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_params_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Params) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Params) ProtoMessage() {}
+
+// Deprecated: Use Params.ProtoReflect.Descriptor instead.
+func (*Params) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_params_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Params) GetAddServiceFee() uint64 {
+ if x != nil {
+ return x.AddServiceFee
+ }
+ return 0
+}
+
+var File_poktroll_service_params_proto protoreflect.FileDescriptor
+
+var file_poktroll_service_params_proto_rawDesc = []byte{
+ 0x0a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
+ 0x10, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
+ 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x70, 0x0a, 0x06, 0x50, 0x61,
+ 0x72, 0x61, 0x6d, 0x73, 0x12, 0x42, 0x0a, 0x0f, 0x61, 0x64, 0x64, 0x5f, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x1a, 0xf2,
+ 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x64, 0x64, 0x5f, 0x73, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x22, 0x52, 0x0d, 0x61, 0x64, 0x64, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x46, 0x65, 0x65, 0x3a, 0x22, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7,
+ 0xb0, 0x2a, 0x19, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x78, 0x2f, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xa7, 0x01, 0x0a,
+ 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f,
+ 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e,
+ 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f,
+ 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x10,
+ 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0xca, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0xea, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_service_params_proto_rawDescOnce sync.Once
+ file_poktroll_service_params_proto_rawDescData = file_poktroll_service_params_proto_rawDesc
+)
+
+func file_poktroll_service_params_proto_rawDescGZIP() []byte {
+ file_poktroll_service_params_proto_rawDescOnce.Do(func() {
+ file_poktroll_service_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_service_params_proto_rawDescData)
+ })
+ return file_poktroll_service_params_proto_rawDescData
+}
+
+var file_poktroll_service_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_service_params_proto_goTypes = []interface{}{
+ (*Params)(nil), // 0: poktroll.service.Params
+}
+var file_poktroll_service_params_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_service_params_proto_init() }
+func file_poktroll_service_params_proto_init() {
+ if File_poktroll_service_params_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_service_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Params); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_service_params_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_service_params_proto_goTypes,
+ DependencyIndexes: file_poktroll_service_params_proto_depIdxs,
+ MessageInfos: file_poktroll_service_params_proto_msgTypes,
+ }.Build()
+ File_poktroll_service_params_proto = out.File
+ file_poktroll_service_params_proto_rawDesc = nil
+ file_poktroll_service_params_proto_goTypes = nil
+ file_poktroll_service_params_proto_depIdxs = nil
+}
diff --git a/api/poktroll/service/query.pulsar.go b/api/poktroll/service/query.pulsar.go
new file mode 100644
index 000000000..2f313aef1
--- /dev/null
+++ b/api/poktroll/service/query.pulsar.go
@@ -0,0 +1,3131 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ _ "cosmossdk.io/api/amino"
+ v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ shared "github.com/pokt-network/poktroll/api/poktroll/shared"
+ _ "google.golang.org/genproto/googleapis/api/annotations"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_QueryParamsRequest protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_service_query_proto_init()
+ md_QueryParamsRequest = File_poktroll_service_query_proto.Messages().ByName("QueryParamsRequest")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
+
+type fastReflection_QueryParamsRequest QueryParamsRequest
+
+func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(x)
+}
+
+func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_query_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
+
+type fastReflection_QueryParamsRequest_messageType struct{}
+
+func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsRequest)(nil)
+}
+func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsRequest)
+}
+func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsRequest)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.QueryParamsRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_QueryParamsRequest) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsRequest)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryParamsResponse protoreflect.MessageDescriptor
+ fd_QueryParamsResponse_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_query_proto_init()
+ md_QueryParamsResponse = File_poktroll_service_query_proto.Messages().ByName("QueryParamsResponse")
+ fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
+
+type fastReflection_QueryParamsResponse QueryParamsResponse
+
+func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(x)
+}
+
+func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_query_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
+
+type fastReflection_QueryParamsResponse_messageType struct{}
+
+func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryParamsResponse)(nil)
+}
+func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsResponse)
+}
+func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryParamsResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryParamsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryParamsResponse)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_QueryParamsResponse_params, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.QueryParamsResponse.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryParamsResponse.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.QueryParamsResponse.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryParamsResponse.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryParamsResponse.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryParamsResponse.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.QueryParamsResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_QueryParamsResponse) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Params != nil {
+ l = options.Size(x.Params)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Params != nil {
+ encoded, err := options.Marshal(x.Params)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryParamsResponse)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Params == nil {
+ x.Params = &Params{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryGetServiceRequest protoreflect.MessageDescriptor
+ fd_QueryGetServiceRequest_id protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_query_proto_init()
+ md_QueryGetServiceRequest = File_poktroll_service_query_proto.Messages().ByName("QueryGetServiceRequest")
+ fd_QueryGetServiceRequest_id = md_QueryGetServiceRequest.Fields().ByName("id")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetServiceRequest)(nil)
+
+type fastReflection_QueryGetServiceRequest QueryGetServiceRequest
+
+func (x *QueryGetServiceRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetServiceRequest)(x)
+}
+
+func (x *QueryGetServiceRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_query_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetServiceRequest_messageType fastReflection_QueryGetServiceRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetServiceRequest_messageType{}
+
+type fastReflection_QueryGetServiceRequest_messageType struct{}
+
+func (x fastReflection_QueryGetServiceRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetServiceRequest)(nil)
+}
+func (x fastReflection_QueryGetServiceRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetServiceRequest)
+}
+func (x fastReflection_QueryGetServiceRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetServiceRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetServiceRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetServiceRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetServiceRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetServiceRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetServiceRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryGetServiceRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetServiceRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetServiceRequest)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_QueryGetServiceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Id != "" {
+ value := protoreflect.ValueOfString(x.Id)
+ if !f(fd_QueryGetServiceRequest_id, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryGetServiceRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceRequest.id":
+ return x.Id != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetServiceRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceRequest.id":
+ x.Id = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryGetServiceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.QueryGetServiceRequest.id":
+ value := x.Id
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetServiceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceRequest.id":
+ x.Id = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetServiceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceRequest.id":
+ panic(fmt.Errorf("field id of message poktroll.service.QueryGetServiceRequest is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetServiceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceRequest.id":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetServiceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.QueryGetServiceRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryGetServiceRequest) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetServiceRequest) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_QueryGetServiceRequest) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_QueryGetServiceRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetServiceRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Id)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetServiceRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Id) > 0 {
+ i -= len(x.Id)
+ copy(dAtA[i:], x.Id)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetServiceRequest)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetServiceRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetServiceRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Id = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryGetServiceResponse protoreflect.MessageDescriptor
+ fd_QueryGetServiceResponse_service protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_query_proto_init()
+ md_QueryGetServiceResponse = File_poktroll_service_query_proto.Messages().ByName("QueryGetServiceResponse")
+ fd_QueryGetServiceResponse_service = md_QueryGetServiceResponse.Fields().ByName("service")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryGetServiceResponse)(nil)
+
+type fastReflection_QueryGetServiceResponse QueryGetServiceResponse
+
+func (x *QueryGetServiceResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryGetServiceResponse)(x)
+}
+
+func (x *QueryGetServiceResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_query_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryGetServiceResponse_messageType fastReflection_QueryGetServiceResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryGetServiceResponse_messageType{}
+
+type fastReflection_QueryGetServiceResponse_messageType struct{}
+
+func (x fastReflection_QueryGetServiceResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryGetServiceResponse)(nil)
+}
+func (x fastReflection_QueryGetServiceResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryGetServiceResponse)
+}
+func (x fastReflection_QueryGetServiceResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetServiceResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryGetServiceResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryGetServiceResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryGetServiceResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryGetServiceResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryGetServiceResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryGetServiceResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryGetServiceResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryGetServiceResponse)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_QueryGetServiceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Service != nil {
+ value := protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ if !f(fd_QueryGetServiceResponse_service, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryGetServiceResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceResponse.service":
+ return x.Service != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetServiceResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceResponse.service":
+ x.Service = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryGetServiceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.QueryGetServiceResponse.service":
+ value := x.Service
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetServiceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceResponse.service":
+ x.Service = value.Message().Interface().(*shared.Service)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetServiceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceResponse.service":
+ if x.Service == nil {
+ x.Service = new(shared.Service)
+ }
+ return protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryGetServiceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryGetServiceResponse.service":
+ m := new(shared.Service)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryGetServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryGetServiceResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryGetServiceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.QueryGetServiceResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryGetServiceResponse) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryGetServiceResponse) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_QueryGetServiceResponse) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_QueryGetServiceResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryGetServiceResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Service != nil {
+ l = options.Size(x.Service)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetServiceResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Service != nil {
+ encoded, err := options.Marshal(x.Service)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryGetServiceResponse)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetServiceResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetServiceResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Service", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Service == nil {
+ x.Service = &shared.Service{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Service); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_QueryAllServicesRequest protoreflect.MessageDescriptor
+ fd_QueryAllServicesRequest_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_query_proto_init()
+ md_QueryAllServicesRequest = File_poktroll_service_query_proto.Messages().ByName("QueryAllServicesRequest")
+ fd_QueryAllServicesRequest_pagination = md_QueryAllServicesRequest.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllServicesRequest)(nil)
+
+type fastReflection_QueryAllServicesRequest QueryAllServicesRequest
+
+func (x *QueryAllServicesRequest) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllServicesRequest)(x)
+}
+
+func (x *QueryAllServicesRequest) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_query_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllServicesRequest_messageType fastReflection_QueryAllServicesRequest_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllServicesRequest_messageType{}
+
+type fastReflection_QueryAllServicesRequest_messageType struct{}
+
+func (x fastReflection_QueryAllServicesRequest_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllServicesRequest)(nil)
+}
+func (x fastReflection_QueryAllServicesRequest_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllServicesRequest)
+}
+func (x fastReflection_QueryAllServicesRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllServicesRequest
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllServicesRequest) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllServicesRequest
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryAllServicesRequest) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllServicesRequest_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllServicesRequest) New() protoreflect.Message {
+ return new(fastReflection_QueryAllServicesRequest)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllServicesRequest) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllServicesRequest)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_QueryAllServicesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllServicesRequest_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllServicesRequest) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesRequest.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllServicesRequest) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesRequest.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryAllServicesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.QueryAllServicesRequest.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesRequest does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllServicesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesRequest.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllServicesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesRequest.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageRequest)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllServicesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesRequest.pagination":
+ m := new(v1beta1.PageRequest)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesRequest"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesRequest does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllServicesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.QueryAllServicesRequest", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryAllServicesRequest) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllServicesRequest) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_QueryAllServicesRequest) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_QueryAllServicesRequest) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllServicesRequest)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllServicesRequest)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllServicesRequest)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllServicesRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllServicesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageRequest{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var _ protoreflect.List = (*_QueryAllServicesResponse_1_list)(nil)
+
+type _QueryAllServicesResponse_1_list struct {
+ list *[]*shared.Service
+}
+
+func (x *_QueryAllServicesResponse_1_list) Len() int {
+ if x.list == nil {
+ return 0
+ }
+ return len(*x.list)
+}
+
+func (x *_QueryAllServicesResponse_1_list) Get(i int) protoreflect.Value {
+ return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
+}
+
+func (x *_QueryAllServicesResponse_1_list) Set(i int, value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.Service)
+ (*x.list)[i] = concreteValue
+}
+
+func (x *_QueryAllServicesResponse_1_list) Append(value protoreflect.Value) {
+ valueUnwrapped := value.Message()
+ concreteValue := valueUnwrapped.Interface().(*shared.Service)
+ *x.list = append(*x.list, concreteValue)
+}
+
+func (x *_QueryAllServicesResponse_1_list) AppendMutable() protoreflect.Value {
+ v := new(shared.Service)
+ *x.list = append(*x.list, v)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllServicesResponse_1_list) Truncate(n int) {
+ for i := n; i < len(*x.list); i++ {
+ (*x.list)[i] = nil
+ }
+ *x.list = (*x.list)[:n]
+}
+
+func (x *_QueryAllServicesResponse_1_list) NewElement() protoreflect.Value {
+ v := new(shared.Service)
+ return protoreflect.ValueOfMessage(v.ProtoReflect())
+}
+
+func (x *_QueryAllServicesResponse_1_list) IsValid() bool {
+ return x.list != nil
+}
+
+var (
+ md_QueryAllServicesResponse protoreflect.MessageDescriptor
+ fd_QueryAllServicesResponse_service protoreflect.FieldDescriptor
+ fd_QueryAllServicesResponse_pagination protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_query_proto_init()
+ md_QueryAllServicesResponse = File_poktroll_service_query_proto.Messages().ByName("QueryAllServicesResponse")
+ fd_QueryAllServicesResponse_service = md_QueryAllServicesResponse.Fields().ByName("service")
+ fd_QueryAllServicesResponse_pagination = md_QueryAllServicesResponse.Fields().ByName("pagination")
+}
+
+var _ protoreflect.Message = (*fastReflection_QueryAllServicesResponse)(nil)
+
+type fastReflection_QueryAllServicesResponse QueryAllServicesResponse
+
+func (x *QueryAllServicesResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_QueryAllServicesResponse)(x)
+}
+
+func (x *QueryAllServicesResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_query_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_QueryAllServicesResponse_messageType fastReflection_QueryAllServicesResponse_messageType
+var _ protoreflect.MessageType = fastReflection_QueryAllServicesResponse_messageType{}
+
+type fastReflection_QueryAllServicesResponse_messageType struct{}
+
+func (x fastReflection_QueryAllServicesResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_QueryAllServicesResponse)(nil)
+}
+func (x fastReflection_QueryAllServicesResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_QueryAllServicesResponse)
+}
+func (x fastReflection_QueryAllServicesResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllServicesResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_QueryAllServicesResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_QueryAllServicesResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_QueryAllServicesResponse) Type() protoreflect.MessageType {
+ return _fastReflection_QueryAllServicesResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_QueryAllServicesResponse) New() protoreflect.Message {
+ return new(fastReflection_QueryAllServicesResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_QueryAllServicesResponse) Interface() protoreflect.ProtoMessage {
+ return (*QueryAllServicesResponse)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_QueryAllServicesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if len(x.Service) != 0 {
+ value := protoreflect.ValueOfList(&_QueryAllServicesResponse_1_list{list: &x.Service})
+ if !f(fd_QueryAllServicesResponse_service, value) {
+ return
+ }
+ }
+ if x.Pagination != nil {
+ value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ if !f(fd_QueryAllServicesResponse_pagination, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_QueryAllServicesResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesResponse.service":
+ return len(x.Service) != 0
+ case "poktroll.service.QueryAllServicesResponse.pagination":
+ return x.Pagination != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllServicesResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesResponse.service":
+ x.Service = nil
+ case "poktroll.service.QueryAllServicesResponse.pagination":
+ x.Pagination = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_QueryAllServicesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.QueryAllServicesResponse.service":
+ if len(x.Service) == 0 {
+ return protoreflect.ValueOfList(&_QueryAllServicesResponse_1_list{})
+ }
+ listValue := &_QueryAllServicesResponse_1_list{list: &x.Service}
+ return protoreflect.ValueOfList(listValue)
+ case "poktroll.service.QueryAllServicesResponse.pagination":
+ value := x.Pagination
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllServicesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesResponse.service":
+ lv := value.List()
+ clv := lv.(*_QueryAllServicesResponse_1_list)
+ x.Service = *clv.list
+ case "poktroll.service.QueryAllServicesResponse.pagination":
+ x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllServicesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesResponse.service":
+ if x.Service == nil {
+ x.Service = []*shared.Service{}
+ }
+ value := &_QueryAllServicesResponse_1_list{list: &x.Service}
+ return protoreflect.ValueOfList(value)
+ case "poktroll.service.QueryAllServicesResponse.pagination":
+ if x.Pagination == nil {
+ x.Pagination = new(v1beta1.PageResponse)
+ }
+ return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_QueryAllServicesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.QueryAllServicesResponse.service":
+ list := []*shared.Service{}
+ return protoreflect.ValueOfList(&_QueryAllServicesResponse_1_list{list: &list})
+ case "poktroll.service.QueryAllServicesResponse.pagination":
+ m := new(v1beta1.PageResponse)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.QueryAllServicesResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.QueryAllServicesResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_QueryAllServicesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.QueryAllServicesResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_QueryAllServicesResponse) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_QueryAllServicesResponse) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_QueryAllServicesResponse) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_QueryAllServicesResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*QueryAllServicesResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if len(x.Service) > 0 {
+ for _, e := range x.Service {
+ l = options.Size(e)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ }
+ if x.Pagination != nil {
+ l = options.Size(x.Pagination)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllServicesResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Pagination != nil {
+ encoded, err := options.Marshal(x.Pagination)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Service) > 0 {
+ for iNdEx := len(x.Service) - 1; iNdEx >= 0; iNdEx-- {
+ encoded, err := options.Marshal(x.Service[iNdEx])
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*QueryAllServicesResponse)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllServicesResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllServicesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Service", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Service = append(x.Service, &shared.Service{})
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Service[len(x.Service)-1]); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Pagination == nil {
+ x.Pagination = &v1beta1.PageResponse{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/service/query.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// QueryParamsRequest is request type for the Query/Params RPC method.
+type QueryParamsRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *QueryParamsRequest) Reset() {
+ *x = QueryParamsRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_query_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
+func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_query_proto_rawDescGZIP(), []int{0}
+}
+
+// QueryParamsResponse is response type for the Query/Params RPC method.
+type QueryParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // params holds all the parameters of this module.
+ Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *QueryParamsResponse) Reset() {
+ *x = QueryParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_query_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
+func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_query_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *QueryParamsResponse) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+type QueryGetServiceRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // TODO: We could support getting services by name.
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+}
+
+func (x *QueryGetServiceRequest) Reset() {
+ *x = QueryGetServiceRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_query_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetServiceRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetServiceRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryGetServiceRequest.ProtoReflect.Descriptor instead.
+func (*QueryGetServiceRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_query_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *QueryGetServiceRequest) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+type QueryGetServiceResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Service *shared.Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
+}
+
+func (x *QueryGetServiceResponse) Reset() {
+ *x = QueryGetServiceResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_query_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryGetServiceResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryGetServiceResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryGetServiceResponse.ProtoReflect.Descriptor instead.
+func (*QueryGetServiceResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_query_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *QueryGetServiceResponse) GetService() *shared.Service {
+ if x != nil {
+ return x.Service
+ }
+ return nil
+}
+
+type QueryAllServicesRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllServicesRequest) Reset() {
+ *x = QueryAllServicesRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_query_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllServicesRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllServicesRequest) ProtoMessage() {}
+
+// Deprecated: Use QueryAllServicesRequest.ProtoReflect.Descriptor instead.
+func (*QueryAllServicesRequest) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_query_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *QueryAllServicesRequest) GetPagination() *v1beta1.PageRequest {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+type QueryAllServicesResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Service []*shared.Service `protobuf:"bytes,1,rep,name=service,proto3" json:"service,omitempty"`
+ Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (x *QueryAllServicesResponse) Reset() {
+ *x = QueryAllServicesResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_query_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *QueryAllServicesResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*QueryAllServicesResponse) ProtoMessage() {}
+
+// Deprecated: Use QueryAllServicesResponse.ProtoReflect.Descriptor instead.
+func (*QueryAllServicesResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_query_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *QueryAllServicesResponse) GetService() []*shared.Service {
+ if x != nil {
+ return x.Service
+ }
+ return nil
+}
+
+func (x *QueryAllServicesResponse) GetPagination() *v1beta1.PageResponse {
+ if x != nil {
+ return x.Pagination
+ }
+ return nil
+}
+
+var File_poktroll_service_query_proto protoreflect.FileDescriptor
+
+var file_poktroll_service_query_proto_rawDesc = []byte{
+ 0x0a, 0x1c, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
+ 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
+ 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f,
+ 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
+ 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61,
+ 0x72, 0x65, 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x52, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b,
+ 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7,
+ 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x28, 0x0a, 0x16, 0x51,
+ 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x53, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65,
+ 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x12, 0x38, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61,
+ 0x72, 0x65, 0x64, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f,
+ 0x00, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x61, 0x0a, 0x17, 0x51, 0x75,
+ 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d,
+ 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31,
+ 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9d, 0x01,
+ 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x07, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x73, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
+ 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62,
+ 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+ 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xbb, 0x03,
+ 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x84, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61,
+ 0x6d, 0x73, 0x12, 0x24, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72,
+ 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
+ 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e,
+ 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f,
+ 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x93,
+ 0x01, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x28, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75,
+ 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e,
+ 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74,
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
+ 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e,
+ 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f,
+ 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f,
+ 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x94, 0x01, 0x0a, 0x0b, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e,
+ 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c,
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x2a, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4,
+ 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f,
+ 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0xa6, 0x01, 0x0a, 0x14,
+ 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f,
+ 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f,
+ 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x50, 0x6f,
+ 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02,
+ 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0xe2, 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
+ 0xea, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_service_query_proto_rawDescOnce sync.Once
+ file_poktroll_service_query_proto_rawDescData = file_poktroll_service_query_proto_rawDesc
+)
+
+func file_poktroll_service_query_proto_rawDescGZIP() []byte {
+ file_poktroll_service_query_proto_rawDescOnce.Do(func() {
+ file_poktroll_service_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_service_query_proto_rawDescData)
+ })
+ return file_poktroll_service_query_proto_rawDescData
+}
+
+var file_poktroll_service_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_poktroll_service_query_proto_goTypes = []interface{}{
+ (*QueryParamsRequest)(nil), // 0: poktroll.service.QueryParamsRequest
+ (*QueryParamsResponse)(nil), // 1: poktroll.service.QueryParamsResponse
+ (*QueryGetServiceRequest)(nil), // 2: poktroll.service.QueryGetServiceRequest
+ (*QueryGetServiceResponse)(nil), // 3: poktroll.service.QueryGetServiceResponse
+ (*QueryAllServicesRequest)(nil), // 4: poktroll.service.QueryAllServicesRequest
+ (*QueryAllServicesResponse)(nil), // 5: poktroll.service.QueryAllServicesResponse
+ (*Params)(nil), // 6: poktroll.service.Params
+ (*shared.Service)(nil), // 7: poktroll.shared.Service
+ (*v1beta1.PageRequest)(nil), // 8: cosmos.base.query.v1beta1.PageRequest
+ (*v1beta1.PageResponse)(nil), // 9: cosmos.base.query.v1beta1.PageResponse
+}
+var file_poktroll_service_query_proto_depIdxs = []int32{
+ 6, // 0: poktroll.service.QueryParamsResponse.params:type_name -> poktroll.service.Params
+ 7, // 1: poktroll.service.QueryGetServiceResponse.service:type_name -> poktroll.shared.Service
+ 8, // 2: poktroll.service.QueryAllServicesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
+ 7, // 3: poktroll.service.QueryAllServicesResponse.service:type_name -> poktroll.shared.Service
+ 9, // 4: poktroll.service.QueryAllServicesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
+ 0, // 5: poktroll.service.Query.Params:input_type -> poktroll.service.QueryParamsRequest
+ 2, // 6: poktroll.service.Query.Service:input_type -> poktroll.service.QueryGetServiceRequest
+ 4, // 7: poktroll.service.Query.AllServices:input_type -> poktroll.service.QueryAllServicesRequest
+ 1, // 8: poktroll.service.Query.Params:output_type -> poktroll.service.QueryParamsResponse
+ 3, // 9: poktroll.service.Query.Service:output_type -> poktroll.service.QueryGetServiceResponse
+ 5, // 10: poktroll.service.Query.AllServices:output_type -> poktroll.service.QueryAllServicesResponse
+ 8, // [8:11] is the sub-list for method output_type
+ 5, // [5:8] is the sub-list for method input_type
+ 5, // [5:5] is the sub-list for extension type_name
+ 5, // [5:5] is the sub-list for extension extendee
+ 0, // [0:5] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_service_query_proto_init() }
+func file_poktroll_service_query_proto_init() {
+ if File_poktroll_service_query_proto != nil {
+ return
+ }
+ file_poktroll_service_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_service_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetServiceRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryGetServiceResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllServicesRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*QueryAllServicesResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_service_query_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 6,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_service_query_proto_goTypes,
+ DependencyIndexes: file_poktroll_service_query_proto_depIdxs,
+ MessageInfos: file_poktroll_service_query_proto_msgTypes,
+ }.Build()
+ File_poktroll_service_query_proto = out.File
+ file_poktroll_service_query_proto_rawDesc = nil
+ file_poktroll_service_query_proto_goTypes = nil
+ file_poktroll_service_query_proto_depIdxs = nil
+}
diff --git a/api/poktroll/service/service.pulsar.go b/api/poktroll/service/service.pulsar.go
new file mode 100644
index 000000000..e47fdeda9
--- /dev/null
+++ b/api/poktroll/service/service.pulsar.go
@@ -0,0 +1,639 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Service protoreflect.MessageDescriptor
+ fd_Service_index protoreflect.FieldDescriptor
+ fd_Service_name protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_service_proto_init()
+ md_Service = File_poktroll_service_service_proto.Messages().ByName("Service")
+ fd_Service_index = md_Service.Fields().ByName("index")
+ fd_Service_name = md_Service.Fields().ByName("name")
+}
+
+var _ protoreflect.Message = (*fastReflection_Service)(nil)
+
+type fastReflection_Service Service
+
+func (x *Service) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Service)(x)
+}
+
+func (x *Service) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_service_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Service_messageType fastReflection_Service_messageType
+var _ protoreflect.MessageType = fastReflection_Service_messageType{}
+
+type fastReflection_Service_messageType struct{}
+
+func (x fastReflection_Service_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Service)(nil)
+}
+func (x fastReflection_Service_messageType) New() protoreflect.Message {
+ return new(fastReflection_Service)
+}
+func (x fastReflection_Service_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Service
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Service) Descriptor() protoreflect.MessageDescriptor {
+ return md_Service
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Service) Type() protoreflect.MessageType {
+ return _fastReflection_Service_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Service) New() protoreflect.Message {
+ return new(fastReflection_Service)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Service) Interface() protoreflect.ProtoMessage {
+ return (*Service)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_Service) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Index != "" {
+ value := protoreflect.ValueOfString(x.Index)
+ if !f(fd_Service_index, value) {
+ return
+ }
+ }
+ if x.Name != "" {
+ value := protoreflect.ValueOfString(x.Name)
+ if !f(fd_Service_name, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Service) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.Service.index":
+ return x.Index != ""
+ case "poktroll.service.Service.name":
+ return x.Name != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Service does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Service) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.Service.index":
+ x.Index = ""
+ case "poktroll.service.Service.name":
+ x.Name = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Service does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Service) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.Service.index":
+ value := x.Index
+ return protoreflect.ValueOfString(value)
+ case "poktroll.service.Service.name":
+ value := x.Name
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Service does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Service) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.Service.index":
+ x.Index = value.Interface().(string)
+ case "poktroll.service.Service.name":
+ x.Name = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Service does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Service) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.Service.index":
+ panic(fmt.Errorf("field index of message poktroll.service.Service is not mutable"))
+ case "poktroll.service.Service.name":
+ panic(fmt.Errorf("field name of message poktroll.service.Service is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Service does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Service) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.Service.index":
+ return protoreflect.ValueOfString("")
+ case "poktroll.service.Service.name":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.service.Service does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Service) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.Service", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Service) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Service) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_Service) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_Service) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Service)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Index)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Name)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Service)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Name) > 0 {
+ i -= len(x.Name)
+ copy(dAtA[i:], x.Name)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Index) > 0 {
+ i -= len(x.Index)
+ copy(dAtA[i:], x.Index)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Index)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Service)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Service: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Service: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Index = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/service/service.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type Service struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
+}
+
+func (x *Service) Reset() {
+ *x = Service{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_service_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Service) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Service) ProtoMessage() {}
+
+// Deprecated: Use Service.ProtoReflect.Descriptor instead.
+func (*Service) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_service_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Service) GetIndex() string {
+ if x != nil {
+ return x.Index
+ }
+ return ""
+}
+
+func (x *Service) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+var File_poktroll_service_service_proto protoreflect.FileDescriptor
+
+var file_poktroll_service_service_proto_rawDesc = []byte{
+ 0x0a, 0x1e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x12, 0x10, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x22, 0x33, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x14, 0x0a,
+ 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e,
+ 0x64, 0x65, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0xa8, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e,
+ 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
+ 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61,
+ 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2,
+ 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
+ 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_service_service_proto_rawDescOnce sync.Once
+ file_poktroll_service_service_proto_rawDescData = file_poktroll_service_service_proto_rawDesc
+)
+
+func file_poktroll_service_service_proto_rawDescGZIP() []byte {
+ file_poktroll_service_service_proto_rawDescOnce.Do(func() {
+ file_poktroll_service_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_service_service_proto_rawDescData)
+ })
+ return file_poktroll_service_service_proto_rawDescData
+}
+
+var file_poktroll_service_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_service_service_proto_goTypes = []interface{}{
+ (*Service)(nil), // 0: poktroll.service.Service
+}
+var file_poktroll_service_service_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_service_service_proto_init() }
+func file_poktroll_service_service_proto_init() {
+ if File_poktroll_service_service_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_service_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Service); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_service_service_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_service_service_proto_goTypes,
+ DependencyIndexes: file_poktroll_service_service_proto_depIdxs,
+ MessageInfos: file_poktroll_service_service_proto_msgTypes,
+ }.Build()
+ File_poktroll_service_service_proto = out.File
+ file_poktroll_service_service_proto_rawDesc = nil
+ file_poktroll_service_service_proto_goTypes = nil
+ file_poktroll_service_service_proto_depIdxs = nil
+}
diff --git a/api/poktroll/service/tx.pulsar.go b/api/poktroll/service/tx.pulsar.go
new file mode 100644
index 000000000..b756d9c17
--- /dev/null
+++ b/api/poktroll/service/tx.pulsar.go
@@ -0,0 +1,2067 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package service
+
+import (
+ _ "cosmossdk.io/api/amino"
+ _ "cosmossdk.io/api/cosmos/msg/v1"
+ fmt "fmt"
+ _ "github.com/cosmos/cosmos-proto"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ _ "github.com/cosmos/gogoproto/gogoproto"
+ shared "github.com/pokt-network/poktroll/api/poktroll/shared"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_MsgUpdateParams protoreflect.MessageDescriptor
+ fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
+ fd_MsgUpdateParams_params protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_tx_proto_init()
+ md_MsgUpdateParams = File_poktroll_service_tx_proto.Messages().ByName("MsgUpdateParams")
+ fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
+ fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil)
+
+type fastReflection_MsgUpdateParams MsgUpdateParams
+
+func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParams)(x)
+}
+
+func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_tx_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
+
+type fastReflection_MsgUpdateParams_messageType struct{}
+
+func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParams)(nil)
+}
+func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParams
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParams_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParams)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParams)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Authority != "" {
+ value := protoreflect.ValueOfString(x.Authority)
+ if !f(fd_MsgUpdateParams_authority, value) {
+ return
+ }
+ }
+ if x.Params != nil {
+ value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ if !f(fd_MsgUpdateParams_params, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.MsgUpdateParams.authority":
+ return x.Authority != ""
+ case "poktroll.service.MsgUpdateParams.params":
+ return x.Params != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.MsgUpdateParams.authority":
+ x.Authority = ""
+ case "poktroll.service.MsgUpdateParams.params":
+ x.Params = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.MsgUpdateParams.authority":
+ value := x.Authority
+ return protoreflect.ValueOfString(value)
+ case "poktroll.service.MsgUpdateParams.params":
+ value := x.Params
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParams does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.MsgUpdateParams.authority":
+ x.Authority = value.Interface().(string)
+ case "poktroll.service.MsgUpdateParams.params":
+ x.Params = value.Message().Interface().(*Params)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.MsgUpdateParams.params":
+ if x.Params == nil {
+ x.Params = new(Params)
+ }
+ return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
+ case "poktroll.service.MsgUpdateParams.authority":
+ panic(fmt.Errorf("field authority of message poktroll.service.MsgUpdateParams is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.MsgUpdateParams.authority":
+ return protoreflect.ValueOfString("")
+ case "poktroll.service.MsgUpdateParams.params":
+ m := new(Params)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParams"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParams does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.MsgUpdateParams", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgUpdateParams) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateParams) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_MsgUpdateParams) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Authority)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Params != nil {
+ l = options.Size(x.Params)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Params != nil {
+ encoded, err := options.Marshal(x.Params)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Authority) > 0 {
+ i -= len(x.Authority)
+ copy(dAtA[i:], x.Authority)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParams)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Authority = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Params == nil {
+ x.Params = &Params{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgUpdateParamsResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_service_tx_proto_init()
+ md_MsgUpdateParamsResponse = File_poktroll_service_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
+
+type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
+
+func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(x)
+}
+
+func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_tx_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
+
+type fastReflection_MsgUpdateParamsResponse_messageType struct{}
+
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgUpdateParamsResponse)(nil)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgUpdateParamsResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgUpdateParamsResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgUpdateParamsResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgUpdateParamsResponse)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgUpdateParamsResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.MsgUpdateParamsResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgUpdateParamsResponse) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgUpdateParamsResponse) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_MsgUpdateParamsResponse) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgUpdateParamsResponse)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgAddService protoreflect.MessageDescriptor
+ fd_MsgAddService_address protoreflect.FieldDescriptor
+ fd_MsgAddService_service protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_service_tx_proto_init()
+ md_MsgAddService = File_poktroll_service_tx_proto.Messages().ByName("MsgAddService")
+ fd_MsgAddService_address = md_MsgAddService.Fields().ByName("address")
+ fd_MsgAddService_service = md_MsgAddService.Fields().ByName("service")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgAddService)(nil)
+
+type fastReflection_MsgAddService MsgAddService
+
+func (x *MsgAddService) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgAddService)(x)
+}
+
+func (x *MsgAddService) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_tx_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgAddService_messageType fastReflection_MsgAddService_messageType
+var _ protoreflect.MessageType = fastReflection_MsgAddService_messageType{}
+
+type fastReflection_MsgAddService_messageType struct{}
+
+func (x fastReflection_MsgAddService_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgAddService)(nil)
+}
+func (x fastReflection_MsgAddService_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgAddService)
+}
+func (x fastReflection_MsgAddService_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgAddService
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgAddService) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgAddService
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgAddService) Type() protoreflect.MessageType {
+ return _fastReflection_MsgAddService_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgAddService) New() protoreflect.Message {
+ return new(fastReflection_MsgAddService)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgAddService) Interface() protoreflect.ProtoMessage {
+ return (*MsgAddService)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_MsgAddService) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Address != "" {
+ value := protoreflect.ValueOfString(x.Address)
+ if !f(fd_MsgAddService_address, value) {
+ return
+ }
+ }
+ if x.Service != nil {
+ value := protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ if !f(fd_MsgAddService_service, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgAddService) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.service.MsgAddService.address":
+ return x.Address != ""
+ case "poktroll.service.MsgAddService.service":
+ return x.Service != nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddService"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddService does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgAddService) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.service.MsgAddService.address":
+ x.Address = ""
+ case "poktroll.service.MsgAddService.service":
+ x.Service = nil
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddService"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddService does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgAddService) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.service.MsgAddService.address":
+ value := x.Address
+ return protoreflect.ValueOfString(value)
+ case "poktroll.service.MsgAddService.service":
+ value := x.Service
+ return protoreflect.ValueOfMessage(value.ProtoReflect())
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddService"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddService does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgAddService) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.service.MsgAddService.address":
+ x.Address = value.Interface().(string)
+ case "poktroll.service.MsgAddService.service":
+ x.Service = value.Message().Interface().(*shared.Service)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddService"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddService does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgAddService) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.MsgAddService.service":
+ if x.Service == nil {
+ x.Service = new(shared.Service)
+ }
+ return protoreflect.ValueOfMessage(x.Service.ProtoReflect())
+ case "poktroll.service.MsgAddService.address":
+ panic(fmt.Errorf("field address of message poktroll.service.MsgAddService is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddService"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddService does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgAddService) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.service.MsgAddService.address":
+ return protoreflect.ValueOfString("")
+ case "poktroll.service.MsgAddService.service":
+ m := new(shared.Service)
+ return protoreflect.ValueOfMessage(m.ProtoReflect())
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddService"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddService does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgAddService) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.MsgAddService", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgAddService) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgAddService) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_MsgAddService) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_MsgAddService) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgAddService)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Address)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.Service != nil {
+ l = options.Size(x.Service)
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgAddService)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if x.Service != nil {
+ encoded, err := options.Marshal(x.Service)
+ if err != nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Address) > 0 {
+ i -= len(x.Address)
+ copy(dAtA[i:], x.Address)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgAddService)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddService: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddService: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Address = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Service", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if x.Service == nil {
+ x.Service = &shared.Service{}
+ }
+ if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Service); err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+var (
+ md_MsgAddServiceResponse protoreflect.MessageDescriptor
+)
+
+func init() {
+ file_poktroll_service_tx_proto_init()
+ md_MsgAddServiceResponse = File_poktroll_service_tx_proto.Messages().ByName("MsgAddServiceResponse")
+}
+
+var _ protoreflect.Message = (*fastReflection_MsgAddServiceResponse)(nil)
+
+type fastReflection_MsgAddServiceResponse MsgAddServiceResponse
+
+func (x *MsgAddServiceResponse) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_MsgAddServiceResponse)(x)
+}
+
+func (x *MsgAddServiceResponse) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_service_tx_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_MsgAddServiceResponse_messageType fastReflection_MsgAddServiceResponse_messageType
+var _ protoreflect.MessageType = fastReflection_MsgAddServiceResponse_messageType{}
+
+type fastReflection_MsgAddServiceResponse_messageType struct{}
+
+func (x fastReflection_MsgAddServiceResponse_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_MsgAddServiceResponse)(nil)
+}
+func (x fastReflection_MsgAddServiceResponse_messageType) New() protoreflect.Message {
+ return new(fastReflection_MsgAddServiceResponse)
+}
+func (x fastReflection_MsgAddServiceResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgAddServiceResponse
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_MsgAddServiceResponse) Descriptor() protoreflect.MessageDescriptor {
+ return md_MsgAddServiceResponse
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_MsgAddServiceResponse) Type() protoreflect.MessageType {
+ return _fastReflection_MsgAddServiceResponse_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_MsgAddServiceResponse) New() protoreflect.Message {
+ return new(fastReflection_MsgAddServiceResponse)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_MsgAddServiceResponse) Interface() protoreflect.ProtoMessage {
+ return (*MsgAddServiceResponse)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_MsgAddServiceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_MsgAddServiceResponse) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddServiceResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgAddServiceResponse) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddServiceResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_MsgAddServiceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddServiceResponse does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgAddServiceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddServiceResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgAddServiceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddServiceResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_MsgAddServiceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.service.MsgAddServiceResponse"))
+ }
+ panic(fmt.Errorf("message poktroll.service.MsgAddServiceResponse does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_MsgAddServiceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.service.MsgAddServiceResponse", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_MsgAddServiceResponse) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_MsgAddServiceResponse) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_MsgAddServiceResponse) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_MsgAddServiceResponse) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*MsgAddServiceResponse)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*MsgAddServiceResponse)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*MsgAddServiceResponse)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddServiceResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddServiceResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/service/tx.proto
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// MsgUpdateParams is the Msg/UpdateParams request type.
+type MsgUpdateParams struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // authority is the address that controls the module (defaults to x/gov unless overwritten).
+ Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
+ // params defines the x/service parameters to update.
+ // NOTE: All parameters must be supplied.
+ Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
+}
+
+func (x *MsgUpdateParams) Reset() {
+ *x = MsgUpdateParams{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_tx_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParams) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParams) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_tx_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *MsgUpdateParams) GetAuthority() string {
+ if x != nil {
+ return x.Authority
+ }
+ return ""
+}
+
+func (x *MsgUpdateParams) GetParams() *Params {
+ if x != nil {
+ return x.Params
+ }
+ return nil
+}
+
+// MsgUpdateParamsResponse defines the response structure for executing a
+// MsgUpdateParams message.
+type MsgUpdateParamsResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgUpdateParamsResponse) Reset() {
+ *x = MsgUpdateParamsResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_tx_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgUpdateParamsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgUpdateParamsResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
+func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_tx_proto_rawDescGZIP(), []int{1}
+}
+
+// MsgAddService defines a message for adding a new message to the network.
+// Services can be added by any actor in the network making them truly
+// permissionless.
+// TODO_DOCUMENT(@h5law): This is a key function in making services
+// permissionless, document it's usage and design - in docusaurus covering how
+// the entire process works.
+type MsgAddService struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the service supplier using cosmos' ScalarDescriptor
+ Service *shared.Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` // The Service for which the supplier is adding to the network
+}
+
+func (x *MsgAddService) Reset() {
+ *x = MsgAddService{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_tx_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgAddService) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgAddService) ProtoMessage() {}
+
+// Deprecated: Use MsgAddService.ProtoReflect.Descriptor instead.
+func (*MsgAddService) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_tx_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *MsgAddService) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *MsgAddService) GetService() *shared.Service {
+ if x != nil {
+ return x.Service
+ }
+ return nil
+}
+
+type MsgAddServiceResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *MsgAddServiceResponse) Reset() {
+ *x = MsgAddServiceResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_service_tx_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *MsgAddServiceResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*MsgAddServiceResponse) ProtoMessage() {}
+
+// Deprecated: Use MsgAddServiceResponse.ProtoReflect.Descriptor instead.
+func (*MsgAddServiceResponse) Descriptor() ([]byte, []int) {
+ return file_poktroll_service_tx_proto_rawDescGZIP(), []int{3}
+}
+
+var File_poktroll_service_tx_proto protoreflect.FileDescriptor
+
+var file_poktroll_service_tx_proto_rawDesc = []byte{
+ 0x0a, 0x19, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x11, 0x61,
+ 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f,
+ 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
+ 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
+ 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x61, 0x72,
+ 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbd, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09,
+ 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
+ 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72,
+ 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f,
+ 0x72, 0x69, 0x74, 0x79, 0x12, 0x3b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e,
+ 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09,
+ 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d,
+ 0x73, 0x3a, 0x35, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74,
+ 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x22, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x78,
+ 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x22, 0x8b, 0x01, 0x0a, 0x0d, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d,
+ 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
+ 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x38, 0x0a, 0x07, 0x73, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6b,
+ 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
+ 0x73, 0x22, 0x17, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc2, 0x01, 0x0a, 0x03, 0x4d,
+ 0x73, 0x67, 0x12, 0x5c, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61,
+ 0x6d, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50,
+ 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x12, 0x56, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x1f,
+ 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a,
+ 0x27, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42,
+ 0xa3, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74,
+ 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69,
+ 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x50,
+ 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca,
+ 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
+ 0x61, 0xea, 0x02, 0x11, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_service_tx_proto_rawDescOnce sync.Once
+ file_poktroll_service_tx_proto_rawDescData = file_poktroll_service_tx_proto_rawDesc
+)
+
+func file_poktroll_service_tx_proto_rawDescGZIP() []byte {
+ file_poktroll_service_tx_proto_rawDescOnce.Do(func() {
+ file_poktroll_service_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_service_tx_proto_rawDescData)
+ })
+ return file_poktroll_service_tx_proto_rawDescData
+}
+
+var file_poktroll_service_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
+var file_poktroll_service_tx_proto_goTypes = []interface{}{
+ (*MsgUpdateParams)(nil), // 0: poktroll.service.MsgUpdateParams
+ (*MsgUpdateParamsResponse)(nil), // 1: poktroll.service.MsgUpdateParamsResponse
+ (*MsgAddService)(nil), // 2: poktroll.service.MsgAddService
+ (*MsgAddServiceResponse)(nil), // 3: poktroll.service.MsgAddServiceResponse
+ (*Params)(nil), // 4: poktroll.service.Params
+ (*shared.Service)(nil), // 5: poktroll.shared.Service
+}
+var file_poktroll_service_tx_proto_depIdxs = []int32{
+ 4, // 0: poktroll.service.MsgUpdateParams.params:type_name -> poktroll.service.Params
+ 5, // 1: poktroll.service.MsgAddService.service:type_name -> poktroll.shared.Service
+ 0, // 2: poktroll.service.Msg.UpdateParams:input_type -> poktroll.service.MsgUpdateParams
+ 2, // 3: poktroll.service.Msg.AddService:input_type -> poktroll.service.MsgAddService
+ 1, // 4: poktroll.service.Msg.UpdateParams:output_type -> poktroll.service.MsgUpdateParamsResponse
+ 3, // 5: poktroll.service.Msg.AddService:output_type -> poktroll.service.MsgAddServiceResponse
+ 4, // [4:6] is the sub-list for method output_type
+ 2, // [2:4] is the sub-list for method input_type
+ 2, // [2:2] is the sub-list for extension type_name
+ 2, // [2:2] is the sub-list for extension extendee
+ 0, // [0:2] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_service_tx_proto_init() }
+func file_poktroll_service_tx_proto_init() {
+ if File_poktroll_service_tx_proto != nil {
+ return
+ }
+ file_poktroll_service_params_proto_init()
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_service_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParams); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgUpdateParamsResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgAddService); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_poktroll_service_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*MsgAddServiceResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_service_tx_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 4,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_poktroll_service_tx_proto_goTypes,
+ DependencyIndexes: file_poktroll_service_tx_proto_depIdxs,
+ MessageInfos: file_poktroll_service_tx_proto_msgTypes,
+ }.Build()
+ File_poktroll_service_tx_proto = out.File
+ file_poktroll_service_tx_proto_rawDesc = nil
+ file_poktroll_service_tx_proto_goTypes = nil
+ file_poktroll_service_tx_proto_depIdxs = nil
+}
diff --git a/api/poktroll/shared/service.pulsar.go b/api/poktroll/shared/service.pulsar.go
new file mode 100644
index 000000000..8cece2d86
--- /dev/null
+++ b/api/poktroll/shared/service.pulsar.go
@@ -0,0 +1,644 @@
+// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
+package shared
+
+import (
+ fmt "fmt"
+ runtime "github.com/cosmos/cosmos-proto/runtime"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoiface "google.golang.org/protobuf/runtime/protoiface"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ io "io"
+ reflect "reflect"
+ sync "sync"
+)
+
+var (
+ md_Service protoreflect.MessageDescriptor
+ fd_Service_id protoreflect.FieldDescriptor
+ fd_Service_name protoreflect.FieldDescriptor
+)
+
+func init() {
+ file_poktroll_shared_service_proto_init()
+ md_Service = File_poktroll_shared_service_proto.Messages().ByName("Service")
+ fd_Service_id = md_Service.Fields().ByName("id")
+ fd_Service_name = md_Service.Fields().ByName("name")
+}
+
+var _ protoreflect.Message = (*fastReflection_Service)(nil)
+
+type fastReflection_Service Service
+
+func (x *Service) ProtoReflect() protoreflect.Message {
+ return (*fastReflection_Service)(x)
+}
+
+func (x *Service) slowProtoReflect() protoreflect.Message {
+ mi := &file_poktroll_shared_service_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+var _fastReflection_Service_messageType fastReflection_Service_messageType
+var _ protoreflect.MessageType = fastReflection_Service_messageType{}
+
+type fastReflection_Service_messageType struct{}
+
+func (x fastReflection_Service_messageType) Zero() protoreflect.Message {
+ return (*fastReflection_Service)(nil)
+}
+func (x fastReflection_Service_messageType) New() protoreflect.Message {
+ return new(fastReflection_Service)
+}
+func (x fastReflection_Service_messageType) Descriptor() protoreflect.MessageDescriptor {
+ return md_Service
+}
+
+// Descriptor returns message descriptor, which contains only the protobuf
+// type information for the message.
+func (x *fastReflection_Service) Descriptor() protoreflect.MessageDescriptor {
+ return md_Service
+}
+
+// Type returns the message type, which encapsulates both Go and protobuf
+// type information. If the Go type information is not needed,
+// it is recommended that the message descriptor be used instead.
+func (x *fastReflection_Service) Type() protoreflect.MessageType {
+ return _fastReflection_Service_messageType
+}
+
+// New returns a newly allocated and mutable empty message.
+func (x *fastReflection_Service) New() protoreflect.Message {
+ return new(fastReflection_Service)
+}
+
+// Interface unwraps the message reflection interface and
+// returns the underlying ProtoMessage interface.
+func (x *fastReflection_Service) Interface() protoreflect.ProtoMessage {
+ return (*Service)(x)
+}
+
+// Range iterates over every populated field in an undefined order,
+// calling f for each field descriptor and value encountered.
+// Range returns immediately if f returns false.
+// While iterating, mutating operations may only be performed
+// on the current field descriptor.
+func (x *fastReflection_Service) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
+ if x.Id != "" {
+ value := protoreflect.ValueOfString(x.Id)
+ if !f(fd_Service_id, value) {
+ return
+ }
+ }
+ if x.Name != "" {
+ value := protoreflect.ValueOfString(x.Name)
+ if !f(fd_Service_name, value) {
+ return
+ }
+ }
+}
+
+// Has reports whether a field is populated.
+//
+// Some fields have the property of nullability where it is possible to
+// distinguish between the default value of a field and whether the field
+// was explicitly populated with the default value. Singular message fields,
+// member fields of a oneof, and proto2 scalar fields are nullable. Such
+// fields are populated only if explicitly set.
+//
+// In other cases (aside from the nullable cases above),
+// a proto3 scalar field is populated if it contains a non-zero value, and
+// a repeated field is populated if it is non-empty.
+func (x *fastReflection_Service) Has(fd protoreflect.FieldDescriptor) bool {
+ switch fd.FullName() {
+ case "poktroll.shared.Service.id":
+ return x.Id != ""
+ case "poktroll.shared.Service.name":
+ return x.Name != ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Service does not contain field %s", fd.FullName()))
+ }
+}
+
+// Clear clears the field such that a subsequent Has call reports false.
+//
+// Clearing an extension field clears both the extension type and value
+// associated with the given field number.
+//
+// Clear is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Service) Clear(fd protoreflect.FieldDescriptor) {
+ switch fd.FullName() {
+ case "poktroll.shared.Service.id":
+ x.Id = ""
+ case "poktroll.shared.Service.name":
+ x.Name = ""
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Service does not contain field %s", fd.FullName()))
+ }
+}
+
+// Get retrieves the value for a field.
+//
+// For unpopulated scalars, it returns the default value, where
+// the default value of a bytes scalar is guaranteed to be a copy.
+// For unpopulated composite types, it returns an empty, read-only view
+// of the value; to obtain a mutable reference, use Mutable.
+func (x *fastReflection_Service) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
+ switch descriptor.FullName() {
+ case "poktroll.shared.Service.id":
+ value := x.Id
+ return protoreflect.ValueOfString(value)
+ case "poktroll.shared.Service.name":
+ value := x.Name
+ return protoreflect.ValueOfString(value)
+ default:
+ if descriptor.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Service does not contain field %s", descriptor.FullName()))
+ }
+}
+
+// Set stores the value for a field.
+//
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType.
+// When setting a composite type, it is unspecified whether the stored value
+// aliases the source's memory in any way. If the composite value is an
+// empty, read-only value, then it panics.
+//
+// Set is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Service) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
+ switch fd.FullName() {
+ case "poktroll.shared.Service.id":
+ x.Id = value.Interface().(string)
+ case "poktroll.shared.Service.name":
+ x.Name = value.Interface().(string)
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Service does not contain field %s", fd.FullName()))
+ }
+}
+
+// Mutable returns a mutable reference to a composite type.
+//
+// If the field is unpopulated, it may allocate a composite value.
+// For a field belonging to a oneof, it implicitly clears any other field
+// that may be currently set within the same oneof.
+// For extension fields, it implicitly stores the provided ExtensionType
+// if not already stored.
+// It panics if the field does not contain a composite type.
+//
+// Mutable is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Service) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.shared.Service.id":
+ panic(fmt.Errorf("field id of message poktroll.shared.Service is not mutable"))
+ case "poktroll.shared.Service.name":
+ panic(fmt.Errorf("field name of message poktroll.shared.Service is not mutable"))
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Service does not contain field %s", fd.FullName()))
+ }
+}
+
+// NewField returns a new value that is assignable to the field
+// for the given descriptor. For scalars, this returns the default value.
+// For lists, maps, and messages, this returns a new, empty, mutable value.
+func (x *fastReflection_Service) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
+ switch fd.FullName() {
+ case "poktroll.shared.Service.id":
+ return protoreflect.ValueOfString("")
+ case "poktroll.shared.Service.name":
+ return protoreflect.ValueOfString("")
+ default:
+ if fd.IsExtension() {
+ panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.shared.Service"))
+ }
+ panic(fmt.Errorf("message poktroll.shared.Service does not contain field %s", fd.FullName()))
+ }
+}
+
+// WhichOneof reports which field within the oneof is populated,
+// returning nil if none are populated.
+// It panics if the oneof descriptor does not belong to this message.
+func (x *fastReflection_Service) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
+ switch d.FullName() {
+ default:
+ panic(fmt.Errorf("%s is not a oneof field in poktroll.shared.Service", d.FullName()))
+ }
+ panic("unreachable")
+}
+
+// GetUnknown retrieves the entire list of unknown fields.
+// The caller may only mutate the contents of the RawFields
+// if the mutated bytes are stored back into the message with SetUnknown.
+func (x *fastReflection_Service) GetUnknown() protoreflect.RawFields {
+ return x.unknownFields
+}
+
+// SetUnknown stores an entire list of unknown fields.
+// The raw fields must be syntactically valid according to the wire format.
+// An implementation may panic if this is not the case.
+// Once stored, the caller must not mutate the content of the RawFields.
+// An empty RawFields may be passed to clear the fields.
+//
+// SetUnknown is a mutating operation and unsafe for concurrent use.
+func (x *fastReflection_Service) SetUnknown(fields protoreflect.RawFields) {
+ x.unknownFields = fields
+}
+
+// IsValid reports whether the message is valid.
+//
+// An invalid message is an empty, read-only value.
+//
+// An invalid message often corresponds to a nil pointer of the concrete
+// message type, but the details are implementation dependent.
+// Validity is not part of the protobuf data model, and may not
+// be preserved in marshaling or other operations.
+func (x *fastReflection_Service) IsValid() bool {
+ return x != nil
+}
+
+// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
+// This method may return nil.
+//
+// The returned methods type is identical to
+// "google.golang.org/protobuf/runtime/protoiface".Methods.
+// Consult the protoiface package documentation for details.
+func (x *fastReflection_Service) ProtoMethods() *protoiface.Methods {
+ size := func(input protoiface.SizeInput) protoiface.SizeOutput {
+ x := input.Message.Interface().(*Service)
+ if x == nil {
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: 0,
+ }
+ }
+ options := runtime.SizeInputToOptions(input)
+ _ = options
+ var n int
+ var l int
+ _ = l
+ l = len(x.Id)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ l = len(x.Name)
+ if l > 0 {
+ n += 1 + l + runtime.Sov(uint64(l))
+ }
+ if x.unknownFields != nil {
+ n += len(x.unknownFields)
+ }
+ return protoiface.SizeOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Size: n,
+ }
+ }
+
+ marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
+ x := input.Message.Interface().(*Service)
+ if x == nil {
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ options := runtime.MarshalInputToOptions(input)
+ _ = options
+ size := options.Size(x)
+ dAtA := make([]byte, size)
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if x.unknownFields != nil {
+ i -= len(x.unknownFields)
+ copy(dAtA[i:], x.unknownFields)
+ }
+ if len(x.Name) > 0 {
+ i -= len(x.Name)
+ copy(dAtA[i:], x.Name)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(x.Id) > 0 {
+ i -= len(x.Id)
+ copy(dAtA[i:], x.Id)
+ i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
+ i--
+ dAtA[i] = 0xa
+ }
+ if input.Buf != nil {
+ input.Buf = append(input.Buf, dAtA...)
+ } else {
+ input.Buf = dAtA
+ }
+ return protoiface.MarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Buf: input.Buf,
+ }, nil
+ }
+ unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
+ x := input.Message.Interface().(*Service)
+ if x == nil {
+ return protoiface.UnmarshalOutput{
+ NoUnkeyedLiterals: input.NoUnkeyedLiterals,
+ Flags: input.Flags,
+ }, nil
+ }
+ options := runtime.UnmarshalInputToOptions(input)
+ _ = options
+ dAtA := input.Buf
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Service: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Service: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Id = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if postIndex > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ x.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := runtime.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ if !options.DiscardUnknown {
+ x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
+ }
+ return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
+ }
+ return &protoiface.Methods{
+ NoUnkeyedLiterals: struct{}{},
+ Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
+ Size: size,
+ Marshal: marshal,
+ Unmarshal: unmarshal,
+ Merge: nil,
+ CheckInitialized: nil,
+ }
+}
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.27.0
+// protoc (unknown)
+// source: poktroll/shared/service.proto
+
+// NOTE that the `shared` package is not a Cosmos module,
+// but rather a manually created package to resolve circular type dependencies.
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// Service message to encapsulate unique and semantic identifiers for a service on the network
+type Service struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // For example, what if we want to request a session for a certain service but with some additional configs that identify it?
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the service
+ // TODO_TECHDEBT: Name is currently unused but acts as a reminder that an optional onchain representation of the service is necessary
+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // (Optional) Semantic human readable name for the service
+}
+
+func (x *Service) Reset() {
+ *x = Service{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_poktroll_shared_service_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Service) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Service) ProtoMessage() {}
+
+// Deprecated: Use Service.ProtoReflect.Descriptor instead.
+func (*Service) Descriptor() ([]byte, []int) {
+ return file_poktroll_shared_service_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Service) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+func (x *Service) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+var File_poktroll_shared_service_proto protoreflect.FileDescriptor
+
+var file_poktroll_shared_service_proto_rawDesc = []byte{
+ 0x0a, 0x1d, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65,
+ 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
+ 0x0f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64,
+ 0x22, 0x2d, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69,
+ 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e,
+ 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42,
+ 0xa2, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
+ 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
+ 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73,
+ 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x58, 0xaa,
+ 0x02, 0x0f, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65,
+ 0x64, 0xca, 0x02, 0x0f, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53, 0x68, 0x61,
+ 0x72, 0x65, 0x64, 0xe2, 0x02, 0x1b, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x53,
+ 0x68, 0x61, 0x72, 0x65, 0x64, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
+ 0x61, 0xea, 0x02, 0x10, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x53, 0x68,
+ 0x61, 0x72, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_poktroll_shared_service_proto_rawDescOnce sync.Once
+ file_poktroll_shared_service_proto_rawDescData = file_poktroll_shared_service_proto_rawDesc
+)
+
+func file_poktroll_shared_service_proto_rawDescGZIP() []byte {
+ file_poktroll_shared_service_proto_rawDescOnce.Do(func() {
+ file_poktroll_shared_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_shared_service_proto_rawDescData)
+ })
+ return file_poktroll_shared_service_proto_rawDescData
+}
+
+var file_poktroll_shared_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
+var file_poktroll_shared_service_proto_goTypes = []interface{}{
+ (*Service)(nil), // 0: poktroll.shared.Service
+}
+var file_poktroll_shared_service_proto_depIdxs = []int32{
+ 0, // [0:0] is the sub-list for method output_type
+ 0, // [0:0] is the sub-list for method input_type
+ 0, // [0:0] is the sub-list for extension type_name
+ 0, // [0:0] is the sub-list for extension extendee
+ 0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_poktroll_shared_service_proto_init() }
+func file_poktroll_shared_service_proto_init() {
+ if File_poktroll_shared_service_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_poktroll_shared_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Service); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_poktroll_shared_service_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 1,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_poktroll_shared_service_proto_goTypes,
+ DependencyIndexes: file_poktroll_shared_service_proto_depIdxs,
+ MessageInfos: file_poktroll_shared_service_proto_msgTypes,
+ }.Build()
+ File_poktroll_shared_service_proto = out.File
+ file_poktroll_shared_service_proto_rawDesc = nil
+ file_poktroll_shared_service_proto_goTypes = nil
+ file_poktroll_shared_service_proto_depIdxs = nil
+}
diff --git a/app/app.go b/app/app.go
index 7a92f9827..5e4cfa31d 100644
--- a/app/app.go
+++ b/app/app.go
@@ -1,224 +1,74 @@
package app
import (
- "encoding/json"
- "fmt"
"io"
"os"
"path/filepath"
- autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
- reflectionv1 "cosmossdk.io/api/cosmos/reflection/v1"
- dbm "github.com/cometbft/cometbft-db"
- abci "github.com/cometbft/cometbft/abci/types"
- "github.com/cometbft/cometbft/libs/log"
- tmos "github.com/cometbft/cometbft/libs/os"
+ "cosmossdk.io/depinject"
+ "cosmossdk.io/log"
+ storetypes "cosmossdk.io/store/types"
+ circuitkeeper "cosmossdk.io/x/circuit/keeper"
+ evidencekeeper "cosmossdk.io/x/evidence/keeper"
+ feegrantkeeper "cosmossdk.io/x/feegrant/keeper"
+ upgradekeeper "cosmossdk.io/x/upgrade/keeper"
+ dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
- nodeservice "github.com/cosmos/cosmos-sdk/client/grpc/node"
- "github.com/cosmos/cosmos-sdk/client/grpc/tmservice"
"github.com/cosmos/cosmos-sdk/codec"
- "github.com/cosmos/cosmos-sdk/codec/types"
+ codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/runtime"
- runtimeservices "github.com/cosmos/cosmos-sdk/runtime/services"
+ "github.com/cosmos/cosmos-sdk/server"
"github.com/cosmos/cosmos-sdk/server/api"
"github.com/cosmos/cosmos-sdk/server/config"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
- storetypes "github.com/cosmos/cosmos-sdk/store/types"
- sdk "github.com/cosmos/cosmos-sdk/types"
+ testdata_pulsar "github.com/cosmos/cosmos-sdk/testutil/testdata/testpb"
"github.com/cosmos/cosmos-sdk/types/module"
- "github.com/cosmos/cosmos-sdk/version"
"github.com/cosmos/cosmos-sdk/x/auth"
- "github.com/cosmos/cosmos-sdk/x/auth/ante"
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
authsims "github.com/cosmos/cosmos-sdk/x/auth/simulation"
- authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
- "github.com/cosmos/cosmos-sdk/x/auth/vesting"
- vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
- "github.com/cosmos/cosmos-sdk/x/authz"
authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper"
- authzmodule "github.com/cosmos/cosmos-sdk/x/authz/module"
- "github.com/cosmos/cosmos-sdk/x/bank"
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
- banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
- "github.com/cosmos/cosmos-sdk/x/capability"
- capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper"
- capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
- "github.com/cosmos/cosmos-sdk/x/consensus"
- consensusparamkeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper"
- consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types"
- "github.com/cosmos/cosmos-sdk/x/crisis"
+ consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper"
crisiskeeper "github.com/cosmos/cosmos-sdk/x/crisis/keeper"
- crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
- distr "github.com/cosmos/cosmos-sdk/x/distribution"
distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper"
- distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
- "github.com/cosmos/cosmos-sdk/x/evidence"
- evidencekeeper "github.com/cosmos/cosmos-sdk/x/evidence/keeper"
- evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types"
- "github.com/cosmos/cosmos-sdk/x/feegrant"
- feegrantkeeper "github.com/cosmos/cosmos-sdk/x/feegrant/keeper"
- feegrantmodule "github.com/cosmos/cosmos-sdk/x/feegrant/module"
"github.com/cosmos/cosmos-sdk/x/genutil"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
"github.com/cosmos/cosmos-sdk/x/gov"
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
- govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
- govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
- "github.com/cosmos/cosmos-sdk/x/group"
groupkeeper "github.com/cosmos/cosmos-sdk/x/group/keeper"
- groupmodule "github.com/cosmos/cosmos-sdk/x/group/module"
- "github.com/cosmos/cosmos-sdk/x/mint"
mintkeeper "github.com/cosmos/cosmos-sdk/x/mint/keeper"
- minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
- "github.com/cosmos/cosmos-sdk/x/params"
paramsclient "github.com/cosmos/cosmos-sdk/x/params/client"
paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper"
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
- paramproposal "github.com/cosmos/cosmos-sdk/x/params/types/proposal"
- "github.com/cosmos/cosmos-sdk/x/slashing"
slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper"
- slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
- "github.com/cosmos/cosmos-sdk/x/staking"
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
- stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
- "github.com/cosmos/cosmos-sdk/x/upgrade"
- upgradeclient "github.com/cosmos/cosmos-sdk/x/upgrade/client"
- upgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper"
- upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
- ica "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts"
- icacontrollerkeeper "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/keeper"
- icacontrollertypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/types"
- icahost "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host"
- icahostkeeper "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host/keeper"
- icahosttypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host/types"
- icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types"
- "github.com/cosmos/ibc-go/v7/modules/apps/transfer"
- ibctransferkeeper "github.com/cosmos/ibc-go/v7/modules/apps/transfer/keeper"
- ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
- ibc "github.com/cosmos/ibc-go/v7/modules/core"
- ibcclient "github.com/cosmos/ibc-go/v7/modules/core/02-client"
- ibcclientclient "github.com/cosmos/ibc-go/v7/modules/core/02-client/client"
- ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
- ibcporttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types"
- ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported"
- ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper"
- solomachine "github.com/cosmos/ibc-go/v7/modules/light-clients/06-solomachine"
- ibctm "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint"
- "github.com/spf13/cast"
+ capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper"
+ icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper"
+ icahostkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/keeper"
+ ibcfeekeeper "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/keeper"
+ ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper"
+ ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"
- appparams "github.com/pokt-network/poktroll/app/params"
- "github.com/pokt-network/poktroll/docs"
- applicationmodule "github.com/pokt-network/poktroll/x/application"
- applicationmodulekeeper "github.com/pokt-network/poktroll/x/application/keeper"
- applicationmoduletypes "github.com/pokt-network/poktroll/x/application/types"
- gatewaymodule "github.com/pokt-network/poktroll/x/gateway"
- gatewaymodulekeeper "github.com/pokt-network/poktroll/x/gateway/keeper"
- gatewaymoduletypes "github.com/pokt-network/poktroll/x/gateway/types"
- pocketmodule "github.com/pokt-network/poktroll/x/pocket"
- pocketmodulekeeper "github.com/pokt-network/poktroll/x/pocket/keeper"
- pocketmoduletypes "github.com/pokt-network/poktroll/x/pocket/types"
- servicemodule "github.com/pokt-network/poktroll/x/service"
servicemodulekeeper "github.com/pokt-network/poktroll/x/service/keeper"
- servicemoduletypes "github.com/pokt-network/poktroll/x/service/types"
- sessionmodule "github.com/pokt-network/poktroll/x/session"
- sessionmodulekeeper "github.com/pokt-network/poktroll/x/session/keeper"
- sessionmoduletypes "github.com/pokt-network/poktroll/x/session/types"
- suppliermodule "github.com/pokt-network/poktroll/x/supplier"
- suppliermodulekeeper "github.com/pokt-network/poktroll/x/supplier/keeper"
- suppliermoduletypes "github.com/pokt-network/poktroll/x/supplier/types"
- tokenomicsmodule "github.com/pokt-network/poktroll/x/tokenomics"
- tokenomicsmodulekeeper "github.com/pokt-network/poktroll/x/tokenomics/keeper"
- tokenomicsmoduletypes "github.com/pokt-network/poktroll/x/tokenomics/types"
+ // this line is used by starport scaffolding # stargate/app/moduleImport
+
+ "github.com/pokt-network/poktroll/docs"
)
const (
AccountAddressPrefix = "pokt"
- Name = "pocket"
+ Name = "poktroll"
// TODO_CLEANUP: Find a way to centralize the use of `upokt` throughout the codebase
DenomuPOKT = "upokt"
)
-// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals
-
-func getGovProposalHandlers() []govclient.ProposalHandler {
- var govProposalHandlers []govclient.ProposalHandler
- // this line is used by starport scaffolding # stargate/app/govProposalHandlers
-
- govProposalHandlers = append(govProposalHandlers,
- paramsclient.ProposalHandler,
- upgradeclient.LegacyProposalHandler,
- upgradeclient.LegacyCancelProposalHandler,
- ibcclientclient.UpdateClientProposalHandler,
- ibcclientclient.UpgradeProposalHandler,
- // this line is used by starport scaffolding # stargate/app/govProposalHandler
- )
-
- return govProposalHandlers
-}
-
var (
// DefaultNodeHome default home directories for the application daemon
DefaultNodeHome string
-
- // ModuleBasics defines the module BasicManager is in charge of setting up basic,
- // non-dependant module elements, such as codec registration
- // and genesis verification.
- ModuleBasics = module.NewBasicManager(
- auth.AppModuleBasic{},
- authzmodule.AppModuleBasic{},
- // TODO_DISCUSS: Should we rename all instances of `Validator` to `Sequencer`?
- genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator),
- bank.AppModuleBasic{},
- capability.AppModuleBasic{},
- staking.AppModuleBasic{},
- mint.AppModuleBasic{},
- distr.AppModuleBasic{},
- gov.NewAppModuleBasic(getGovProposalHandlers()),
- params.AppModuleBasic{},
- crisis.AppModuleBasic{},
- slashing.AppModuleBasic{},
- feegrantmodule.AppModuleBasic{},
- groupmodule.AppModuleBasic{},
- ibc.AppModuleBasic{},
- ibctm.AppModuleBasic{},
- solomachine.AppModuleBasic{},
- upgrade.AppModuleBasic{},
- evidence.AppModuleBasic{},
- transfer.AppModuleBasic{},
- ica.AppModuleBasic{},
- vesting.AppModuleBasic{},
- consensus.AppModuleBasic{},
- pocketmodule.AppModuleBasic{},
- servicemodule.AppModuleBasic{},
- sessionmodule.AppModuleBasic{},
- applicationmodule.AppModuleBasic{},
- suppliermodule.AppModuleBasic{},
- gatewaymodule.AppModuleBasic{},
- tokenomicsmodule.AppModuleBasic{},
- // this line is used by starport scaffolding # stargate/app/moduleBasic
- )
-
- // module account permissions
- maccPerms = map[string][]string{
- authtypes.FeeCollectorName: nil,
- distrtypes.ModuleName: nil,
- icatypes.ModuleName: nil,
- minttypes.ModuleName: {authtypes.Minter},
- stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking},
- stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking},
- govtypes.ModuleName: {authtypes.Burner},
- ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
- suppliermoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking},
- servicemoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking},
- applicationmoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking},
- gatewaymoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking},
- tokenomicsmoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner},
- // this line is used by starport scaffolding # stargate/app/maccPerms
- }
)
var (
@@ -226,790 +76,280 @@ var (
_ servertypes.Application = (*App)(nil)
)
-func init() {
- userHomeDir, err := os.UserHomeDir()
- if err != nil {
- panic(err)
- }
-
- DefaultNodeHome = filepath.Join(userHomeDir, "."+Name)
-}
-
// App extends an ABCI application, but with most of its parameters exported.
// They are exported for convenience in creating helper functions, as object
// capabilities aren't needed for testing.
type App struct {
- *baseapp.BaseApp
-
- cdc *codec.LegacyAmino
+ *runtime.App
+ legacyAmino *codec.LegacyAmino
appCodec codec.Codec
- interfaceRegistry types.InterfaceRegistry
txConfig client.TxConfig
-
- invCheckPeriod uint
-
- // keys to access the substores
- keys map[string]*storetypes.KVStoreKey
- tkeys map[string]*storetypes.TransientStoreKey
- memKeys map[string]*storetypes.MemoryStoreKey
+ interfaceRegistry codectypes.InterfaceRegistry
// keepers
AccountKeeper authkeeper.AccountKeeper
- AuthzKeeper authzkeeper.Keeper
BankKeeper bankkeeper.Keeper
- CapabilityKeeper *capabilitykeeper.Keeper
StakingKeeper *stakingkeeper.Keeper
SlashingKeeper slashingkeeper.Keeper
MintKeeper mintkeeper.Keeper
DistrKeeper distrkeeper.Keeper
- GovKeeper govkeeper.Keeper
+ GovKeeper *govkeeper.Keeper
CrisisKeeper *crisiskeeper.Keeper
UpgradeKeeper *upgradekeeper.Keeper
ParamsKeeper paramskeeper.Keeper
- IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
+ AuthzKeeper authzkeeper.Keeper
EvidenceKeeper evidencekeeper.Keeper
- TransferKeeper ibctransferkeeper.Keeper
- ICAHostKeeper icahostkeeper.Keeper
FeeGrantKeeper feegrantkeeper.Keeper
GroupKeeper groupkeeper.Keeper
- ConsensusParamsKeeper consensusparamkeeper.Keeper
+ ConsensusParamsKeeper consensuskeeper.Keeper
+ CircuitBreakerKeeper circuitkeeper.Keeper
+
+ // IBC
+ IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
+ CapabilityKeeper *capabilitykeeper.Keeper
+ IBCFeeKeeper ibcfeekeeper.Keeper
+ ICAControllerKeeper icacontrollerkeeper.Keeper
+ ICAHostKeeper icahostkeeper.Keeper
+ TransferKeeper ibctransferkeeper.Keeper
+
+ // Scoped IBC
+ ScopedIBCKeeper capabilitykeeper.ScopedKeeper
+ ScopedIBCTransferKeeper capabilitykeeper.ScopedKeeper
+ ScopedICAControllerKeeper capabilitykeeper.ScopedKeeper
+ ScopedICAHostKeeper capabilitykeeper.ScopedKeeper
+
+ ServiceKeeper servicemodulekeeper.Keeper
+ // this line is used by starport scaffolding # stargate/app/keeperDeclaration
- // make scoped keepers public for test purposes
- ScopedIBCKeeper capabilitykeeper.ScopedKeeper
- ScopedTransferKeeper capabilitykeeper.ScopedKeeper
- ScopedICAHostKeeper capabilitykeeper.ScopedKeeper
+ // simulation manager
+ sm *module.SimulationManager
+}
- PocketKeeper pocketmodulekeeper.Keeper
- ServiceKeeper servicemodulekeeper.Keeper
- SessionKeeper sessionmodulekeeper.Keeper
- ApplicationKeeper applicationmodulekeeper.Keeper
- SupplierKeeper suppliermodulekeeper.Keeper
+func init() {
+ userHomeDir, err := os.UserHomeDir()
+ if err != nil {
+ panic(err)
+ }
- GatewayKeeper gatewaymodulekeeper.Keeper
+ DefaultNodeHome = filepath.Join(userHomeDir, "."+Name)
+}
- TokenomicsKeeper tokenomicsmodulekeeper.Keeper
- // this line is used by starport scaffolding # stargate/app/keeperDeclaration
+// getGovProposalHandlers return the chain proposal handlers.
+func getGovProposalHandlers() []govclient.ProposalHandler {
+ var govProposalHandlers []govclient.ProposalHandler
+ // this line is used by starport scaffolding # stargate/app/govProposalHandlers
+
+ govProposalHandlers = append(govProposalHandlers,
+ paramsclient.ProposalHandler,
+ // this line is used by starport scaffolding # stargate/app/govProposalHandler
+ )
- // mm is the module manager
- mm *module.Manager
+ return govProposalHandlers
+}
- // sm is the simulation manager
- sm *module.SimulationManager
- configurator module.Configurator
+// AppConfig returns the default app config.
+func AppConfig() depinject.Config {
+ return depinject.Configs(
+ appConfig,
+ // Loads the ao config from a YAML file.
+ // appconfig.LoadYAML(AppConfigYAML),
+ depinject.Supply(
+ // supply custom module basics
+ map[string]module.AppModuleBasic{
+ genutiltypes.ModuleName: genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator),
+ govtypes.ModuleName: gov.NewAppModuleBasic(getGovProposalHandlers()),
+ // this line is used by starport scaffolding # stargate/appConfig/moduleBasic
+ },
+ ),
+ )
}
-// New returns a reference to an initialized blockchain app
+// New returns a reference to an initialized App.
func New(
logger log.Logger,
db dbm.DB,
traceStore io.Writer,
loadLatest bool,
- skipUpgradeHeights map[int64]bool,
- homePath string,
- invCheckPeriod uint,
- encodingConfig appparams.EncodingConfig,
appOpts servertypes.AppOptions,
baseAppOptions ...func(*baseapp.BaseApp),
-) *App {
- appCodec := encodingConfig.Marshaler
- cdc := encodingConfig.Amino
- interfaceRegistry := encodingConfig.InterfaceRegistry
- txConfig := encodingConfig.TxConfig
-
- bApp := baseapp.NewBaseApp(
- Name,
- logger,
- db,
- encodingConfig.TxConfig.TxDecoder(),
- baseAppOptions...,
- )
- bApp.SetCommitMultiStoreTracer(traceStore)
- bApp.SetVersion(version.Version)
- bApp.SetInterfaceRegistry(interfaceRegistry)
- bApp.SetTxEncoder(txConfig.TxEncoder())
-
- keys := sdk.NewKVStoreKeys(
- authtypes.StoreKey, authz.ModuleName, banktypes.StoreKey, stakingtypes.StoreKey,
- crisistypes.StoreKey, minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey,
- govtypes.StoreKey, paramstypes.StoreKey, ibcexported.StoreKey, upgradetypes.StoreKey,
- feegrant.StoreKey, evidencetypes.StoreKey, ibctransfertypes.StoreKey, icahosttypes.StoreKey,
- capabilitytypes.StoreKey, group.StoreKey, icacontrollertypes.StoreKey, consensusparamtypes.StoreKey,
- pocketmoduletypes.StoreKey,
- servicemoduletypes.StoreKey,
- sessionmoduletypes.StoreKey,
- applicationmoduletypes.StoreKey,
- suppliermoduletypes.StoreKey,
- gatewaymoduletypes.StoreKey,
- tokenomicsmoduletypes.StoreKey,
- // this line is used by starport scaffolding # stargate/app/storeKey
- )
- tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)
- memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey)
-
- // TODO_BLOCKER(#322): Change this to `authtypes.NewModuleAddress(govtypes.ModuleName)`
- // once we figure out the MVP for on-chain parameter governance.
- pnfAddress := "pokt1eeeksh2tvkh7wzmfrljnhw4wrhs55lcuvmekkw"
- authority := pnfAddress
-
- app := &App{
- BaseApp: bApp,
- cdc: cdc,
- appCodec: appCodec,
- interfaceRegistry: interfaceRegistry,
- txConfig: encodingConfig.TxConfig,
- invCheckPeriod: invCheckPeriod,
- keys: keys,
- tkeys: tkeys,
- memKeys: memKeys,
+) (*App, error) {
+ var (
+ app = &App{}
+ appBuilder *runtime.AppBuilder
+
+ // merge the AppConfig and other configuration in one config
+ // TODO_BLOCKER(@Olshansk): Revisit the advanced configuration and understand if/where it fits in Shannon
+ appConfig = depinject.Configs(
+ AppConfig(),
+ depinject.Supply(
+ // Supply the application options
+ appOpts,
+ // Supply with IBC keeper getter for the IBC modules with App Wiring.
+ // The IBC Keeper cannot be passed because it has not been initiated yet.
+ // Passing the getter, the app IBC Keeper will always be accessible.
+ // This needs to be removed after IBC supports App Wiring.
+ app.GetIBCKeeper,
+ app.GetCapabilityScopedKeeper,
+ // Supply the logger
+ logger,
+
+ // ADVANCED CONFIGURATION
+ //
+ // AUTH
+ //
+ // For providing a custom function required in auth to generate custom account types
+ // add it below. By default the auth module uses simulation.RandomGenesisAccounts.
+ //
+ // authtypes.RandomGenesisAccountsFn(simulation.RandomGenesisAccounts),
+ //
+ // For providing a custom a base account type add it below.
+ // By default the auth module uses authtypes.ProtoBaseAccount().
+ //
+ // func() sdk.AccountI { return authtypes.ProtoBaseAccount() },
+ //
+ // For providing a different address codec, add it below.
+ // By default the auth module uses a Bech32 address codec,
+ // with the prefix defined in the auth module configuration.
+ //
+ // func() address.Codec { return <- custom address codec type -> }
+
+ //
+ // STAKING
+ //
+ // For provinding a different validator and consensus address codec, add it below.
+ // By default the staking module uses the bech32 prefix provided in the auth config,
+ // and appends "valoper" and "valcons" for validator and consensus addresses respectively.
+ // When providing a custom address codec in auth, custom address codecs must be provided here as well.
+ //
+ // func() runtime.ValidatorAddressCodec { return <- custom validator address codec type -> }
+ // func() runtime.ConsensusAddressCodec { return <- custom consensus address codec type -> }
+
+ //
+ // MINT
+ //
+
+ // For providing a custom inflation function for x/mint add here your
+ // custom function that implements the minttypes.InflationCalculationFn
+ // interface.
+ ),
+ )
+ )
+
+ if err := depinject.Inject(appConfig,
+ &appBuilder,
+ &app.appCodec,
+ &app.legacyAmino,
+ &app.txConfig,
+ &app.interfaceRegistry,
+ &app.AccountKeeper,
+ &app.BankKeeper,
+ &app.StakingKeeper,
+ &app.SlashingKeeper,
+ &app.MintKeeper,
+ &app.DistrKeeper,
+ &app.GovKeeper,
+ &app.CrisisKeeper,
+ &app.UpgradeKeeper,
+ &app.ParamsKeeper,
+ &app.AuthzKeeper,
+ &app.EvidenceKeeper,
+ &app.FeeGrantKeeper,
+ &app.GroupKeeper,
+ &app.ConsensusParamsKeeper,
+ &app.CircuitBreakerKeeper,
+ &app.ServiceKeeper,
+ // this line is used by starport scaffolding # stargate/app/keeperDefinition
+ ); err != nil {
+ panic(err)
}
- app.ParamsKeeper = initParamsKeeper(
- appCodec,
- cdc,
- keys[paramstypes.StoreKey],
- tkeys[paramstypes.TStoreKey],
- )
-
- // set the BaseApp's parameter store
- app.ConsensusParamsKeeper = consensusparamkeeper.NewKeeper(
- appCodec,
- keys[upgradetypes.StoreKey],
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
- bApp.SetParamStore(&app.ConsensusParamsKeeper)
-
- // add capability keeper and ScopeToModule for ibc module
- app.CapabilityKeeper = capabilitykeeper.NewKeeper(
- appCodec,
- keys[capabilitytypes.StoreKey],
- memKeys[capabilitytypes.MemStoreKey],
- )
-
- // grant capabilities for the ibc and ibc-transfer modules
- scopedIBCKeeper := app.CapabilityKeeper.ScopeToModule(ibcexported.ModuleName)
- scopedICAControllerKeeper := app.CapabilityKeeper.ScopeToModule(icacontrollertypes.SubModuleName)
- scopedTransferKeeper := app.CapabilityKeeper.ScopeToModule(ibctransfertypes.ModuleName)
- scopedICAHostKeeper := app.CapabilityKeeper.ScopeToModule(icahosttypes.SubModuleName)
- // this line is used by starport scaffolding # stargate/app/scopedKeeper
-
- // add keepers
- app.AccountKeeper = authkeeper.NewAccountKeeper(
- appCodec,
- keys[authtypes.StoreKey],
- authtypes.ProtoBaseAccount,
- maccPerms,
- sdk.Bech32PrefixAccAddr,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- app.AuthzKeeper = authzkeeper.NewKeeper(
- keys[authz.ModuleName],
- appCodec,
- app.MsgServiceRouter(),
- app.AccountKeeper,
- )
-
- app.BankKeeper = bankkeeper.NewBaseKeeper(
- appCodec,
- keys[banktypes.StoreKey],
- app.AccountKeeper,
- app.BlockedModuleAccountAddrs(),
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- app.StakingKeeper = stakingkeeper.NewKeeper(
- appCodec,
- keys[stakingtypes.StoreKey],
- app.AccountKeeper,
- app.BankKeeper,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- app.FeeGrantKeeper = feegrantkeeper.NewKeeper(
- appCodec,
- keys[feegrant.StoreKey],
- app.AccountKeeper,
- )
-
- app.MintKeeper = mintkeeper.NewKeeper(
- appCodec,
- keys[minttypes.StoreKey],
- app.StakingKeeper,
- app.AccountKeeper,
- app.BankKeeper,
- authtypes.FeeCollectorName,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- app.DistrKeeper = distrkeeper.NewKeeper(
- appCodec,
- keys[distrtypes.StoreKey],
- app.AccountKeeper,
- app.BankKeeper,
- app.StakingKeeper,
- authtypes.FeeCollectorName,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- app.SlashingKeeper = slashingkeeper.NewKeeper(
- appCodec,
- cdc,
- keys[slashingtypes.StoreKey],
- app.StakingKeeper,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- app.CrisisKeeper = crisiskeeper.NewKeeper(
- appCodec,
- keys[crisistypes.StoreKey],
- invCheckPeriod,
- app.BankKeeper,
- authtypes.FeeCollectorName,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- groupConfig := group.DefaultConfig()
- /*
- Example of setting group params:
- groupConfig.MaxMetadataLen = 1000
- */
- app.GroupKeeper = groupkeeper.NewKeeper(
- keys[group.StoreKey],
- appCodec,
- app.MsgServiceRouter(),
- app.AccountKeeper,
- groupConfig,
- )
-
- app.UpgradeKeeper = upgradekeeper.NewKeeper(
- skipUpgradeHeights,
- keys[upgradetypes.StoreKey],
- appCodec,
- homePath,
- app.BaseApp,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- // ... other modules keepers
-
- // Create IBC Keeper
- app.IBCKeeper = ibckeeper.NewKeeper(
- appCodec, keys[ibcexported.StoreKey],
- app.GetSubspace(ibcexported.ModuleName),
- app.StakingKeeper,
- app.UpgradeKeeper,
- scopedIBCKeeper,
- )
-
- // Create Transfer Keepers
- app.TransferKeeper = ibctransferkeeper.NewKeeper(
- appCodec,
- keys[ibctransfertypes.StoreKey],
- app.GetSubspace(ibctransfertypes.ModuleName),
- app.IBCKeeper.ChannelKeeper,
- app.IBCKeeper.ChannelKeeper,
- &app.IBCKeeper.PortKeeper,
- app.AccountKeeper,
- app.BankKeeper,
- scopedTransferKeeper,
- )
- transferModule := transfer.NewAppModule(app.TransferKeeper)
- transferIBCModule := transfer.NewIBCModule(app.TransferKeeper)
-
- app.ICAHostKeeper = icahostkeeper.NewKeeper(
- appCodec, keys[icahosttypes.StoreKey],
- app.GetSubspace(icahosttypes.SubModuleName),
- app.IBCKeeper.ChannelKeeper,
- app.IBCKeeper.ChannelKeeper,
- &app.IBCKeeper.PortKeeper,
- app.AccountKeeper,
- scopedICAHostKeeper,
- app.MsgServiceRouter(),
- )
- icaControllerKeeper := icacontrollerkeeper.NewKeeper(
- appCodec, keys[icacontrollertypes.StoreKey],
- app.GetSubspace(icacontrollertypes.SubModuleName),
- app.IBCKeeper.ChannelKeeper, // may be replaced with middleware such as ics29 fee
- app.IBCKeeper.ChannelKeeper, &app.IBCKeeper.PortKeeper,
- scopedICAControllerKeeper, app.MsgServiceRouter(),
- )
- icaModule := ica.NewAppModule(&icaControllerKeeper, &app.ICAHostKeeper)
- icaHostIBCModule := icahost.NewIBCModule(app.ICAHostKeeper)
-
- // Create evidence Keeper for to register the IBC light client misbehaviour evidence route
- evidenceKeeper := evidencekeeper.NewKeeper(
- appCodec,
- keys[evidencetypes.StoreKey],
- app.StakingKeeper,
- app.SlashingKeeper,
- )
- // If evidence needs to be handled for the app, set routes in router here and seal
- app.EvidenceKeeper = *evidenceKeeper
-
- govConfig := govtypes.DefaultConfig()
- govKeeper := govkeeper.NewKeeper(
- appCodec,
- keys[govtypes.StoreKey],
- app.AccountKeeper,
- app.BankKeeper,
- app.StakingKeeper,
- app.MsgServiceRouter(),
- govConfig,
- authtypes.NewModuleAddress(govtypes.ModuleName).String(),
- )
-
- govRouter := govv1beta1.NewRouter()
- govRouter.
- AddRoute(govtypes.RouterKey, govv1beta1.ProposalHandler).
- AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(app.ParamsKeeper)).
- AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(app.UpgradeKeeper)).
- AddRoute(ibcclienttypes.RouterKey, ibcclient.NewClientProposalHandler(app.IBCKeeper.ClientKeeper))
- govKeeper.SetLegacyRouter(govRouter)
-
- app.GovKeeper = *govKeeper.SetHooks(
- govtypes.NewMultiGovHooks(
- // register the governance hooks
- ),
- )
-
- app.PocketKeeper = *pocketmodulekeeper.NewKeeper(
- appCodec,
- keys[pocketmoduletypes.StoreKey],
- keys[pocketmoduletypes.MemStoreKey],
- app.GetSubspace(pocketmoduletypes.ModuleName),
- )
- pocketModule := pocketmodule.NewAppModule(appCodec, app.PocketKeeper, app.AccountKeeper, app.BankKeeper)
-
- app.ServiceKeeper = *servicemodulekeeper.NewKeeper(
- appCodec,
- keys[servicemoduletypes.StoreKey],
- keys[servicemoduletypes.MemStoreKey],
- app.GetSubspace(servicemoduletypes.ModuleName),
-
- app.BankKeeper,
- )
- serviceModule := servicemodule.NewAppModule(appCodec, app.ServiceKeeper, app.AccountKeeper, app.BankKeeper)
-
- app.GatewayKeeper = *gatewaymodulekeeper.NewKeeper(
- appCodec,
- keys[gatewaymoduletypes.StoreKey],
- keys[gatewaymoduletypes.MemStoreKey],
- app.GetSubspace(gatewaymoduletypes.ModuleName),
-
- app.BankKeeper,
- )
- gatewayModule := gatewaymodule.NewAppModule(appCodec, app.GatewayKeeper, app.AccountKeeper, app.BankKeeper)
-
- app.ApplicationKeeper = *applicationmodulekeeper.NewKeeper(
- appCodec,
- keys[applicationmoduletypes.StoreKey],
- keys[applicationmoduletypes.MemStoreKey],
- app.GetSubspace(applicationmoduletypes.ModuleName),
-
- app.BankKeeper,
- app.AccountKeeper,
- app.GatewayKeeper,
- )
- applicationModule := applicationmodule.NewAppModule(
- appCodec,
- app.ApplicationKeeper,
- app.AccountKeeper,
- app.BankKeeper,
- )
-
- // TODO_TECHDEBT: Evaluate if this NB goes away after we upgrade to cosmos 0.5x
- // NB: there is a circular dependency between the supplier and session keepers.
- // Because the keepers are values (as opposed to pointers), they are copied
- // when passed into their respective module constructor functions. For this
- // reason, the existing pattern of ignite-generated keeper/module construction
- // must be broken for these keepers and modules.
+ // Below we could construct and set an application specific mempool and
+ // ABCI 1.0 PrepareProposal and ProcessProposal handlers. These defaults are
+ // already set in the SDK's BaseApp, this shows an example of how to override
+ // them.
//
- // Order of operations:
- // 1. Construct supplier keeper
- // 2. Construct session keeper
- // 3. Provide session keeper to supplier keeper via custom #SupplySessionKeeper method.
- // 4. Construct supplier module
- // 5. Construct session module
- app.SupplierKeeper = *suppliermodulekeeper.NewKeeper(
- appCodec,
- keys[suppliermoduletypes.StoreKey],
- keys[suppliermoduletypes.MemStoreKey],
- app.GetSubspace(suppliermoduletypes.ModuleName),
-
- app.BankKeeper,
- )
-
- app.SessionKeeper = *sessionmodulekeeper.NewKeeper(
- appCodec,
- keys[sessionmoduletypes.StoreKey],
- keys[sessionmoduletypes.MemStoreKey],
- app.GetSubspace(sessionmoduletypes.ModuleName),
-
- app.ApplicationKeeper,
- app.SupplierKeeper,
- )
-
- app.SupplierKeeper.SupplySessionKeeper(app.SessionKeeper)
-
- supplierModule := suppliermodule.NewAppModule(appCodec, app.SupplierKeeper, app.AccountKeeper, app.BankKeeper)
- sessionModule := sessionmodule.NewAppModule(appCodec, app.SessionKeeper, app.AccountKeeper, app.BankKeeper)
-
- app.TokenomicsKeeper = *tokenomicsmodulekeeper.NewKeeper(
- appCodec,
- keys[tokenomicsmoduletypes.StoreKey],
- keys[tokenomicsmoduletypes.MemStoreKey],
- app.GetSubspace(tokenomicsmoduletypes.ModuleName),
- app.BankKeeper,
- authority,
- )
- tokenomicsModule := tokenomicsmodule.NewAppModule(appCodec, app.TokenomicsKeeper, app.AccountKeeper, app.BankKeeper)
-
- // this line is used by starport scaffolding # stargate/app/keeperDefinition
-
- /**** IBC Routing ****/
-
- // Sealing prevents other modules from creating scoped sub-keepers
- app.CapabilityKeeper.Seal()
-
- // Create static IBC router, add transfer route, then set and seal it
- ibcRouter := ibcporttypes.NewRouter()
- ibcRouter.AddRoute(icahosttypes.SubModuleName, icaHostIBCModule).
- AddRoute(ibctransfertypes.ModuleName, transferIBCModule)
- // this line is used by starport scaffolding # ibc/app/router
- app.IBCKeeper.SetRouter(ibcRouter)
-
- /**** Module Hooks ****/
-
- // register hooks after all modules have been initialized
-
- app.StakingKeeper.SetHooks(
- stakingtypes.NewMultiStakingHooks(
- // insert staking hooks receivers here
- app.DistrKeeper.Hooks(),
- app.SlashingKeeper.Hooks(),
- ),
- )
-
- /**** Module Options ****/
-
- // NOTE: we may consider parsing `appOpts` inside module constructors. For the moment
- // we prefer to be more strict in what arguments the modules expect.
- skipGenesisInvariants := cast.ToBool(appOpts.Get(crisis.FlagSkipGenesisInvariants))
-
- // NOTE: Any module instantiated in the module manager that is later modified
- // must be passed by reference here.
-
- app.mm = module.NewManager(
- genutil.NewAppModule(
- app.AccountKeeper,
- app.StakingKeeper,
- app.BaseApp.DeliverTx,
- encodingConfig.TxConfig,
- ),
- auth.NewAppModule(
- appCodec,
- app.AccountKeeper,
- authsims.RandomGenesisAccounts,
- app.GetSubspace(authtypes.ModuleName),
- ),
- authzmodule.NewAppModule(appCodec, app.AuthzKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),
- vesting.NewAppModule(app.AccountKeeper, app.BankKeeper),
- bank.NewAppModule(appCodec, app.BankKeeper, app.AccountKeeper, app.GetSubspace(banktypes.ModuleName)),
- capability.NewAppModule(appCodec, *app.CapabilityKeeper, false),
- feegrantmodule.NewAppModule(
- appCodec,
- app.AccountKeeper,
- app.BankKeeper,
- app.FeeGrantKeeper,
- app.interfaceRegistry,
- ),
- groupmodule.NewAppModule(appCodec, app.GroupKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),
- gov.NewAppModule(
- appCodec,
- &app.GovKeeper,
- app.AccountKeeper,
- app.BankKeeper,
- app.GetSubspace(govtypes.ModuleName),
- ),
- mint.NewAppModule(appCodec, app.MintKeeper, app.AccountKeeper, nil, app.GetSubspace(minttypes.ModuleName)),
- slashing.NewAppModule(
- appCodec,
- app.SlashingKeeper,
- app.AccountKeeper,
- app.BankKeeper,
- app.StakingKeeper,
- app.GetSubspace(slashingtypes.ModuleName),
- ),
- distr.NewAppModule(
- appCodec,
- app.DistrKeeper,
- app.AccountKeeper,
- app.BankKeeper,
- app.StakingKeeper,
- app.GetSubspace(distrtypes.ModuleName),
- ),
- staking.NewAppModule(
- appCodec,
- app.StakingKeeper,
- app.AccountKeeper,
- app.BankKeeper,
- app.GetSubspace(stakingtypes.ModuleName),
- ),
- upgrade.NewAppModule(app.UpgradeKeeper),
- evidence.NewAppModule(app.EvidenceKeeper),
- consensus.NewAppModule(appCodec, app.ConsensusParamsKeeper),
- ibc.NewAppModule(app.IBCKeeper),
- params.NewAppModule(app.ParamsKeeper),
- transferModule,
- icaModule,
- pocketModule,
- serviceModule,
- sessionModule,
- applicationModule,
- supplierModule,
- gatewayModule,
- tokenomicsModule,
- // this line is used by starport scaffolding # stargate/app/appModule
-
- crisis.NewAppModule(
- app.CrisisKeeper,
- skipGenesisInvariants,
- app.GetSubspace(crisistypes.ModuleName),
- ), // always be last to make sure that it checks for all invariants and not only part of them
- )
+ // Example:
+ //
+ // app.App = appBuilder.Build(...)
+ // nonceMempool := mempool.NewSenderNonceMempool()
+ // abciPropHandler := NewDefaultProposalHandler(nonceMempool, app.App.BaseApp)
+ //
+ // app.App.BaseApp.SetMempool(nonceMempool)
+ // app.App.BaseApp.SetPrepareProposal(abciPropHandler.PrepareProposalHandler())
+ // app.App.BaseApp.SetProcessProposal(abciPropHandler.ProcessProposalHandler())
+ //
+ // Alternatively, you can construct BaseApp options, append those to
+ // baseAppOptions and pass them to the appBuilder.
+ //
+ // Example:
+ //
+ // prepareOpt = func(app *baseapp.BaseApp) {
+ // abciPropHandler := baseapp.NewDefaultProposalHandler(nonceMempool, app)
+ // app.SetPrepareProposal(abciPropHandler.PrepareProposalHandler())
+ // }
+ // baseAppOptions = append(baseAppOptions, prepareOpt)
+ //
+ // create and set vote extension handler
+ // voteExtOp := func(bApp *baseapp.BaseApp) {
+ // voteExtHandler := NewVoteExtensionHandler()
+ // voteExtHandler.SetHandlers(bApp)
+ // }
- // During begin block slashing happens after distr.BeginBlocker so that
- // there is nothing left over in the validator fee pool, so as to keep the
- // CanWithdrawInvariant invariant.
- // NOTE: staking module is required if HistoricalEntries param > 0
- app.mm.SetOrderBeginBlockers(
- // upgrades should be run first
- upgradetypes.ModuleName,
- capabilitytypes.ModuleName,
- minttypes.ModuleName,
- distrtypes.ModuleName,
- slashingtypes.ModuleName,
- evidencetypes.ModuleName,
- stakingtypes.ModuleName,
- authtypes.ModuleName,
- banktypes.ModuleName,
- govtypes.ModuleName,
- crisistypes.ModuleName,
- ibctransfertypes.ModuleName,
- ibcexported.ModuleName,
- icatypes.ModuleName,
- genutiltypes.ModuleName,
- authz.ModuleName,
- feegrant.ModuleName,
- group.ModuleName,
- paramstypes.ModuleName,
- vestingtypes.ModuleName,
- consensusparamtypes.ModuleName,
- pocketmoduletypes.ModuleName,
- servicemoduletypes.ModuleName,
- sessionmoduletypes.ModuleName,
- applicationmoduletypes.ModuleName,
- suppliermoduletypes.ModuleName,
- gatewaymoduletypes.ModuleName,
- tokenomicsmoduletypes.ModuleName,
- // this line is used by starport scaffolding # stargate/app/beginBlockers
- )
+ app.App = appBuilder.Build(db, traceStore, baseAppOptions...)
- app.mm.SetOrderEndBlockers(
- crisistypes.ModuleName,
- govtypes.ModuleName,
- stakingtypes.ModuleName,
- ibctransfertypes.ModuleName,
- ibcexported.ModuleName,
- icatypes.ModuleName,
- capabilitytypes.ModuleName,
- authtypes.ModuleName,
- banktypes.ModuleName,
- distrtypes.ModuleName,
- slashingtypes.ModuleName,
- minttypes.ModuleName,
- genutiltypes.ModuleName,
- evidencetypes.ModuleName,
- authz.ModuleName,
- feegrant.ModuleName,
- group.ModuleName,
- paramstypes.ModuleName,
- upgradetypes.ModuleName,
- vestingtypes.ModuleName,
- consensusparamtypes.ModuleName,
- pocketmoduletypes.ModuleName,
- servicemoduletypes.ModuleName,
- sessionmoduletypes.ModuleName,
- applicationmoduletypes.ModuleName,
- suppliermoduletypes.ModuleName,
- gatewaymoduletypes.ModuleName,
- tokenomicsmoduletypes.ModuleName,
- // this line is used by starport scaffolding # stargate/app/endBlockers
- )
+ // Register legacy modules
+ app.registerIBCModules()
- // NOTE: The genutils module must occur after staking so that pools are
- // properly initialized with tokens from genesis accounts.
- // NOTE: Capability module must occur first so that it can initialize any capabilities
- // so that other modules that want to create or claim capabilities afterwards in InitChain
- // can do so safely.
- genesisModuleOrder := []string{
- capabilitytypes.ModuleName,
- authtypes.ModuleName,
- banktypes.ModuleName,
- distrtypes.ModuleName,
- stakingtypes.ModuleName,
- slashingtypes.ModuleName,
- govtypes.ModuleName,
- minttypes.ModuleName,
- crisistypes.ModuleName,
- genutiltypes.ModuleName,
- ibctransfertypes.ModuleName,
- ibcexported.ModuleName,
- icatypes.ModuleName,
- evidencetypes.ModuleName,
- authz.ModuleName,
- feegrant.ModuleName,
- group.ModuleName,
- paramstypes.ModuleName,
- upgradetypes.ModuleName,
- vestingtypes.ModuleName,
- consensusparamtypes.ModuleName,
- pocketmoduletypes.ModuleName,
- servicemoduletypes.ModuleName,
- sessionmoduletypes.ModuleName,
- applicationmoduletypes.ModuleName,
- suppliermoduletypes.ModuleName,
- gatewaymoduletypes.ModuleName,
- tokenomicsmoduletypes.ModuleName,
- // this line is used by starport scaffolding # stargate/app/initGenesis
+ // register streaming services
+ if err := app.RegisterStreamingServices(appOpts, app.kvStoreKeys()); err != nil {
+ return nil, err
}
- app.mm.SetOrderInitGenesis(genesisModuleOrder...)
- app.mm.SetOrderExportGenesis(genesisModuleOrder...)
- // Uncomment if you want to set a custom migration order here.
- // app.mm.SetOrderMigrations(custom order)
+ /**** Module Options ****/
- app.mm.RegisterInvariants(app.CrisisKeeper)
- app.configurator = module.NewConfigurator(app.appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter())
- app.mm.RegisterServices(app.configurator)
+ app.ModuleManager.RegisterInvariants(app.CrisisKeeper)
- autocliv1.RegisterQueryServer(app.GRPCQueryRouter(), runtimeservices.NewAutoCLIQueryService(app.mm.Modules))
- reflectionSvc, err := runtimeservices.NewReflectionService()
- if err != nil {
- panic(err)
- }
- reflectionv1.RegisterReflectionServiceServer(app.GRPCQueryRouter(), reflectionSvc)
+ // add test gRPC service for testing gRPC queries in isolation
+ testdata_pulsar.RegisterQueryServer(app.GRPCQueryRouter(), testdata_pulsar.QueryImpl{})
// create the simulation manager and define the order of the modules for deterministic simulations
+ //
+ // NOTE: this is not required apps that don't use the simulator for fuzz testing
+ // transactions
overrideModules := map[string]module.AppModuleSimulation{
- authtypes.ModuleName: auth.NewAppModule(
- app.appCodec,
- app.AccountKeeper,
- authsims.RandomGenesisAccounts,
- app.GetSubspace(authtypes.ModuleName),
- ),
- }
- app.sm = module.NewSimulationManagerFromAppModules(app.mm.Modules, overrideModules)
- app.sm.RegisterStoreDecoders()
-
- // initialize stores
- app.MountKVStores(keys)
- app.MountTransientStores(tkeys)
- app.MountMemoryStores(memKeys)
-
- // initialize BaseApp
- anteHandler, err := ante.NewAnteHandler(
- ante.HandlerOptions{
- AccountKeeper: app.AccountKeeper,
- BankKeeper: app.BankKeeper,
- SignModeHandler: encodingConfig.TxConfig.SignModeHandler(),
- FeegrantKeeper: app.FeeGrantKeeper,
- SigGasConsumer: ante.DefaultSigVerificationGasConsumer,
- },
- )
- if err != nil {
- panic(fmt.Errorf("failed to create AnteHandler: %w", err))
+ authtypes.ModuleName: auth.NewAppModule(app.appCodec, app.AccountKeeper, authsims.RandomGenesisAccounts, app.GetSubspace(authtypes.ModuleName)),
}
+ app.sm = module.NewSimulationManagerFromAppModules(app.ModuleManager.Modules, overrideModules)
- app.SetAnteHandler(anteHandler)
- app.SetInitChainer(app.InitChainer)
- app.SetBeginBlocker(app.BeginBlocker)
- app.SetEndBlocker(app.EndBlocker)
-
- if loadLatest {
- if err := app.LoadLatestVersion(); err != nil {
- tmos.Exit(err.Error())
- }
- }
-
- app.ScopedIBCKeeper = scopedIBCKeeper
- app.ScopedTransferKeeper = scopedTransferKeeper
- // this line is used by starport scaffolding # stargate/app/beforeInitReturn
-
- return app
-}
-
-// Name returns the name of the App
-func (app *App) Name() string { return app.BaseApp.Name() }
-
-// BeginBlocker application updates every begin block
-func (app *App) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock {
- return app.mm.BeginBlock(ctx, req)
-}
-
-// EndBlocker application updates every end block
-func (app *App) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock {
- return app.mm.EndBlock(ctx, req)
-}
-
-// InitChainer application update at chain initialization
-func (app *App) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain {
- var genesisState GenesisState
- if err := json.Unmarshal(req.AppStateBytes, &genesisState); err != nil {
- panic(err)
- }
- app.UpgradeKeeper.SetModuleVersionMap(ctx, app.mm.GetVersionMap())
- return app.mm.InitGenesis(ctx, app.appCodec, genesisState)
-}
-
-// Configurator get app configurator
-func (app *App) Configurator() module.Configurator {
- return app.configurator
-}
+ app.sm.RegisterStoreDecoders()
-// LoadHeight loads a particular height
-func (app *App) LoadHeight(height int64) error {
- return app.LoadVersion(height)
-}
+ // A custom InitChainer can be set if extra pre-init-genesis logic is required.
+ // By default, when using app wiring enabled module, this is not required.
+ // For instance, the upgrade module will set automatically the module version map in its init genesis thanks to app wiring.
+ // However, when registering a module manually (i.e. that does not support app wiring), the module version map
+ // must be set manually as follow. The upgrade module will de-duplicate the module version map.
+ //
+ // app.SetInitChainer(func(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) {
+ // app.UpgradeKeeper.SetModuleVersionMap(ctx, app.ModuleManager.GetVersionMap())
+ // return app.App.InitChainer(ctx, req)
+ // })
-// ModuleAccountAddrs returns all the app's module account addresses.
-func (app *App) ModuleAccountAddrs() map[string]bool {
- modAccAddrs := make(map[string]bool)
- for acc := range maccPerms {
- modAccAddrs[authtypes.NewModuleAddress(acc).String()] = true
+ if err := app.Load(loadLatest); err != nil {
+ return nil, err
}
- return modAccAddrs
+ return app, nil
}
-// BlockedModuleAccountAddrs returns all the app's blocked module account
-// addresses.
-func (app *App) BlockedModuleAccountAddrs() map[string]bool {
- modAccAddrs := app.ModuleAccountAddrs()
- delete(modAccAddrs, authtypes.NewModuleAddress(govtypes.ModuleName).String())
-
- return modAccAddrs
-}
-
-// LegacyAmino returns SimApp's amino codec.
+// LegacyAmino returns App's amino codec.
//
// NOTE: This is solely to be used for testing purposes as it may be desirable
// for modules to register their own custom testing types.
func (app *App) LegacyAmino() *codec.LegacyAmino {
- return app.cdc
+ return app.legacyAmino
}
-// AppCodec returns an app codec.
+// AppCodec returns App's app codec.
//
// NOTE: This is solely to be used for testing purposes as it may be desirable
// for modules to register their own custom testing types.
@@ -1017,121 +357,93 @@ func (app *App) AppCodec() codec.Codec {
return app.appCodec
}
-// InterfaceRegistry returns an InterfaceRegistry
-func (app *App) InterfaceRegistry() types.InterfaceRegistry {
- return app.interfaceRegistry
-}
-
-// TxConfig returns SimApp's TxConfig
-func (app *App) TxConfig() client.TxConfig {
- return app.txConfig
-}
-
// GetKey returns the KVStoreKey for the provided store key.
-//
-// NOTE: This is solely to be used for testing purposes.
func (app *App) GetKey(storeKey string) *storetypes.KVStoreKey {
- return app.keys[storeKey]
+ kvStoreKey, ok := app.UnsafeFindStoreKey(storeKey).(*storetypes.KVStoreKey)
+ if !ok {
+ return nil
+ }
+ return kvStoreKey
}
-// GetTKey returns the TransientStoreKey for the provided store key.
-//
-// NOTE: This is solely to be used for testing purposes.
-func (app *App) GetTKey(storeKey string) *storetypes.TransientStoreKey {
- return app.tkeys[storeKey]
+// GetMemKey returns the MemoryStoreKey for the provided store key.
+func (app *App) GetMemKey(storeKey string) *storetypes.MemoryStoreKey {
+ key, ok := app.UnsafeFindStoreKey(storeKey).(*storetypes.MemoryStoreKey)
+ if !ok {
+ return nil
+ }
+
+ return key
}
-// GetMemKey returns the MemStoreKey for the provided mem key.
-//
-// NOTE: This is solely used for testing purposes.
-func (app *App) GetMemKey(storeKey string) *storetypes.MemoryStoreKey {
- return app.memKeys[storeKey]
+// kvStoreKeys returns all the kv store keys registered inside App.
+func (app *App) kvStoreKeys() map[string]*storetypes.KVStoreKey {
+ keys := make(map[string]*storetypes.KVStoreKey)
+ for _, k := range app.GetStoreKeys() {
+ if kv, ok := k.(*storetypes.KVStoreKey); ok {
+ keys[kv.Name()] = kv
+ }
+ }
+
+ return keys
}
// GetSubspace returns a param subspace for a given module name.
-//
-// NOTE: This is solely to be used for testing purposes.
func (app *App) GetSubspace(moduleName string) paramstypes.Subspace {
subspace, _ := app.ParamsKeeper.GetSubspace(moduleName)
return subspace
}
+// SimulationManager implements the SimulationApp interface.
+func (app *App) SimulationManager() *module.SimulationManager {
+ return app.sm
+}
+
// RegisterAPIRoutes registers all application module routes with the provided
// API server.
func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) {
- clientCtx := apiSvr.ClientCtx
- // Register new tx routes from grpc-gateway.
- authtx.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
- // Register new tendermint queries routes from grpc-gateway.
- tmservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
- // Register node gRPC service for grpc-gateway.
- nodeservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
-
- // Register grpc-gateway routes for all modules.
- ModuleBasics.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
+ app.App.RegisterAPIRoutes(apiSvr, apiConfig)
+ // register swagger API in app.go so that other applications can override easily
+ if err := server.RegisterSwaggerAPI(apiSvr.ClientCtx, apiSvr.Router, apiConfig.Swagger); err != nil {
+ panic(err)
+ }
// register app's OpenAPI routes.
docs.RegisterOpenAPIService(Name, apiSvr.Router)
}
-// RegisterTxService implements the Application.RegisterTxService method.
-func (app *App) RegisterTxService(clientCtx client.Context) {
- authtx.RegisterTxService(app.BaseApp.GRPCQueryRouter(), clientCtx, app.BaseApp.Simulate, app.interfaceRegistry)
+// GetIBCKeeper returns the IBC keeper.
+func (app *App) GetIBCKeeper() *ibckeeper.Keeper {
+ return app.IBCKeeper
}
-// RegisterTendermintService implements the Application.RegisterTendermintService method.
-func (app *App) RegisterTendermintService(clientCtx client.Context) {
- tmservice.RegisterTendermintService(
- clientCtx,
- app.BaseApp.GRPCQueryRouter(),
- app.interfaceRegistry,
- app.Query,
- )
+// GetCapabilityScopedKeeper returns the capability scoped keeper.
+func (app *App) GetCapabilityScopedKeeper(moduleName string) capabilitykeeper.ScopedKeeper {
+ return app.CapabilityKeeper.ScopeToModule(moduleName)
}
-// RegisterNodeService implements the Application.RegisterNodeService method.
-func (app *App) RegisterNodeService(clientCtx client.Context) {
- nodeservice.RegisterNodeService(clientCtx, app.GRPCQueryRouter())
-}
-
-// initParamsKeeper init params keeper and its subspaces
-func initParamsKeeper(
- appCodec codec.BinaryCodec,
- legacyAmino *codec.LegacyAmino,
- key, tkey storetypes.StoreKey,
-) paramskeeper.Keeper {
- paramsKeeper := paramskeeper.NewKeeper(appCodec, legacyAmino, key, tkey)
-
- paramsKeeper.Subspace(authtypes.ModuleName)
- paramsKeeper.Subspace(banktypes.ModuleName)
- paramsKeeper.Subspace(stakingtypes.ModuleName)
- paramsKeeper.Subspace(minttypes.ModuleName)
- paramsKeeper.Subspace(distrtypes.ModuleName)
- paramsKeeper.Subspace(slashingtypes.ModuleName)
- paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govv1.ParamKeyTable()) //nolint:staticcheck
- paramsKeeper.Subspace(crisistypes.ModuleName)
- paramsKeeper.Subspace(ibctransfertypes.ModuleName)
- paramsKeeper.Subspace(ibcexported.ModuleName)
- paramsKeeper.Subspace(icacontrollertypes.SubModuleName)
- paramsKeeper.Subspace(icahosttypes.SubModuleName)
- paramsKeeper.Subspace(pocketmoduletypes.ModuleName)
- paramsKeeper.Subspace(servicemoduletypes.ModuleName)
- paramsKeeper.Subspace(sessionmoduletypes.ModuleName)
- paramsKeeper.Subspace(applicationmoduletypes.ModuleName)
- paramsKeeper.Subspace(suppliermoduletypes.ModuleName)
- paramsKeeper.Subspace(gatewaymoduletypes.ModuleName)
- paramsKeeper.Subspace(tokenomicsmoduletypes.ModuleName)
- // this line is used by starport scaffolding # stargate/app/paramSubspace
-
- return paramsKeeper
-}
-
-// SimulationManager returns the app SimulationManager
-func (app *App) SimulationManager() *module.SimulationManager {
- return app.sm
+// GetMaccPerms returns a copy of the module account permissions
+//
+// NOTE: This is solely to be used for testing purposes.
+func GetMaccPerms() map[string][]string {
+ dup := make(map[string][]string)
+ for _, perms := range moduleAccPerms {
+ dup[perms.Account] = perms.Permissions
+ }
+ return dup
}
-// ModuleManager returns the app ModuleManager
-func (app *App) ModuleManager() *module.Manager {
- return app.mm
+// BlockedAddresses returns all the app's blocked account addresses.
+func BlockedAddresses() map[string]bool {
+ result := make(map[string]bool)
+ if len(blockAccAddrs) > 0 {
+ for _, addr := range blockAccAddrs {
+ result[addr] = true
+ }
+ } else {
+ for addr := range GetMaccPerms() {
+ result[addr] = true
+ }
+ }
+ return result
}
diff --git a/app/app_config.go b/app/app_config.go
new file mode 100644
index 000000000..a82c7fef8
--- /dev/null
+++ b/app/app_config.go
@@ -0,0 +1,315 @@
+package app
+
+import (
+ "time"
+
+ runtimev1alpha1 "cosmossdk.io/api/cosmos/app/runtime/v1alpha1"
+ appv1alpha1 "cosmossdk.io/api/cosmos/app/v1alpha1"
+ authmodulev1 "cosmossdk.io/api/cosmos/auth/module/v1"
+ authzmodulev1 "cosmossdk.io/api/cosmos/authz/module/v1"
+ bankmodulev1 "cosmossdk.io/api/cosmos/bank/module/v1"
+ circuitmodulev1 "cosmossdk.io/api/cosmos/circuit/module/v1"
+ consensusmodulev1 "cosmossdk.io/api/cosmos/consensus/module/v1"
+ crisismodulev1 "cosmossdk.io/api/cosmos/crisis/module/v1"
+ distrmodulev1 "cosmossdk.io/api/cosmos/distribution/module/v1"
+ evidencemodulev1 "cosmossdk.io/api/cosmos/evidence/module/v1"
+ feegrantmodulev1 "cosmossdk.io/api/cosmos/feegrant/module/v1"
+ genutilmodulev1 "cosmossdk.io/api/cosmos/genutil/module/v1"
+ govmodulev1 "cosmossdk.io/api/cosmos/gov/module/v1"
+ groupmodulev1 "cosmossdk.io/api/cosmos/group/module/v1"
+ mintmodulev1 "cosmossdk.io/api/cosmos/mint/module/v1"
+ paramsmodulev1 "cosmossdk.io/api/cosmos/params/module/v1"
+ slashingmodulev1 "cosmossdk.io/api/cosmos/slashing/module/v1"
+ stakingmodulev1 "cosmossdk.io/api/cosmos/staking/module/v1"
+ txconfigv1 "cosmossdk.io/api/cosmos/tx/config/v1"
+ upgrademodulev1 "cosmossdk.io/api/cosmos/upgrade/module/v1"
+ vestingmodulev1 "cosmossdk.io/api/cosmos/vesting/module/v1"
+ "cosmossdk.io/core/appconfig"
+ _ "cosmossdk.io/x/circuit" // import for side-effects
+ circuittypes "cosmossdk.io/x/circuit/types"
+ _ "cosmossdk.io/x/evidence" // import for side-effects
+ evidencetypes "cosmossdk.io/x/evidence/types"
+ "cosmossdk.io/x/feegrant"
+ _ "cosmossdk.io/x/feegrant/module" // import for side-effects
+ _ "cosmossdk.io/x/upgrade" // import for side-effects
+ upgradetypes "cosmossdk.io/x/upgrade/types"
+ "github.com/cosmos/cosmos-sdk/runtime"
+ _ "github.com/cosmos/cosmos-sdk/x/auth/tx/config" // import for side-effects
+ authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
+ _ "github.com/cosmos/cosmos-sdk/x/auth/vesting" // import for side-effects
+ vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
+ "github.com/cosmos/cosmos-sdk/x/authz"
+ _ "github.com/cosmos/cosmos-sdk/x/authz/module" // import for side-effects
+ _ "github.com/cosmos/cosmos-sdk/x/bank" // import for side-effects
+ banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
+ _ "github.com/cosmos/cosmos-sdk/x/consensus" // import for side-effects
+ consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types"
+ consensustypes "github.com/cosmos/cosmos-sdk/x/consensus/types"
+ _ "github.com/cosmos/cosmos-sdk/x/crisis" // import for side-effects
+ crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
+ _ "github.com/cosmos/cosmos-sdk/x/distribution" // import for side-effects
+ distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
+ genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
+ govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
+ "github.com/cosmos/cosmos-sdk/x/group"
+ _ "github.com/cosmos/cosmos-sdk/x/group/module" // import for side-effects
+ _ "github.com/cosmos/cosmos-sdk/x/mint" // import for side-effects
+ minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
+ _ "github.com/cosmos/cosmos-sdk/x/params" // import for side-effects
+ paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
+ _ "github.com/cosmos/cosmos-sdk/x/slashing" // import for side-effects
+ slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
+ _ "github.com/cosmos/cosmos-sdk/x/staking" // import for side-effects
+ stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
+ _ "github.com/cosmos/ibc-go/modules/capability" // import for side-effects
+ capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types"
+ _ "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts" // import for side-effects
+ icatypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/types"
+ _ "github.com/cosmos/ibc-go/v8/modules/apps/29-fee" // import for side-effects
+ ibcfeetypes "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/types"
+ ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types"
+ ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported"
+ servicemodulev1 "github.com/pokt-network/poktroll/api/poktroll/service/module"
+ _ "github.com/pokt-network/poktroll/x/service/module" // import for side-effects
+ servicemoduletypes "github.com/pokt-network/poktroll/x/service/types"
+ "google.golang.org/protobuf/types/known/durationpb"
+ // this line is used by starport scaffolding # stargate/app/moduleImport
+)
+
+var (
+ // NOTE: The genutils module must occur after staking so that pools are
+ // properly initialized with tokens from genesis accounts.
+ // NOTE: The genutils module must also occur after auth so that it can access the params from auth.
+ // NOTE: Capability module must occur first so that it can initialize any capabilities
+ // so that other modules that want to create or claim capabilities afterwards in InitChain
+ // can do so safely.
+ genesisModuleOrder = []string{
+ // cosmos-sdk/ibc modules
+ capabilitytypes.ModuleName,
+ authtypes.ModuleName,
+ banktypes.ModuleName,
+ distrtypes.ModuleName,
+ stakingtypes.ModuleName,
+ slashingtypes.ModuleName,
+ govtypes.ModuleName,
+ minttypes.ModuleName,
+ crisistypes.ModuleName,
+ ibcexported.ModuleName,
+ genutiltypes.ModuleName,
+ evidencetypes.ModuleName,
+ authz.ModuleName,
+ ibctransfertypes.ModuleName,
+ icatypes.ModuleName,
+ ibcfeetypes.ModuleName,
+ feegrant.ModuleName,
+ paramstypes.ModuleName,
+ upgradetypes.ModuleName,
+ vestingtypes.ModuleName,
+ circuittypes.ModuleName,
+ group.ModuleName,
+ consensusparamtypes.ModuleName,
+ circuittypes.ModuleName,
+ // chain modules
+ servicemoduletypes.ModuleName,
+ // this line is used by starport scaffolding # stargate/app/initGenesis
+ }
+
+ // During begin block slashing happens after distr.BeginBlocker so that
+ // there is nothing left over in the validator fee pool, so as to keep the
+ // CanWithdrawInvariant invariant.
+ // NOTE: staking module is required if HistoricalEntries param > 0
+ // NOTE: capability module's beginblocker must come before any modules using capabilities (e.g. IBC)
+ beginBlockers = []string{
+ // cosmos sdk modules
+ minttypes.ModuleName,
+ distrtypes.ModuleName,
+ slashingtypes.ModuleName,
+ evidencetypes.ModuleName,
+ stakingtypes.ModuleName,
+ authz.ModuleName,
+ genutiltypes.ModuleName,
+ // ibc modules
+ capabilitytypes.ModuleName,
+ ibcexported.ModuleName,
+ ibctransfertypes.ModuleName,
+ icatypes.ModuleName,
+ ibcfeetypes.ModuleName,
+ // chain modules
+ servicemoduletypes.ModuleName,
+ // this line is used by starport scaffolding # stargate/app/beginBlockers
+ }
+
+ endBlockers = []string{
+ // cosmos sdk modules
+ crisistypes.ModuleName,
+ govtypes.ModuleName,
+ stakingtypes.ModuleName,
+ feegrant.ModuleName,
+ group.ModuleName,
+ genutiltypes.ModuleName,
+ // ibc modules
+ ibcexported.ModuleName,
+ ibctransfertypes.ModuleName,
+ capabilitytypes.ModuleName,
+ icatypes.ModuleName,
+ ibcfeetypes.ModuleName,
+ // chain modules
+ servicemoduletypes.ModuleName,
+ // this line is used by starport scaffolding # stargate/app/endBlockers
+ }
+
+ preBlockers = []string{
+ upgradetypes.ModuleName,
+ // this line is used by starport scaffolding # stargate/app/preBlockers
+ }
+
+ // module account permissions
+ moduleAccPerms = []*authmodulev1.ModuleAccountPermission{
+ {Account: authtypes.FeeCollectorName},
+ {Account: distrtypes.ModuleName},
+ {Account: minttypes.ModuleName, Permissions: []string{authtypes.Minter}},
+ {Account: stakingtypes.BondedPoolName, Permissions: []string{authtypes.Burner, stakingtypes.ModuleName}},
+ {Account: stakingtypes.NotBondedPoolName, Permissions: []string{authtypes.Burner, stakingtypes.ModuleName}},
+ {Account: govtypes.ModuleName, Permissions: []string{authtypes.Burner}},
+ {Account: ibctransfertypes.ModuleName, Permissions: []string{authtypes.Minter, authtypes.Burner}},
+ {Account: ibcfeetypes.ModuleName},
+ {Account: icatypes.ModuleName},
+ {Account: servicemoduletypes.ModuleName, Permissions: []string{authtypes.Minter, authtypes.Burner, authtypes.Staking}},
+ // this line is used by starport scaffolding # stargate/app/maccPerms
+ }
+
+ // blocked account addresses
+ blockAccAddrs = []string{
+ authtypes.FeeCollectorName,
+ distrtypes.ModuleName,
+ minttypes.ModuleName,
+ stakingtypes.BondedPoolName,
+ stakingtypes.NotBondedPoolName,
+ // We allow the following module accounts to receive funds:
+ // govtypes.ModuleName
+ }
+
+ // appConfig application configuration (used by depinject)
+ appConfig = appconfig.Compose(&appv1alpha1.Config{
+ Modules: []*appv1alpha1.ModuleConfig{
+ {
+ Name: runtime.ModuleName,
+ Config: appconfig.WrapAny(&runtimev1alpha1.Module{
+ AppName: Name,
+ PreBlockers: preBlockers,
+ BeginBlockers: beginBlockers,
+ EndBlockers: endBlockers,
+ InitGenesis: genesisModuleOrder,
+ OverrideStoreKeys: []*runtimev1alpha1.StoreKeyConfig{
+ {
+ ModuleName: authtypes.ModuleName,
+ KvStoreKey: "acc",
+ },
+ },
+ // When ExportGenesis is not specified, the export genesis module order
+ // is equal to the init genesis order
+ // ExportGenesis: genesisModuleOrder,
+ // Uncomment if you want to set a custom migration order here.
+ // OrderMigrations: nil,
+ }),
+ },
+ {
+ Name: authtypes.ModuleName,
+ Config: appconfig.WrapAny(&authmodulev1.Module{
+ Bech32Prefix: AccountAddressPrefix,
+ ModuleAccountPermissions: moduleAccPerms,
+ // By default modules authority is the governance module. This is configurable with the following:
+ // Authority: "group", // A custom module authority can be set using a module name
+ // Authority: "cosmos1cwwv22j5ca08ggdv9c2uky355k908694z577tv", // or a specific address
+ }),
+ },
+ {
+ Name: vestingtypes.ModuleName,
+ Config: appconfig.WrapAny(&vestingmodulev1.Module{}),
+ },
+ {
+ Name: banktypes.ModuleName,
+ Config: appconfig.WrapAny(&bankmodulev1.Module{
+ BlockedModuleAccountsOverride: blockAccAddrs,
+ }),
+ },
+ {
+ Name: stakingtypes.ModuleName,
+ Config: appconfig.WrapAny(&stakingmodulev1.Module{
+ // NOTE: specifying a prefix is only necessary when using bech32 addresses
+ // If not specfied, the auth Bech32Prefix appended with "valoper" and "valcons" is used by default
+ Bech32PrefixValidator: AccountAddressPrefix + "valoper",
+ Bech32PrefixConsensus: AccountAddressPrefix + "valcons",
+ }),
+ },
+ {
+ Name: slashingtypes.ModuleName,
+ Config: appconfig.WrapAny(&slashingmodulev1.Module{}),
+ },
+ {
+ Name: paramstypes.ModuleName,
+ Config: appconfig.WrapAny(¶msmodulev1.Module{}),
+ },
+ {
+ Name: "tx",
+ Config: appconfig.WrapAny(&txconfigv1.Config{}),
+ },
+ {
+ Name: genutiltypes.ModuleName,
+ Config: appconfig.WrapAny(&genutilmodulev1.Module{}),
+ },
+ {
+ Name: authz.ModuleName,
+ Config: appconfig.WrapAny(&authzmodulev1.Module{}),
+ },
+ {
+ Name: upgradetypes.ModuleName,
+ Config: appconfig.WrapAny(&upgrademodulev1.Module{}),
+ },
+ {
+ Name: distrtypes.ModuleName,
+ Config: appconfig.WrapAny(&distrmodulev1.Module{}),
+ },
+ {
+ Name: evidencetypes.ModuleName,
+ Config: appconfig.WrapAny(&evidencemodulev1.Module{}),
+ },
+ {
+ Name: minttypes.ModuleName,
+ Config: appconfig.WrapAny(&mintmodulev1.Module{}),
+ },
+ {
+ Name: group.ModuleName,
+ Config: appconfig.WrapAny(&groupmodulev1.Module{
+ MaxExecutionPeriod: durationpb.New(time.Second * 1209600),
+ MaxMetadataLen: 255,
+ }),
+ },
+ {
+ Name: feegrant.ModuleName,
+ Config: appconfig.WrapAny(&feegrantmodulev1.Module{}),
+ },
+ {
+ Name: govtypes.ModuleName,
+ Config: appconfig.WrapAny(&govmodulev1.Module{}),
+ },
+ {
+ Name: crisistypes.ModuleName,
+ Config: appconfig.WrapAny(&crisismodulev1.Module{}),
+ },
+ {
+ Name: consensustypes.ModuleName,
+ Config: appconfig.WrapAny(&consensusmodulev1.Module{}),
+ },
+ {
+ Name: circuittypes.ModuleName,
+ Config: appconfig.WrapAny(&circuitmodulev1.Module{}),
+ },
+ {
+ Name: servicemoduletypes.ModuleName,
+ Config: appconfig.WrapAny(&servicemodulev1.Module{}),
+ },
+ // this line is used by starport scaffolding # stargate/app/moduleConfig
+ },
+ })
+)
diff --git a/app/encoding.go b/app/encoding.go
deleted file mode 100644
index 3e32bee43..000000000
--- a/app/encoding.go
+++ /dev/null
@@ -1,35 +0,0 @@
-package app
-
-import (
- "github.com/cosmos/cosmos-sdk/codec"
- "github.com/cosmos/cosmos-sdk/codec/types"
- "github.com/cosmos/cosmos-sdk/std"
- "github.com/cosmos/cosmos-sdk/x/auth/tx"
-
- "github.com/pokt-network/poktroll/app/params"
-)
-
-// makeEncodingConfig creates an EncodingConfig for an amino based test configuration.
-func makeEncodingConfig() params.EncodingConfig {
- amino := codec.NewLegacyAmino()
- interfaceRegistry := types.NewInterfaceRegistry()
- marshaler := codec.NewProtoCodec(interfaceRegistry)
- txCfg := tx.NewTxConfig(marshaler, tx.DefaultSignModes)
-
- return params.EncodingConfig{
- InterfaceRegistry: interfaceRegistry,
- Marshaler: marshaler,
- TxConfig: txCfg,
- Amino: amino,
- }
-}
-
-// MakeEncodingConfig creates an EncodingConfig for testing
-func MakeEncodingConfig() params.EncodingConfig {
- encodingConfig := makeEncodingConfig()
- std.RegisterLegacyAminoCodec(encodingConfig.Amino)
- std.RegisterInterfaces(encodingConfig.InterfaceRegistry)
- ModuleBasics.RegisterLegacyAminoCodec(encodingConfig.Amino)
- ModuleBasics.RegisterInterfaces(encodingConfig.InterfaceRegistry)
- return encodingConfig
-}
diff --git a/app/export.go b/app/export.go
index db240d2b6..21203b274 100644
--- a/app/export.go
+++ b/app/export.go
@@ -5,7 +5,8 @@ import (
"fmt"
"log"
- tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
+ storetypes "cosmossdk.io/store/types"
+ cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
sdk "github.com/cosmos/cosmos-sdk/types"
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
@@ -15,23 +16,23 @@ import (
// ExportAppStateAndValidators exports the state of the application for a genesis
// file.
-func (app *App) ExportAppStateAndValidators(
- forZeroHeight bool,
- jailAllowedAddrs []string,
- modulesToExport []string,
-) (servertypes.ExportedApp, error) {
+func (app *App) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error) {
// as if they could withdraw from the start of the next block
- ctx := app.NewContext(true, tmproto.Header{Height: app.LastBlockHeight()})
+ ctx := app.NewContextLegacy(true, cmtproto.Header{Height: app.LastBlockHeight()})
// We export at last height + 1, because that's the height at which
- // Tendermint will start InitChain.
+ // CometBFT will start InitChain.
height := app.LastBlockHeight() + 1
if forZeroHeight {
height = 0
app.prepForZeroHeightGenesis(ctx, jailAllowedAddrs)
}
- genState := app.mm.ExportGenesisForModules(ctx, app.appCodec, modulesToExport)
+ genState, err := app.ModuleManager.ExportGenesisForModules(ctx, app.appCodec, modulesToExport)
+ if err != nil {
+ return servertypes.ExportedApp{}, err
+ }
+
appState, err := json.MarshalIndent(genState, "", " ")
if err != nil {
return servertypes.ExportedApp{}, err
@@ -46,10 +47,10 @@ func (app *App) ExportAppStateAndValidators(
}, err
}
-// prepForZeroHeightGenesis prepares for a fresh genesis
-//
+// prepare for fresh start at zero height
// NOTE zero height genesis is a temporary feature which will be deprecated
-// in favour of export at a block height
+//
+// in favor of export at a block height
func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) {
applyAllowedAddrs := false
@@ -74,13 +75,24 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str
/* Handle fee distribution state. */
// withdraw all validator commission
- app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) {
- _, _ = app.DistrKeeper.WithdrawValidatorCommission(ctx, val.GetOperator())
+ err := app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) {
+ valBz, err := app.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator())
+ if err != nil {
+ panic(err)
+ }
+ _, _ = app.DistrKeeper.WithdrawValidatorCommission(ctx, valBz)
return false
})
+ if err != nil {
+ panic(err)
+ }
// withdraw all delegator rewards
- dels := app.StakingKeeper.GetAllDelegations(ctx)
+ dels, err := app.StakingKeeper.GetAllDelegations(ctx)
+ if err != nil {
+ panic(err)
+ }
+
for _, delegation := range dels {
valAddr, err := sdk.ValAddressFromBech32(delegation.ValidatorAddress)
if err != nil {
@@ -103,14 +115,26 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str
ctx = ctx.WithBlockHeight(0)
// reinitialize all validators
- app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) {
+ err = app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) {
+ valBz, err := app.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator())
+ if err != nil {
+ panic(err)
+ }
// donate any unwithdrawn outstanding reward fraction tokens to the community pool
- scraps := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, val.GetOperator())
- feePool := app.DistrKeeper.GetFeePool(ctx)
+ scraps, err := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valBz)
+ if err != nil {
+ panic(err)
+ }
+ feePool, err := app.DistrKeeper.FeePool.Get(ctx)
+ if err != nil {
+ panic(err)
+ }
feePool.CommunityPool = feePool.CommunityPool.Add(scraps...)
- app.DistrKeeper.SetFeePool(ctx, feePool)
+ if err := app.DistrKeeper.FeePool.Set(ctx, feePool); err != nil {
+ panic(err)
+ }
- if err := app.DistrKeeper.Hooks().AfterValidatorCreated(ctx, val.GetOperator()); err != nil {
+ if err := app.DistrKeeper.Hooks().AfterValidatorCreated(ctx, valBz); err != nil {
panic(err)
}
return false
@@ -145,7 +169,10 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str
for i := range red.Entries {
red.Entries[i].CreationHeight = 0
}
- app.StakingKeeper.SetRedelegation(ctx, red)
+ err = app.StakingKeeper.SetRedelegation(ctx, red)
+ if err != nil {
+ panic(err)
+ }
return false
})
@@ -154,20 +181,23 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str
for i := range ubd.Entries {
ubd.Entries[i].CreationHeight = 0
}
- app.StakingKeeper.SetUnbondingDelegation(ctx, ubd)
+ err = app.StakingKeeper.SetUnbondingDelegation(ctx, ubd)
+ if err != nil {
+ panic(err)
+ }
return false
})
// Iterate through validators by power descending, reset bond heights, and
// update bond intra-tx counters.
store := ctx.KVStore(app.GetKey(stakingtypes.StoreKey))
- iter := sdk.KVStoreReversePrefixIterator(store, stakingtypes.ValidatorsKey)
+ iter := storetypes.KVStoreReversePrefixIterator(store, stakingtypes.ValidatorsKey)
counter := int16(0)
for ; iter.Valid(); iter.Next() {
addr := sdk.ValAddress(stakingtypes.AddressFromValidatorsKey(iter.Key()))
- validator, found := app.StakingKeeper.GetValidator(ctx, addr)
- if !found {
+ validator, err := app.StakingKeeper.GetValidator(ctx, addr)
+ if err != nil {
panic("expected validator, not found")
}
@@ -185,7 +215,7 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str
return
}
- _, err := app.StakingKeeper.ApplyAndReturnValidatorSetUpdates(ctx)
+ _, err = app.StakingKeeper.ApplyAndReturnValidatorSetUpdates(ctx)
if err != nil {
log.Fatal(err)
}
diff --git a/app/genesis.go b/app/genesis.go
index 5bf0c1da8..e4e849fc2 100644
--- a/app/genesis.go
+++ b/app/genesis.go
@@ -2,11 +2,9 @@ package app
import (
"encoding/json"
-
- "github.com/cosmos/cosmos-sdk/codec"
)
-// The genesis state of the blockchain is represented here as a map of raw json
+// GenesisState of the blockchain is represented here as a map of raw json
// messages key'd by a identifier string.
// The identifier is used to determine which module genesis information belongs
// to so it may be appropriately routed during init chain.
@@ -14,8 +12,3 @@ import (
// the ModuleBasicManager which populates json from each BasicModule
// object provided to it during init.
type GenesisState map[string]json.RawMessage
-
-// NewDefaultGenesisState generates the default state for the application.
-func NewDefaultGenesisState(cdc codec.JSONCodec) GenesisState {
- return ModuleBasics.DefaultGenesis(cdc)
-}
diff --git a/app/genesis_account.go b/app/genesis_account.go
new file mode 100644
index 000000000..91ff4dfc4
--- /dev/null
+++ b/app/genesis_account.go
@@ -0,0 +1,47 @@
+package app
+
+import (
+ "errors"
+
+ sdk "github.com/cosmos/cosmos-sdk/types"
+ authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
+)
+
+var _ authtypes.GenesisAccount = (*GenesisAccount)(nil)
+
+// GenesisAccount defines a type that implements the GenesisAccount interface
+// to be used for simulation accounts in the genesis state.
+type GenesisAccount struct {
+ *authtypes.BaseAccount
+
+ // vesting account fields
+ OriginalVesting sdk.Coins `json:"original_vesting" yaml:"original_vesting"` // total vesting coins upon initialization
+ DelegatedFree sdk.Coins `json:"delegated_free" yaml:"delegated_free"` // delegated vested coins at time of delegation
+ DelegatedVesting sdk.Coins `json:"delegated_vesting" yaml:"delegated_vesting"` // delegated vesting coins at time of delegation
+ StartTime int64 `json:"start_time" yaml:"start_time"` // vesting start time (UNIX Epoch time)
+ EndTime int64 `json:"end_time" yaml:"end_time"` // vesting end time (UNIX Epoch time)
+
+ // module account fields
+ ModuleName string `json:"module_name" yaml:"module_name"` // name of the module account
+ ModulePermissions []string `json:"module_permissions" yaml:"module_permissions"` // permissions of module account
+}
+
+// Validate checks for errors on the vesting and module account parameters
+func (sga GenesisAccount) Validate() error {
+ if !sga.OriginalVesting.IsZero() {
+ if sga.StartTime >= sga.EndTime {
+ return errors.New("vesting start-time cannot be before end-time")
+ }
+ }
+
+ if sga.ModuleName != "" {
+ ma := authtypes.ModuleAccount{
+ BaseAccount: sga.BaseAccount, Name: sga.ModuleName, Permissions: sga.ModulePermissions,
+ }
+ if err := ma.Validate(); err != nil {
+ return err
+ }
+ }
+
+ return sga.BaseAccount.Validate()
+}
diff --git a/app/ibc.go b/app/ibc.go
new file mode 100644
index 000000000..2b0bd5691
--- /dev/null
+++ b/app/ibc.go
@@ -0,0 +1,205 @@
+package app
+
+import (
+ "cosmossdk.io/core/appmodule"
+ storetypes "cosmossdk.io/store/types"
+ cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
+ authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
+ govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
+ govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
+ paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
+ "github.com/cosmos/ibc-go/modules/capability"
+ capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper"
+ capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types"
+ icamodule "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts"
+ icacontroller "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller"
+ icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper"
+ icacontrollertypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/types"
+ icahost "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host"
+ icahostkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/keeper"
+ icahosttypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/types"
+ icatypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/types"
+ ibcfee "github.com/cosmos/ibc-go/v8/modules/apps/29-fee"
+ ibcfeekeeper "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/keeper"
+ ibcfeetypes "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/types"
+ ibctransfer "github.com/cosmos/ibc-go/v8/modules/apps/transfer"
+ ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper"
+ ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types"
+ ibc "github.com/cosmos/ibc-go/v8/modules/core"
+ ibcclienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types"
+ ibcconnectiontypes "github.com/cosmos/ibc-go/v8/modules/core/03-connection/types"
+ porttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types"
+ ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported"
+ ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"
+ solomachine "github.com/cosmos/ibc-go/v8/modules/light-clients/06-solomachine"
+ ibctm "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint"
+ // this line is used by starport scaffolding # ibc/app/import
+)
+
+// registerIBCModules register IBC keepers and non dependency inject modules.
+func (app *App) registerIBCModules() {
+ // set up non depinject support modules store keys
+ if err := app.RegisterStores(
+ storetypes.NewKVStoreKey(capabilitytypes.StoreKey),
+ storetypes.NewKVStoreKey(ibcexported.StoreKey),
+ storetypes.NewKVStoreKey(ibctransfertypes.StoreKey),
+ storetypes.NewKVStoreKey(ibcfeetypes.StoreKey),
+ storetypes.NewKVStoreKey(icahosttypes.StoreKey),
+ storetypes.NewKVStoreKey(icacontrollertypes.StoreKey),
+ storetypes.NewMemoryStoreKey(capabilitytypes.MemStoreKey),
+ storetypes.NewTransientStoreKey(paramstypes.TStoreKey),
+ ); err != nil {
+ panic(err)
+ }
+
+ // register the key tables for legacy param subspaces
+ keyTable := ibcclienttypes.ParamKeyTable()
+ keyTable.RegisterParamSet(&ibcconnectiontypes.Params{})
+ app.ParamsKeeper.Subspace(ibcexported.ModuleName).WithKeyTable(keyTable)
+ app.ParamsKeeper.Subspace(ibctransfertypes.ModuleName).WithKeyTable(ibctransfertypes.ParamKeyTable())
+ app.ParamsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable())
+ app.ParamsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable())
+
+ // add capability keeper and ScopeToModule for ibc module
+ app.CapabilityKeeper = capabilitykeeper.NewKeeper(
+ app.AppCodec(),
+ app.GetKey(capabilitytypes.StoreKey),
+ app.GetMemKey(capabilitytypes.MemStoreKey),
+ )
+
+ // add capability keeper and ScopeToModule for ibc module
+ scopedIBCKeeper := app.CapabilityKeeper.ScopeToModule(ibcexported.ModuleName)
+ scopedIBCTransferKeeper := app.CapabilityKeeper.ScopeToModule(ibctransfertypes.ModuleName)
+ scopedICAControllerKeeper := app.CapabilityKeeper.ScopeToModule(icacontrollertypes.SubModuleName)
+ scopedICAHostKeeper := app.CapabilityKeeper.ScopeToModule(icahosttypes.SubModuleName)
+
+ // Create IBC keeper
+ app.IBCKeeper = ibckeeper.NewKeeper(
+ app.appCodec,
+ app.GetKey(ibcexported.StoreKey),
+ app.GetSubspace(ibcexported.ModuleName),
+ app.StakingKeeper,
+ app.UpgradeKeeper,
+ scopedIBCKeeper,
+ authtypes.NewModuleAddress(govtypes.ModuleName).String(),
+ )
+
+ // Register the proposal types
+ // Deprecated: Avoid adding new handlers, instead use the new proposal flow
+ // by granting the governance module the right to execute the message.
+ // See: https://docs.cosmos.network/main/modules/gov#proposal-messages
+ govRouter := govv1beta1.NewRouter()
+ govRouter.AddRoute(govtypes.RouterKey, govv1beta1.ProposalHandler)
+
+ app.IBCFeeKeeper = ibcfeekeeper.NewKeeper(
+ app.appCodec, app.GetKey(ibcfeetypes.StoreKey),
+ app.IBCKeeper.ChannelKeeper, // may be replaced with IBC middleware
+ app.IBCKeeper.ChannelKeeper,
+ app.IBCKeeper.PortKeeper, app.AccountKeeper, app.BankKeeper,
+ )
+
+ // Create IBC transfer keeper
+ app.TransferKeeper = ibctransferkeeper.NewKeeper(
+ app.appCodec,
+ app.GetKey(ibctransfertypes.StoreKey),
+ app.GetSubspace(ibctransfertypes.ModuleName),
+ app.IBCFeeKeeper,
+ app.IBCKeeper.ChannelKeeper,
+ app.IBCKeeper.PortKeeper,
+ app.AccountKeeper,
+ app.BankKeeper,
+ scopedIBCTransferKeeper,
+ authtypes.NewModuleAddress(govtypes.ModuleName).String(),
+ )
+
+ // Create interchain account keepers
+ app.ICAHostKeeper = icahostkeeper.NewKeeper(
+ app.appCodec,
+ app.GetKey(icahosttypes.StoreKey),
+ app.GetSubspace(icahosttypes.SubModuleName),
+ app.IBCFeeKeeper, // use ics29 fee as ics4Wrapper in middleware stack
+ app.IBCKeeper.ChannelKeeper,
+ app.IBCKeeper.PortKeeper,
+ app.AccountKeeper,
+ scopedICAHostKeeper,
+ app.MsgServiceRouter(),
+ authtypes.NewModuleAddress(govtypes.ModuleName).String(),
+ )
+ app.ICAControllerKeeper = icacontrollerkeeper.NewKeeper(
+ app.appCodec,
+ app.GetKey(icacontrollertypes.StoreKey),
+ app.GetSubspace(icacontrollertypes.SubModuleName),
+ app.IBCFeeKeeper, // use ics29 fee as ics4Wrapper in middleware stack
+ app.IBCKeeper.ChannelKeeper,
+ app.IBCKeeper.PortKeeper,
+ scopedICAControllerKeeper,
+ app.MsgServiceRouter(),
+ authtypes.NewModuleAddress(govtypes.ModuleName).String(),
+ )
+ app.GovKeeper.SetLegacyRouter(govRouter)
+
+ // Create IBC modules with ibcfee middleware
+ transferIBCModule := ibcfee.NewIBCMiddleware(ibctransfer.NewIBCModule(app.TransferKeeper), app.IBCFeeKeeper)
+
+ // integration point for custom authentication modules
+ var noAuthzModule porttypes.IBCModule
+ icaControllerIBCModule := ibcfee.NewIBCMiddleware(
+ icacontroller.NewIBCMiddleware(noAuthzModule, app.ICAControllerKeeper),
+ app.IBCFeeKeeper,
+ )
+
+ icaHostIBCModule := ibcfee.NewIBCMiddleware(icahost.NewIBCModule(app.ICAHostKeeper), app.IBCFeeKeeper)
+
+ // Create static IBC router, add transfer route, then set and seal it
+ ibcRouter := porttypes.NewRouter().
+ AddRoute(ibctransfertypes.ModuleName, transferIBCModule).
+ AddRoute(icacontrollertypes.SubModuleName, icaControllerIBCModule).
+ AddRoute(icahosttypes.SubModuleName, icaHostIBCModule)
+
+ // this line is used by starport scaffolding # ibc/app/module
+
+ app.IBCKeeper.SetRouter(ibcRouter)
+
+ app.ScopedIBCKeeper = scopedIBCKeeper
+ app.ScopedIBCTransferKeeper = scopedIBCTransferKeeper
+ app.ScopedICAHostKeeper = scopedICAHostKeeper
+ app.ScopedICAControllerKeeper = scopedICAControllerKeeper
+
+ // register IBC modules
+ if err := app.RegisterModules(
+ ibc.NewAppModule(app.IBCKeeper),
+ ibctransfer.NewAppModule(app.TransferKeeper),
+ ibcfee.NewAppModule(app.IBCFeeKeeper),
+ icamodule.NewAppModule(&app.ICAControllerKeeper, &app.ICAHostKeeper),
+ capability.NewAppModule(app.appCodec, *app.CapabilityKeeper, false),
+ ibctm.AppModule{},
+ solomachine.AppModule{},
+ ); err != nil {
+ panic(err)
+ }
+}
+
+// Since the IBC modules don't support dependency injection, we need to
+// manually register the modules on the client side.
+// This needs to be removed after IBC supports App Wiring.
+func RegisterIBC(registry cdctypes.InterfaceRegistry) map[string]appmodule.AppModule {
+ modules := map[string]appmodule.AppModule{
+ ibcexported.ModuleName: ibc.AppModule{},
+ ibctransfertypes.ModuleName: ibctransfer.AppModule{},
+ ibcfeetypes.ModuleName: ibcfee.AppModule{},
+ icatypes.ModuleName: icamodule.AppModule{},
+ capabilitytypes.ModuleName: capability.AppModule{},
+ ibctm.ModuleName: ibctm.AppModule{},
+ solomachine.ModuleName: solomachine.AppModule{},
+ }
+
+ for _, module := range modules {
+ if mod, ok := module.(interface {
+ RegisterInterfaces(registry cdctypes.InterfaceRegistry)
+ }); ok {
+ mod.RegisterInterfaces(registry)
+ }
+ }
+
+ return modules
+}
diff --git a/app/params/encoding.go b/app/params/encoding.go
deleted file mode 100644
index 3d634abf1..000000000
--- a/app/params/encoding.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package params
-
-import (
- "github.com/cosmos/cosmos-sdk/client"
- "github.com/cosmos/cosmos-sdk/codec"
- "github.com/cosmos/cosmos-sdk/codec/types"
-)
-
-// EncodingConfig specifies the concrete encoding types to use for a given app.
-// This is provided for compatibility between protobuf and amino implementations.
-type EncodingConfig struct {
- InterfaceRegistry types.InterfaceRegistry
- Marshaler codec.Codec
- TxConfig client.TxConfig
- Amino *codec.LegacyAmino
-}
diff --git a/app/sim_bench_test.go b/app/sim_bench_test.go
new file mode 100644
index 000000000..91d1eb1f4
--- /dev/null
+++ b/app/sim_bench_test.go
@@ -0,0 +1,150 @@
+package app_test
+
+import (
+ "fmt"
+ "os"
+ "testing"
+
+ cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
+ "github.com/cosmos/cosmos-sdk/client/flags"
+ "github.com/cosmos/cosmos-sdk/server"
+ simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
+ simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
+ "github.com/cosmos/cosmos-sdk/x/simulation"
+ simcli "github.com/cosmos/cosmos-sdk/x/simulation/client/cli"
+ "github.com/stretchr/testify/require"
+
+ "github.com/pokt-network/poktroll/app"
+)
+
+// Profile with:
+// `go test -benchmem -run=^$ -bench ^BenchmarkFullAppSimulation ./app -Commit=true -cpuprofile cpu.out`
+func BenchmarkFullAppSimulation(b *testing.B) {
+ b.ReportAllocs()
+
+ config := simcli.NewConfigFromFlags()
+ config.ChainID = SimAppChainID
+
+ db, dir, logger, skip, err := simtestutil.SetupSimulation(config, "goleveldb-app-sim", "Simulation", simcli.FlagVerboseValue, simcli.FlagEnabledValue)
+ if err != nil {
+ b.Fatalf("simulation setup failed: %s", err.Error())
+ }
+
+ if skip {
+ b.Skip("skipping benchmark application simulation")
+ }
+
+ defer func() {
+ require.NoError(b, db.Close())
+ require.NoError(b, os.RemoveAll(dir))
+ }()
+
+ appOptions := make(simtestutil.AppOptionsMap, 0)
+ appOptions[flags.FlagHome] = app.DefaultNodeHome
+ appOptions[server.FlagInvCheckPeriod] = simcli.FlagPeriodValue
+
+ bApp, err := app.New(logger, db, nil, true, appOptions, interBlockCacheOpt())
+ require.NoError(b, err)
+ require.Equal(b, app.Name, bApp.Name())
+
+ // run randomized simulation
+ _, simParams, simErr := simulation.SimulateFromSeed(
+ b,
+ os.Stdout,
+ bApp.BaseApp,
+ simtestutil.AppStateFn(bApp.AppCodec(), bApp.SimulationManager(), bApp.DefaultGenesis()),
+ simtypes.RandomAccounts, // Replace with own random account function if using keys other than secp256k1
+ simtestutil.SimulationOperations(bApp, bApp.AppCodec(), config),
+ app.BlockedAddresses(),
+ config,
+ bApp.AppCodec(),
+ )
+
+ // export state and simParams before the simulation error is checked
+ if err = simtestutil.CheckExportSimulation(bApp, config, simParams); err != nil {
+ b.Fatal(err)
+ }
+
+ if simErr != nil {
+ b.Fatal(simErr)
+ }
+
+ if config.Commit {
+ simtestutil.PrintStats(db)
+ }
+}
+
+func BenchmarkInvariants(b *testing.B) {
+ b.ReportAllocs()
+
+ config := simcli.NewConfigFromFlags()
+ config.ChainID = SimAppChainID
+
+ db, dir, logger, skip, err := simtestutil.SetupSimulation(config, "leveldb-app-invariant-bench", "Simulation", simcli.FlagVerboseValue, simcli.FlagEnabledValue)
+ if err != nil {
+ b.Fatalf("simulation setup failed: %s", err.Error())
+ }
+
+ if skip {
+ b.Skip("skipping benchmark application simulation")
+ }
+
+ config.AllInvariants = false
+
+ defer func() {
+ require.NoError(b, db.Close())
+ require.NoError(b, os.RemoveAll(dir))
+ }()
+
+ appOptions := make(simtestutil.AppOptionsMap, 0)
+ appOptions[flags.FlagHome] = app.DefaultNodeHome
+ appOptions[server.FlagInvCheckPeriod] = simcli.FlagPeriodValue
+
+ bApp, err := app.New(logger, db, nil, true, appOptions, interBlockCacheOpt())
+ require.NoError(b, err)
+ require.Equal(b, app.Name, bApp.Name())
+
+ // run randomized simulation
+ _, simParams, simErr := simulation.SimulateFromSeed(
+ b,
+ os.Stdout,
+ bApp.BaseApp,
+ simtestutil.AppStateFn(bApp.AppCodec(), bApp.SimulationManager(), bApp.DefaultGenesis()),
+ simtypes.RandomAccounts, // Replace with own random account function if using keys other than secp256k1
+ simtestutil.SimulationOperations(bApp, bApp.AppCodec(), config),
+ app.BlockedAddresses(),
+ config,
+ bApp.AppCodec(),
+ )
+
+ // export state and simParams before the simulation error is checked
+ if err = simtestutil.CheckExportSimulation(bApp, config, simParams); err != nil {
+ b.Fatal(err)
+ }
+
+ if simErr != nil {
+ b.Fatal(simErr)
+ }
+
+ if config.Commit {
+ simtestutil.PrintStats(db)
+ }
+
+ ctx := bApp.NewContextLegacy(true, cmtproto.Header{Height: bApp.LastBlockHeight() + 1})
+
+ // 3. Benchmark each invariant separately
+ //
+ // NOTE: We use the crisis keeper as it has all the invariants registered with
+ // their respective metadata which makes it useful for testing/benchmarking.
+ for _, cr := range bApp.CrisisKeeper.Routes() {
+ cr := cr
+ b.Run(fmt.Sprintf("%s/%s", cr.ModuleName, cr.Route), func(b *testing.B) {
+ if res, stop := cr.Invar(ctx); stop {
+ b.Fatalf(
+ "broken invariant at block %d of %d\n%s",
+ ctx.BlockHeight()-1, config.NumBlocks, res,
+ )
+ }
+ })
+ }
+}
diff --git a/app/simulation_test.go b/app/sim_test.go
similarity index 52%
rename from app/simulation_test.go
rename to app/sim_test.go
index ee0ed33ad..c40e55ef6 100644
--- a/app/simulation_test.go
+++ b/app/sim_test.go
@@ -2,6 +2,7 @@ package app_test
import (
"encoding/json"
+ "flag"
"fmt"
"math/rand"
"os"
@@ -10,44 +11,39 @@ import (
"testing"
"time"
- dbm "github.com/cometbft/cometbft-db"
+ "cosmossdk.io/log"
+ "cosmossdk.io/store"
+ storetypes "cosmossdk.io/store/types"
+ "cosmossdk.io/x/feegrant"
abci "github.com/cometbft/cometbft/abci/types"
- "github.com/cometbft/cometbft/libs/log"
- tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
+ cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
+ dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/server"
- storetypes "github.com/cosmos/cosmos-sdk/store/types"
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
- sdk "github.com/cosmos/cosmos-sdk/types"
simulationtypes "github.com/cosmos/cosmos-sdk/types/simulation"
- authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper"
- banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
- capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
- distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
- evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types"
- govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
- minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
- paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/cosmos/cosmos-sdk/x/simulation"
simcli "github.com/cosmos/cosmos-sdk/x/simulation/client/cli"
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
+ "github.com/spf13/viper"
"github.com/stretchr/testify/require"
"github.com/pokt-network/poktroll/app"
)
-type storeKeysPrefixes struct {
- A storetypes.StoreKey
- B storetypes.StoreKey
- Prefixes [][]byte
-}
+const (
+ SimAppChainID = "poktroll-simapp"
+)
+
+var FlagEnableStreamingValue bool
// Get flags every time the simulator is run
func init() {
simcli.GetSimulatorFlags()
+ flag.BoolVar(&FlagEnableStreamingValue, "EnableStreaming", false, "Enable streaming service")
}
// fauxMerkleModeOpt returns a BaseApp option to use a dbStoreAdapter instead of
@@ -56,9 +52,15 @@ func fauxMerkleModeOpt(bapp *baseapp.BaseApp) {
bapp.SetFauxMerkleMode()
}
+// interBlockCacheOpt returns a BaseApp option function that sets the persistent
+// inter-block write-through cache.
+func interBlockCacheOpt() func(*baseapp.BaseApp) {
+ return baseapp.SetInterBlockCache(store.NewCommitKVStoreCacheManager())
+}
+
// BenchmarkSimulation run the chain simulation
// Running using starport command:
-// `starport chain simulate -v --numBlocks 200 --blockSize 50`
+// `ignite chain simulate -v --numBlocks 200 --blockSize 50`
// Running as go benchmark test:
// `go test -benchmem -run=^$ -bench ^BenchmarkSimulation ./app -NumBlocks=200 -BlockSize 50 -Commit=true -Verbose=true -Enabled=true`
func BenchmarkSimulation(b *testing.B) {
@@ -68,37 +70,25 @@ func BenchmarkSimulation(b *testing.B) {
simcli.FlagEnabledValue = true
config := simcli.NewConfigFromFlags()
- config.ChainID = "mars-simapp"
- db, dir, logger, _, err := simtestutil.SetupSimulation(
- config,
- "leveldb-bApp-sim",
- "Simulation",
- simcli.FlagVerboseValue,
- simcli.FlagEnabledValue,
- )
+ config.ChainID = SimAppChainID
+
+ db, dir, logger, skip, err := simtestutil.SetupSimulation(config, "leveldb-app-sim", "Simulation", simcli.FlagVerboseValue, simcli.FlagEnabledValue)
+ if skip {
+ b.Skip("skipping application simulation")
+ }
require.NoError(b, err, "simulation setup failed")
- b.Cleanup(func() {
+ defer func() {
require.NoError(b, db.Close())
require.NoError(b, os.RemoveAll(dir))
- })
+ }()
appOptions := make(simtestutil.AppOptionsMap, 0)
appOptions[flags.FlagHome] = app.DefaultNodeHome
appOptions[server.FlagInvCheckPeriod] = simcli.FlagPeriodValue
- bApp := app.New(
- logger,
- db,
- nil,
- true,
- map[int64]bool{},
- app.DefaultNodeHome,
- 0,
- app.MakeEncodingConfig(),
- appOptions,
- baseapp.SetChainID(config.ChainID),
- )
+ bApp, err := app.New(logger, db, nil, true, appOptions, fauxMerkleModeOpt, baseapp.SetChainID(SimAppChainID))
+ require.NoError(b, err)
require.Equal(b, app.Name, bApp.Name())
// run randomized simulation
@@ -106,14 +96,10 @@ func BenchmarkSimulation(b *testing.B) {
b,
os.Stdout,
bApp.BaseApp,
- simtestutil.AppStateFn(
- bApp.AppCodec(),
- bApp.SimulationManager(),
- app.NewDefaultGenesisState(bApp.AppCodec()),
- ),
+ simtestutil.AppStateFn(bApp.AppCodec(), bApp.SimulationManager(), bApp.DefaultGenesis()),
simulationtypes.RandomAccounts,
simtestutil.SimulationOperations(bApp, bApp.AppCodec(), config),
- bApp.ModuleAccountAddrs(),
+ app.BlockedAddresses(),
config,
bApp.AppCodec(),
)
@@ -128,105 +114,11 @@ func BenchmarkSimulation(b *testing.B) {
}
}
-func TestAppStateDeterminism(t *testing.T) {
- if !simcli.FlagEnabledValue {
- t.Skip("skipping application simulation")
- }
-
- config := simcli.NewConfigFromFlags()
- config.InitialBlockHeight = 1
- config.ExportParamsPath = ""
- config.OnOperation = true
- config.AllInvariants = true
-
- var (
- r = rand.New(rand.NewSource(time.Now().Unix()))
- numSeeds = 3
- numTimesToRunPerSeed = 5
- appHashList = make([]json.RawMessage, numTimesToRunPerSeed)
- appOptions = make(simtestutil.AppOptionsMap, 0)
- )
- appOptions[flags.FlagHome] = app.DefaultNodeHome
- appOptions[server.FlagInvCheckPeriod] = simcli.FlagPeriodValue
-
- for i := 0; i < numSeeds; i++ {
- config.Seed = r.Int63()
-
- for j := 0; j < numTimesToRunPerSeed; j++ {
- var logger log.Logger
- if simcli.FlagVerboseValue {
- logger = log.TestingLogger()
- } else {
- logger = log.NewNopLogger()
- }
- chainID := fmt.Sprintf("chain-id-%d-%d", i, j)
- config.ChainID = chainID
-
- db := dbm.NewMemDB()
- bApp := app.New(
- logger,
- db,
- nil,
- true,
- map[int64]bool{},
- app.DefaultNodeHome,
- simcli.FlagPeriodValue,
- app.MakeEncodingConfig(),
- appOptions,
- fauxMerkleModeOpt,
- baseapp.SetChainID(chainID),
- )
-
- fmt.Printf(
- "running non-determinism simulation; seed %d: %d/%d, attempt: %d/%d\n",
- config.Seed, i+1, numSeeds, j+1, numTimesToRunPerSeed,
- )
-
- _, _, err := simulation.SimulateFromSeed(
- t,
- os.Stdout,
- bApp.BaseApp,
- simtestutil.AppStateFn(
- bApp.AppCodec(),
- bApp.SimulationManager(),
- app.NewDefaultGenesisState(bApp.AppCodec()),
- ),
- simulationtypes.RandomAccounts,
- simtestutil.SimulationOperations(bApp, bApp.AppCodec(), config),
- bApp.ModuleAccountAddrs(),
- config,
- bApp.AppCodec(),
- )
- require.NoError(t, err)
-
- if config.Commit {
- simtestutil.PrintStats(db)
- }
-
- appHash := bApp.LastCommitID().Hash
- appHashList[j] = appHash
-
- if j != 0 {
- require.Equal(
- t, string(appHashList[0]), string(appHashList[j]),
- "non-determinism in seed %d: %d/%d, attempt: %d/%d\n", config.Seed, i+1, numSeeds, j+1, numTimesToRunPerSeed,
- )
- }
- }
- }
-}
-
func TestAppImportExport(t *testing.T) {
config := simcli.NewConfigFromFlags()
- config.ChainID = "mars-simapp-import"
+ config.ChainID = SimAppChainID
- db, dir, logger, skip, err := simtestutil.SetupSimulation(
- config,
- "leveldb-app-sim",
- "Simulation",
- simcli.FlagVerboseValue,
- simcli.FlagEnabledValue,
- )
+ db, dir, logger, skip, err := simtestutil.SetupSimulation(config, "leveldb-app-sim", "Simulation", simcli.FlagVerboseValue, simcli.FlagEnabledValue)
if skip {
t.Skip("skipping application import/export simulation")
}
@@ -241,41 +133,27 @@ func TestAppImportExport(t *testing.T) {
appOptions[flags.FlagHome] = app.DefaultNodeHome
appOptions[server.FlagInvCheckPeriod] = simcli.FlagPeriodValue
- bApp := app.New(
- logger,
- db,
- nil,
- true,
- map[int64]bool{},
- app.DefaultNodeHome,
- 0,
- app.MakeEncodingConfig(),
- appOptions,
- baseapp.SetChainID(config.ChainID),
- )
+ bApp, err := app.New(logger, db, nil, true, appOptions, fauxMerkleModeOpt, baseapp.SetChainID(SimAppChainID))
+ require.NoError(t, err)
require.Equal(t, app.Name, bApp.Name())
- // run randomized simulation
+ // Run randomized simulation
_, simParams, simErr := simulation.SimulateFromSeed(
t,
os.Stdout,
bApp.BaseApp,
- simtestutil.AppStateFn(
- bApp.AppCodec(),
- bApp.SimulationManager(),
- app.NewDefaultGenesisState(bApp.AppCodec()),
- ),
+ simtestutil.AppStateFn(bApp.AppCodec(), bApp.SimulationManager(), bApp.DefaultGenesis()),
simulationtypes.RandomAccounts,
simtestutil.SimulationOperations(bApp, bApp.AppCodec(), config),
- bApp.BlockedModuleAccountAddrs(),
+ app.BlockedAddresses(),
config,
bApp.AppCodec(),
)
- require.NoError(t, simErr)
// export state and simParams before the simulation error is checked
err = simtestutil.CheckExportSimulation(bApp, config, simParams)
require.NoError(t, err)
+ require.NoError(t, simErr)
if config.Commit {
simtestutil.PrintStats(db)
@@ -288,13 +166,7 @@ func TestAppImportExport(t *testing.T) {
fmt.Printf("importing genesis...\n")
- newDB, newDir, _, _, err := simtestutil.SetupSimulation(
- config,
- "leveldb-app-sim-2",
- "Simulation-2",
- simcli.FlagVerboseValue,
- simcli.FlagEnabledValue,
- )
+ newDB, newDir, _, _, err := simtestutil.SetupSimulation(config, "leveldb-app-sim-2", "Simulation-2", simcli.FlagVerboseValue, simcli.FlagEnabledValue)
require.NoError(t, err, "simulation setup failed")
defer func() {
@@ -302,85 +174,71 @@ func TestAppImportExport(t *testing.T) {
require.NoError(t, os.RemoveAll(newDir))
}()
- newApp := app.New(
- log.NewNopLogger(),
- newDB,
- nil,
- true,
- map[int64]bool{},
- app.DefaultNodeHome,
- 0,
- app.MakeEncodingConfig(),
- appOptions,
- baseapp.SetChainID(config.ChainID),
- )
- require.Equal(t, app.Name, bApp.Name())
+ newApp, err := app.New(log.NewNopLogger(), newDB, nil, true, appOptions, fauxMerkleModeOpt, baseapp.SetChainID(SimAppChainID))
+ require.NoError(t, err)
+ require.Equal(t, app.Name, newApp.Name())
var genesisState app.GenesisState
err = json.Unmarshal(exported.AppState, &genesisState)
require.NoError(t, err)
- defer func() {
- if r := recover(); r != nil {
- err := fmt.Sprintf("%v", r)
- if !strings.Contains(err, "validator set is empty after InitGenesis") {
- panic(r)
- }
+ ctxA := bApp.NewContextLegacy(true, cmtproto.Header{Height: bApp.LastBlockHeight()})
+ ctxB := newApp.NewContextLegacy(true, cmtproto.Header{Height: bApp.LastBlockHeight()})
+ _, err = newApp.ModuleManager.InitGenesis(ctxB, bApp.AppCodec(), genesisState)
+
+ if err != nil {
+ if strings.Contains(err.Error(), "validator set is empty after InitGenesis") {
logger.Info("Skipping simulation as all validators have been unbonded")
logger.Info("err", err, "stacktrace", string(debug.Stack()))
+ return
}
- }()
-
- ctxA := bApp.NewContext(true, tmproto.Header{Height: bApp.LastBlockHeight()})
- ctxB := newApp.NewContext(true, tmproto.Header{Height: bApp.LastBlockHeight()})
- newApp.ModuleManager().InitGenesis(ctxB, bApp.AppCodec(), genesisState)
- newApp.StoreConsensusParams(ctxB, exported.ConsensusParams)
-
+ }
+ require.NoError(t, err)
+ err = newApp.StoreConsensusParams(ctxB, exported.ConsensusParams)
+ require.NoError(t, err)
fmt.Printf("comparing stores...\n")
- storeKeysPrefixes := []storeKeysPrefixes{
- {bApp.GetKey(authtypes.StoreKey), newApp.GetKey(authtypes.StoreKey), [][]byte{}},
- {
- bApp.GetKey(stakingtypes.StoreKey), newApp.GetKey(stakingtypes.StoreKey),
- [][]byte{
- stakingtypes.UnbondingQueueKey, stakingtypes.RedelegationQueueKey, stakingtypes.ValidatorQueueKey,
- stakingtypes.HistoricalInfoKey, stakingtypes.UnbondingIDKey, stakingtypes.UnbondingIndexKey, stakingtypes.UnbondingTypeKey, stakingtypes.ValidatorUpdatesKey,
- },
- }, // ordering may change but it doesn't matter
- {bApp.GetKey(slashingtypes.StoreKey), newApp.GetKey(slashingtypes.StoreKey), [][]byte{}},
- {bApp.GetKey(minttypes.StoreKey), newApp.GetKey(minttypes.StoreKey), [][]byte{}},
- {bApp.GetKey(distrtypes.StoreKey), newApp.GetKey(distrtypes.StoreKey), [][]byte{}},
- {bApp.GetKey(banktypes.StoreKey), newApp.GetKey(banktypes.StoreKey), [][]byte{banktypes.BalancesPrefix}},
- {bApp.GetKey(paramstypes.StoreKey), newApp.GetKey(paramstypes.StoreKey), [][]byte{}},
- {bApp.GetKey(govtypes.StoreKey), newApp.GetKey(govtypes.StoreKey), [][]byte{}},
- {bApp.GetKey(evidencetypes.StoreKey), newApp.GetKey(evidencetypes.StoreKey), [][]byte{}},
- {bApp.GetKey(capabilitytypes.StoreKey), newApp.GetKey(capabilitytypes.StoreKey), [][]byte{}},
- {bApp.GetKey(authzkeeper.StoreKey), newApp.GetKey(authzkeeper.StoreKey), [][]byte{authzkeeper.GrantKey, authzkeeper.GrantQueuePrefix}},
+ // skip certain prefixes
+ skipPrefixes := map[string][][]byte{
+ stakingtypes.StoreKey: {
+ stakingtypes.UnbondingQueueKey, stakingtypes.RedelegationQueueKey, stakingtypes.ValidatorQueueKey,
+ stakingtypes.HistoricalInfoKey, stakingtypes.UnbondingIDKey, stakingtypes.UnbondingIndexKey,
+ stakingtypes.UnbondingTypeKey, stakingtypes.ValidatorUpdatesKey,
+ },
+ authzkeeper.StoreKey: {authzkeeper.GrantQueuePrefix},
+ feegrant.StoreKey: {feegrant.FeeAllowanceQueueKeyPrefix},
+ slashingtypes.StoreKey: {slashingtypes.ValidatorMissedBlockBitmapKeyPrefix},
}
- for _, skp := range storeKeysPrefixes {
- storeA := ctxA.KVStore(skp.A)
- storeB := ctxB.KVStore(skp.B)
+ storeKeys := bApp.GetStoreKeys()
+ require.NotEmpty(t, storeKeys)
- failedKVAs, failedKVBs := sdk.DiffKVStores(storeA, storeB, skp.Prefixes)
- require.Equal(t, len(failedKVAs), len(failedKVBs), "unequal sets of key-values to compare")
+ for _, appKeyA := range storeKeys {
+ // only compare kvstores
+ if _, ok := appKeyA.(*storetypes.KVStoreKey); !ok {
+ continue
+ }
- fmt.Printf("compared %d different key/value pairs between %s and %s\n", len(failedKVAs), skp.A, skp.B)
- require.Equal(t, 0, len(failedKVAs), simtestutil.GetSimulationLog(skp.A.Name(), bApp.SimulationManager().StoreDecoders, failedKVAs, failedKVBs))
+ keyName := appKeyA.Name()
+ appKeyB := newApp.GetKey(keyName)
+
+ storeA := ctxA.KVStore(appKeyA)
+ storeB := ctxB.KVStore(appKeyB)
+
+ failedKVAs, failedKVBs := simtestutil.DiffKVStores(storeA, storeB, skipPrefixes[keyName])
+ require.Equal(t, len(failedKVAs), len(failedKVBs), "unequal sets of key-values to compare %s", keyName)
+
+ fmt.Printf("compared %d different key/value pairs between %s and %s\n", len(failedKVAs), appKeyA, appKeyB)
+
+ require.Equal(t, 0, len(failedKVAs), simtestutil.GetSimulationLog(keyName, bApp.SimulationManager().StoreDecoders, failedKVAs, failedKVBs))
}
}
func TestAppSimulationAfterImport(t *testing.T) {
config := simcli.NewConfigFromFlags()
- config.ChainID = "mars-simapp-after-import"
+ config.ChainID = SimAppChainID
- db, dir, logger, skip, err := simtestutil.SetupSimulation(
- config,
- "leveldb-app-sim",
- "Simulation",
- simcli.FlagVerboseValue,
- simcli.FlagEnabledValue,
- )
+ db, dir, logger, skip, err := simtestutil.SetupSimulation(config, "leveldb-app-sim", "Simulation", simcli.FlagVerboseValue, simcli.FlagEnabledValue)
if skip {
t.Skip("skipping application simulation after import")
}
@@ -395,42 +253,27 @@ func TestAppSimulationAfterImport(t *testing.T) {
appOptions[flags.FlagHome] = app.DefaultNodeHome
appOptions[server.FlagInvCheckPeriod] = simcli.FlagPeriodValue
- bApp := app.New(
- logger,
- db,
- nil,
- true,
- map[int64]bool{},
- app.DefaultNodeHome,
- 0,
- app.MakeEncodingConfig(),
- appOptions,
- fauxMerkleModeOpt,
- baseapp.SetChainID(config.ChainID),
- )
+ bApp, err := app.New(logger, db, nil, true, appOptions, fauxMerkleModeOpt, baseapp.SetChainID(SimAppChainID))
+ require.NoError(t, err)
require.Equal(t, app.Name, bApp.Name())
- // run randomized simulation
+ // Run randomized simulation
stopEarly, simParams, simErr := simulation.SimulateFromSeed(
t,
os.Stdout,
bApp.BaseApp,
- simtestutil.AppStateFn(
- bApp.AppCodec(),
- bApp.SimulationManager(),
- app.NewDefaultGenesisState(bApp.AppCodec()),
- ),
+ simtestutil.AppStateFn(bApp.AppCodec(), bApp.SimulationManager(), bApp.DefaultGenesis()),
simulationtypes.RandomAccounts,
simtestutil.SimulationOperations(bApp, bApp.AppCodec(), config),
- bApp.BlockedModuleAccountAddrs(),
+ app.BlockedAddresses(),
config,
bApp.AppCodec(),
)
- require.NoError(t, simErr)
// export state and simParams before the simulation error is checked
err = simtestutil.CheckExportSimulation(bApp, config, simParams)
require.NoError(t, err)
+ require.NoError(t, simErr)
if config.Commit {
simtestutil.PrintStats(db)
@@ -448,13 +291,7 @@ func TestAppSimulationAfterImport(t *testing.T) {
fmt.Printf("importing genesis...\n")
- newDB, newDir, _, _, err := simtestutil.SetupSimulation(
- config,
- "leveldb-app-sim-2",
- "Simulation-2",
- simcli.FlagVerboseValue,
- simcli.FlagEnabledValue,
- )
+ newDB, newDir, _, _, err := simtestutil.SetupSimulation(config, "leveldb-app-sim-2", "Simulation-2", simcli.FlagVerboseValue, simcli.FlagEnabledValue)
require.NoError(t, err, "simulation setup failed")
defer func() {
@@ -462,40 +299,129 @@ func TestAppSimulationAfterImport(t *testing.T) {
require.NoError(t, os.RemoveAll(newDir))
}()
- newApp := app.New(
- log.NewNopLogger(),
- newDB,
- nil,
- true,
- map[int64]bool{},
- app.DefaultNodeHome,
- 0,
- app.MakeEncodingConfig(),
- appOptions,
- fauxMerkleModeOpt,
- baseapp.SetChainID(config.ChainID),
- )
- require.Equal(t, app.Name, bApp.Name())
+ newApp, err := app.New(log.NewNopLogger(), newDB, nil, true, appOptions, fauxMerkleModeOpt, baseapp.SetChainID(SimAppChainID))
+ require.NoError(t, err)
+ require.Equal(t, app.Name, newApp.Name())
- newApp.InitChain(abci.RequestInitChain{
- ChainId: config.ChainID,
+ _, err = newApp.InitChain(&abci.RequestInitChain{
AppStateBytes: exported.AppState,
+ ChainId: SimAppChainID,
})
+ require.NoError(t, err)
_, _, err = simulation.SimulateFromSeed(
t,
os.Stdout,
newApp.BaseApp,
- simtestutil.AppStateFn(
- bApp.AppCodec(),
- bApp.SimulationManager(),
- app.NewDefaultGenesisState(bApp.AppCodec()),
- ),
+ simtestutil.AppStateFn(bApp.AppCodec(), bApp.SimulationManager(), bApp.DefaultGenesis()),
simulationtypes.RandomAccounts,
simtestutil.SimulationOperations(newApp, newApp.AppCodec(), config),
- newApp.BlockedModuleAccountAddrs(),
+ app.BlockedAddresses(),
config,
bApp.AppCodec(),
)
require.NoError(t, err)
}
+
+func TestAppStateDeterminism(t *testing.T) {
+ if !simcli.FlagEnabledValue {
+ t.Skip("skipping application simulation")
+ }
+
+ config := simcli.NewConfigFromFlags()
+ config.InitialBlockHeight = 1
+ config.ExportParamsPath = ""
+ config.OnOperation = true
+ config.AllInvariants = true
+
+ numSeeds := 3
+ numTimesToRunPerSeed := 3 // This used to be set to 5, but we've temporarily reduced it to 3 for the sake of faster CI.
+ appHashList := make([]json.RawMessage, numTimesToRunPerSeed)
+
+ // We will be overriding the random seed and just run a single simulation on the provided seed value
+ if config.Seed != simcli.DefaultSeedValue {
+ numSeeds = 1
+ }
+
+ appOptions := viper.New()
+ if FlagEnableStreamingValue {
+ m := make(map[string]interface{})
+ m["streaming.abci.keys"] = []string{"*"}
+ m["streaming.abci.plugin"] = "abci_v1"
+ m["streaming.abci.stop-node-on-err"] = true
+ for key, value := range m {
+ appOptions.SetDefault(key, value)
+ }
+ }
+ appOptions.SetDefault(flags.FlagHome, app.DefaultNodeHome)
+ appOptions.SetDefault(server.FlagInvCheckPeriod, simcli.FlagPeriodValue)
+ if simcli.FlagVerboseValue {
+ appOptions.SetDefault(flags.FlagLogLevel, "debug")
+ }
+
+ for i := 0; i < numSeeds; i++ {
+ if config.Seed == simcli.DefaultSeedValue {
+ config.Seed = rand.Int63()
+ }
+ fmt.Println("config.Seed: ", config.Seed)
+
+ for j := 0; j < numTimesToRunPerSeed; j++ {
+ var logger log.Logger
+ if simcli.FlagVerboseValue {
+ logger = log.NewTestLogger(t)
+ } else {
+ logger = log.NewNopLogger()
+ }
+ chainID := fmt.Sprintf("chain-id-%d-%d", i, j)
+ config.ChainID = chainID
+
+ db := dbm.NewMemDB()
+ bApp, err := app.New(
+ logger,
+ db,
+ nil,
+ true,
+ appOptions,
+ interBlockCacheOpt(),
+ baseapp.SetChainID(chainID),
+ )
+ require.NoError(t, err)
+
+ fmt.Printf(
+ "running non-determinism simulation; seed %d: %d/%d, attempt: %d/%d\n",
+ config.Seed, i+1, numSeeds, j+1, numTimesToRunPerSeed,
+ )
+
+ _, _, err = simulation.SimulateFromSeed(
+ t,
+ os.Stdout,
+ bApp.BaseApp,
+ simtestutil.AppStateFn(
+ bApp.AppCodec(),
+ bApp.SimulationManager(),
+ bApp.DefaultGenesis(),
+ ),
+ simulationtypes.RandomAccounts,
+ simtestutil.SimulationOperations(bApp, bApp.AppCodec(), config),
+ app.BlockedAddresses(),
+ config,
+ bApp.AppCodec(),
+ )
+ require.NoError(t, err)
+
+ if config.Commit {
+ simtestutil.PrintStats(db)
+ }
+
+ appHash := bApp.LastCommitID().Hash
+ appHashList[j] = appHash
+
+ if j != 0 {
+ require.Equal(
+ t, string(appHashList[0]), string(appHashList[j]),
+ "non-determinism in seed %d: %d/%d, attempt: %d/%d\n", config.Seed, i+1, numSeeds, j+1, numTimesToRunPerSeed,
+ )
+ }
+ }
+ }
+}
diff --git a/buf.work.yaml b/buf.work.yaml
new file mode 100644
index 000000000..1b4a0d95c
--- /dev/null
+++ b/buf.work.yaml
@@ -0,0 +1,8 @@
+# Generated by "buf config migrate-v1beta1". Edit as necessary, and
+# remove this comment when you're finished.
+#
+# This workspace file points to the roots found in your
+# previous "buf.yaml" configuration.
+version: v1
+directories:
+ - proto
diff --git a/cmd/pocketd/cmd/config.go b/cmd/pocketd/cmd/config.go
deleted file mode 100644
index 1182b1159..000000000
--- a/cmd/pocketd/cmd/config.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package cmd
-
-import (
- sdk "github.com/cosmos/cosmos-sdk/types"
-
- "github.com/pokt-network/poktroll/app"
-)
-
-// InitSDKConfig initializes the SDK's config with the appropriate parameters
-// and prefixes so everything is named appropriately for Pocket Network.
-// TODO_DISCUSS: Exporting publically for testing purposes only.
-// Consider adding a helper per the discussion here: https://github.com/pokt-network/poktroll/pull/59#discussion_r1357816798
-func InitSDKConfig() {
- // Set prefixes
- accountPubKeyPrefix := app.AccountAddressPrefix + "pub"
- validatorAddressPrefix := app.AccountAddressPrefix + "valoper"
- validatorPubKeyPrefix := app.AccountAddressPrefix + "valoperpub"
- consNodeAddressPrefix := app.AccountAddressPrefix + "valcons"
- consNodePubKeyPrefix := app.AccountAddressPrefix + "valconspub"
-
- // Set and seal config
- config := sdk.GetConfig()
- config.SetBech32PrefixForAccount(app.AccountAddressPrefix, accountPubKeyPrefix)
- config.SetBech32PrefixForValidator(validatorAddressPrefix, validatorPubKeyPrefix)
- config.SetBech32PrefixForConsensusNode(consNodeAddressPrefix, consNodePubKeyPrefix)
- config.Seal()
-}
diff --git a/cmd/pocketd/cmd/genaccounts.go b/cmd/pocketd/cmd/genaccounts.go
deleted file mode 100644
index d5ec65337..000000000
--- a/cmd/pocketd/cmd/genaccounts.go
+++ /dev/null
@@ -1,192 +0,0 @@
-package cmd
-
-import (
- "bufio"
- "encoding/json"
- "errors"
- "fmt"
-
- "github.com/cosmos/cosmos-sdk/client"
- "github.com/cosmos/cosmos-sdk/client/flags"
- "github.com/cosmos/cosmos-sdk/crypto/keyring"
- "github.com/cosmos/cosmos-sdk/server"
- sdk "github.com/cosmos/cosmos-sdk/types"
- authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
- authvesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
- banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
- "github.com/cosmos/cosmos-sdk/x/genutil"
- genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
- "github.com/spf13/cobra"
-)
-
-const (
- flagVestingStart = "vesting-start-time"
- flagVestingEnd = "vesting-end-time"
- flagVestingAmt = "vesting-amount"
-)
-
-// AddGenesisAccountCmd returns add-genesis-account cobra Command.
-func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command {
- cmd := &cobra.Command{
- Use: "add-genesis-account [address_or_key_name] [coin][,[coin]]",
- Short: "Add a genesis account to genesis.json",
- Long: `Add a genesis account to genesis.json. The provided account must specify
-the account address or key name and a list of initial coins. If a key name is given,
-the address will be looked up in the local Keybase. The list of initial tokens must
-contain valid denominations. Accounts may optionally be supplied with vesting parameters.
-`,
- Args: cobra.ExactArgs(2),
- RunE: func(cmd *cobra.Command, args []string) error {
- clientCtx := client.GetClientContextFromCmd(cmd)
- cdc := clientCtx.Codec
-
- serverCtx := server.GetServerContextFromCmd(cmd)
- config := serverCtx.Config
-
- config.SetRoot(clientCtx.HomeDir)
-
- coins, err := sdk.ParseCoinsNormalized(args[1])
- if err != nil {
- return fmt.Errorf("failed to parse coins: %w", err)
- }
-
- addr, err := sdk.AccAddressFromBech32(args[0])
- if err != nil {
- inBuf := bufio.NewReader(cmd.InOrStdin())
- keyringBackend, err := cmd.Flags().GetString(flags.FlagKeyringBackend)
- if err != nil {
- return err
- }
-
- // attempt to lookup address from Keybase if no address was provided
- kb, err := keyring.New(sdk.KeyringServiceName(), keyringBackend, clientCtx.HomeDir, inBuf, cdc)
- if err != nil {
- return err
- }
-
- info, err := kb.Key(args[0])
- if err != nil {
- return fmt.Errorf("failed to get address from Keybase: %w", err)
- }
-
- addr, err = info.GetAddress()
- if err != nil {
- return fmt.Errorf("failed to get address from Keybase: %w", err)
- }
- }
-
- vestingStart, err := cmd.Flags().GetInt64(flagVestingStart)
- if err != nil {
- return err
- }
- vestingEnd, err := cmd.Flags().GetInt64(flagVestingEnd)
- if err != nil {
- return err
- }
- vestingAmtStr, err := cmd.Flags().GetString(flagVestingAmt)
- if err != nil {
- return err
- }
-
- vestingAmt, err := sdk.ParseCoinsNormalized(vestingAmtStr)
- if err != nil {
- return fmt.Errorf("failed to parse vesting amount: %w", err)
- }
-
- // create concrete account type based on input parameters
- var genAccount authtypes.GenesisAccount
-
- balances := banktypes.Balance{Address: addr.String(), Coins: coins.Sort()}
- baseAccount := authtypes.NewBaseAccount(addr, nil, 0, 0)
-
- if !vestingAmt.IsZero() {
- baseVestingAccount := authvesting.NewBaseVestingAccount(baseAccount, vestingAmt.Sort(), vestingEnd)
-
- if (balances.Coins.IsZero() && !baseVestingAccount.OriginalVesting.IsZero()) ||
- baseVestingAccount.OriginalVesting.IsAnyGT(balances.Coins) {
- return errors.New("vesting amount cannot be greater than total amount")
- }
-
- switch {
- case vestingStart != 0 && vestingEnd != 0:
- genAccount = authvesting.NewContinuousVestingAccountRaw(baseVestingAccount, vestingStart)
-
- case vestingEnd != 0:
- genAccount = authvesting.NewDelayedVestingAccountRaw(baseVestingAccount)
-
- default:
- return errors.New("invalid vesting parameters; must supply start and end time or end time")
- }
- } else {
- genAccount = baseAccount
- }
-
- if err := genAccount.Validate(); err != nil {
- return fmt.Errorf("failed to validate new genesis account: %w", err)
- }
-
- genFile := config.GenesisFile()
- appState, genDoc, err := genutiltypes.GenesisStateFromGenFile(genFile)
- if err != nil {
- return fmt.Errorf("failed to unmarshal genesis state: %w", err)
- }
-
- authGenState := authtypes.GetGenesisStateFromAppState(cdc, appState)
-
- accs, err := authtypes.UnpackAccounts(authGenState.Accounts)
- if err != nil {
- return fmt.Errorf("failed to get accounts from any: %w", err)
- }
-
- if accs.Contains(addr) {
- return fmt.Errorf("cannot add account at existing address %s", addr)
- }
-
- // Add the new account to the set of genesis accounts and sanitize the
- // accounts afterwards.
- accs = append(accs, genAccount)
- accs = authtypes.SanitizeGenesisAccounts(accs)
-
- genAccs, err := authtypes.PackAccounts(accs)
- if err != nil {
- return fmt.Errorf("failed to convert accounts into any's: %w", err)
- }
- authGenState.Accounts = genAccs
-
- authGenStateBz, err := cdc.MarshalJSON(&authGenState)
- if err != nil {
- return fmt.Errorf("failed to marshal auth genesis state: %w", err)
- }
-
- appState[authtypes.ModuleName] = authGenStateBz
-
- bankGenState := banktypes.GetGenesisStateFromAppState(cdc, appState)
- bankGenState.Balances = append(bankGenState.Balances, balances)
- bankGenState.Balances = banktypes.SanitizeGenesisBalances(bankGenState.Balances)
-
- bankGenStateBz, err := cdc.MarshalJSON(bankGenState)
- if err != nil {
- return fmt.Errorf("failed to marshal bank genesis state: %w", err)
- }
-
- appState[banktypes.ModuleName] = bankGenStateBz
-
- appStateJSON, err := json.Marshal(appState)
- if err != nil {
- return fmt.Errorf("failed to marshal application genesis state: %w", err)
- }
-
- genDoc.AppState = appStateJSON
- return genutil.ExportGenesisFile(genDoc, genFile)
- },
- }
-
- cmd.Flags().String(flags.FlagKeyringBackend, flags.DefaultKeyringBackend, "Select keyring's backend (os|file|kwallet|pass|test)")
- cmd.Flags().String(flags.FlagHome, defaultNodeHome, "The application home directory")
- cmd.Flags().String(flagVestingAmt, "", "amount of coins for vesting accounts")
- cmd.Flags().Int64(flagVestingStart, 0, "schedule start time (unix epoch) for vesting accounts")
- cmd.Flags().Int64(flagVestingEnd, 0, "schedule end time (unix epoch) for vesting accounts")
- flags.AddQueryFlagsToCmd(cmd)
-
- return cmd
-}
diff --git a/cmd/pocketd/cmd/root.go b/cmd/pocketd/cmd/root.go
deleted file mode 100644
index 55b7071fc..000000000
--- a/cmd/pocketd/cmd/root.go
+++ /dev/null
@@ -1,386 +0,0 @@
-package cmd
-
-import (
- "errors"
- "io"
- "os"
- "path/filepath"
- "strings"
-
- // this line is used by starport scaffolding # root/moduleImport
-
- dbm "github.com/cometbft/cometbft-db"
- tmcfg "github.com/cometbft/cometbft/config"
- tmcli "github.com/cometbft/cometbft/libs/cli"
- "github.com/cometbft/cometbft/libs/log"
- tmtypes "github.com/cometbft/cometbft/types"
- "github.com/cosmos/cosmos-sdk/baseapp"
- "github.com/cosmos/cosmos-sdk/client"
- "github.com/cosmos/cosmos-sdk/client/config"
- "github.com/cosmos/cosmos-sdk/client/debug"
- "github.com/cosmos/cosmos-sdk/client/flags"
- "github.com/cosmos/cosmos-sdk/client/keys"
- "github.com/cosmos/cosmos-sdk/client/rpc"
- "github.com/cosmos/cosmos-sdk/server"
- serverconfig "github.com/cosmos/cosmos-sdk/server/config"
- servertypes "github.com/cosmos/cosmos-sdk/server/types"
- "github.com/cosmos/cosmos-sdk/snapshots"
- snapshottypes "github.com/cosmos/cosmos-sdk/snapshots/types"
- "github.com/cosmos/cosmos-sdk/store"
- sdk "github.com/cosmos/cosmos-sdk/types"
- authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli"
- "github.com/cosmos/cosmos-sdk/x/auth/types"
- banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
- "github.com/cosmos/cosmos-sdk/x/crisis"
- "github.com/cosmos/cosmos-sdk/x/genutil"
- genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
- genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
- "github.com/spf13/cast"
- "github.com/spf13/cobra"
- "github.com/spf13/pflag"
-
- // this line is used by starport scaffolding # root/moduleImport
-
- "github.com/pokt-network/poktroll/app"
- appparams "github.com/pokt-network/poktroll/app/params"
- appgateservercmd "github.com/pokt-network/poktroll/pkg/appgateserver/cmd"
- relayercmd "github.com/pokt-network/poktroll/pkg/relayer/cmd"
-)
-
-// NewRootCmd creates a new root command for a Cosmos SDK application
-func NewRootCmd() (*cobra.Command, appparams.EncodingConfig) {
- encodingConfig := app.MakeEncodingConfig()
- initClientCtx := client.Context{}.
- WithCodec(encodingConfig.Marshaler).
- WithInterfaceRegistry(encodingConfig.InterfaceRegistry).
- WithTxConfig(encodingConfig.TxConfig).
- WithLegacyAmino(encodingConfig.Amino).
- WithInput(os.Stdin).
- WithAccountRetriever(types.AccountRetriever{}).
- WithHomeDir(app.DefaultNodeHome).
- WithViper("")
-
- rootCmd := &cobra.Command{
- Use: app.Name + "d",
- Short: "Start pocket node",
- PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
- // set the default command outputs
- cmd.SetOut(cmd.OutOrStdout())
- cmd.SetErr(cmd.ErrOrStderr())
- initClientCtx, err := client.ReadPersistentCommandFlags(initClientCtx, cmd.Flags())
- if err != nil {
- return err
- }
- initClientCtx, err = config.ReadFromClientConfig(initClientCtx)
- if err != nil {
- return err
- }
-
- if err := client.SetCmdClientContextHandler(initClientCtx, cmd); err != nil {
- return err
- }
-
- customAppTemplate, customAppConfig := initAppConfig()
- customTMConfig := initTendermintConfig()
- return server.InterceptConfigsPreRunHandler(
- cmd, customAppTemplate, customAppConfig, customTMConfig,
- )
- },
- }
-
- initRootCmd(rootCmd, encodingConfig)
- overwriteFlagDefaults(rootCmd, map[string]string{
- flags.FlagChainID: strings.ReplaceAll(app.Name, "-", ""),
- flags.FlagKeyringBackend: "test",
- })
-
- return rootCmd, encodingConfig
-}
-
-// initTendermintConfig helps to override default Tendermint Config values.
-// return tmcfg.DefaultConfig if no custom configuration is required for the application.
-func initTendermintConfig() *tmcfg.Config {
- cfg := tmcfg.DefaultConfig()
- return cfg
-}
-
-func initRootCmd(
- rootCmd *cobra.Command,
- encodingConfig appparams.EncodingConfig,
-) {
- // Set config
- InitSDKConfig()
-
- gentxModule := app.ModuleBasics[genutiltypes.ModuleName].(genutil.AppModuleBasic)
- rootCmd.AddCommand(
- genutilcli.InitCmd(app.ModuleBasics, app.DefaultNodeHome),
- genutilcli.CollectGenTxsCmd(banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome, gentxModule.GenTxValidator),
- genutilcli.MigrateGenesisCmd(),
- genutilcli.GenTxCmd(
- app.ModuleBasics,
- encodingConfig.TxConfig,
- banktypes.GenesisBalancesIterator{},
- app.DefaultNodeHome,
- ),
- genutilcli.ValidateGenesisCmd(app.ModuleBasics),
- AddGenesisAccountCmd(app.DefaultNodeHome),
- tmcli.NewCompletionCmd(rootCmd, true),
- debug.Cmd(),
- config.Cmd(),
- // this line is used by starport scaffolding # root/commands
- )
-
- a := appCreator{
- encodingConfig,
- }
-
- // add server commands
- server.AddCommands(
- rootCmd,
- app.DefaultNodeHome,
- a.newApp,
- a.appExport,
- addModuleInitFlags,
- )
-
- // add relayer command
- rootCmd.AddCommand(
- relayercmd.RelayerCmd(),
- )
-
- // add keybase, auxiliary RPC, query, and tx child commands
- rootCmd.AddCommand(
- rpc.StatusCommand(),
- queryCommand(),
- txCommand(),
- keys.Commands(app.DefaultNodeHome),
- )
-
- // add the appgate server command
- rootCmd.AddCommand(
- appgateservercmd.AppGateServerCmd(),
- )
-}
-
-// queryCommand returns the sub-command to send queries to the app
-func queryCommand() *cobra.Command {
- cmd := &cobra.Command{
- Use: "query",
- Aliases: []string{"q"},
- Short: "Querying subcommands",
- DisableFlagParsing: true,
- SuggestionsMinimumDistance: 2,
- RunE: client.ValidateCmd,
- }
-
- cmd.AddCommand(
- authcmd.GetAccountCmd(),
- rpc.ValidatorCommand(),
- rpc.BlockCommand(),
- authcmd.QueryTxsByEventsCmd(),
- authcmd.QueryTxCmd(),
- )
-
- app.ModuleBasics.AddQueryCommands(cmd)
- cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID")
-
- return cmd
-}
-
-// txCommand returns the sub-command to send transactions to the app
-func txCommand() *cobra.Command {
- cmd := &cobra.Command{
- Use: "tx",
- Short: "Transactions subcommands",
- DisableFlagParsing: true,
- SuggestionsMinimumDistance: 2,
- RunE: client.ValidateCmd,
- }
-
- cmd.AddCommand(
- authcmd.GetSignCommand(),
- authcmd.GetSignBatchCommand(),
- authcmd.GetMultiSignCommand(),
- authcmd.GetValidateSignaturesCommand(),
- flags.LineBreak,
- authcmd.GetBroadcastCommand(),
- authcmd.GetEncodeCommand(),
- authcmd.GetDecodeCommand(),
- )
-
- app.ModuleBasics.AddTxCommands(cmd)
- cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID")
-
- return cmd
-}
-
-func addModuleInitFlags(startCmd *cobra.Command) {
- crisis.AddModuleInitFlags(startCmd)
- // this line is used by starport scaffolding # root/arguments
-}
-
-func overwriteFlagDefaults(c *cobra.Command, defaults map[string]string) {
- set := func(s *pflag.FlagSet, key, val string) {
- if f := s.Lookup(key); f != nil {
- f.DefValue = val
- f.Value.Set(val)
- }
- }
- for key, val := range defaults {
- set(c.Flags(), key, val)
- set(c.PersistentFlags(), key, val)
- }
- for _, c := range c.Commands() {
- overwriteFlagDefaults(c, defaults)
- }
-}
-
-type appCreator struct {
- encodingConfig appparams.EncodingConfig
-}
-
-// newApp creates a new Cosmos SDK app
-func (a appCreator) newApp(
- logger log.Logger,
- db dbm.DB,
- traceStore io.Writer,
- appOpts servertypes.AppOptions,
-) servertypes.Application {
- var cache sdk.MultiStorePersistentCache
-
- if cast.ToBool(appOpts.Get(server.FlagInterBlockCache)) {
- cache = store.NewCommitKVStoreCacheManager()
- }
-
- skipUpgradeHeights := make(map[int64]bool)
- for _, h := range cast.ToIntSlice(appOpts.Get(server.FlagUnsafeSkipUpgrades)) {
- skipUpgradeHeights[int64(h)] = true
- }
-
- pruningOpts, err := server.GetPruningOptionsFromFlags(appOpts)
- if err != nil {
- panic(err)
- }
-
- homeDir := cast.ToString(appOpts.Get(flags.FlagHome))
- chainID := cast.ToString(appOpts.Get(flags.FlagChainID))
- if chainID == "" {
- // fallback to genesis chain-id
- appGenesis, err := tmtypes.GenesisDocFromFile(filepath.Join(homeDir, "config", "genesis.json"))
- if err != nil {
- panic(err)
- }
-
- chainID = appGenesis.ChainID
- }
-
- snapshotDir := filepath.Join(cast.ToString(appOpts.Get(flags.FlagHome)), "data", "snapshots")
- snapshotDB, err := dbm.NewDB("metadata", dbm.GoLevelDBBackend, snapshotDir)
- if err != nil {
- panic(err)
- }
- snapshotStore, err := snapshots.NewStore(snapshotDB, snapshotDir)
- if err != nil {
- panic(err)
- }
-
- snapshotOptions := snapshottypes.NewSnapshotOptions(
- cast.ToUint64(appOpts.Get(server.FlagStateSyncSnapshotInterval)),
- cast.ToUint32(appOpts.Get(server.FlagStateSyncSnapshotKeepRecent)),
- )
-
- return app.New(
- logger,
- db,
- traceStore,
- true,
- skipUpgradeHeights,
- cast.ToString(appOpts.Get(flags.FlagHome)),
- cast.ToUint(appOpts.Get(server.FlagInvCheckPeriod)),
- a.encodingConfig,
- appOpts,
- baseapp.SetPruning(pruningOpts),
- baseapp.SetMinGasPrices(cast.ToString(appOpts.Get(server.FlagMinGasPrices))),
- baseapp.SetHaltHeight(cast.ToUint64(appOpts.Get(server.FlagHaltHeight))),
- baseapp.SetHaltTime(cast.ToUint64(appOpts.Get(server.FlagHaltTime))),
- baseapp.SetMinRetainBlocks(cast.ToUint64(appOpts.Get(server.FlagMinRetainBlocks))),
- baseapp.SetInterBlockCache(cache),
- baseapp.SetTrace(cast.ToBool(appOpts.Get(server.FlagTrace))),
- baseapp.SetIndexEvents(cast.ToStringSlice(appOpts.Get(server.FlagIndexEvents))),
- baseapp.SetSnapshot(snapshotStore, snapshotOptions),
- baseapp.SetIAVLCacheSize(cast.ToInt(appOpts.Get(server.FlagIAVLCacheSize))),
- baseapp.SetIAVLDisableFastNode(cast.ToBool(appOpts.Get(server.FlagDisableIAVLFastNode))),
- baseapp.SetChainID(chainID),
- )
-}
-
-// appExport creates a new simapp (optionally at a given height)
-func (a appCreator) appExport(
- logger log.Logger,
- db dbm.DB,
- traceStore io.Writer,
- height int64,
- forZeroHeight bool,
- jailAllowedAddrs []string,
- appOpts servertypes.AppOptions,
- modulesToExport []string,
-) (servertypes.ExportedApp, error) {
- homePath, ok := appOpts.Get(flags.FlagHome).(string)
- if !ok || homePath == "" {
- return servertypes.ExportedApp{}, errors.New("application home not set")
- }
-
- app := app.New(
- logger,
- db,
- traceStore,
- height == -1, // -1: no height provided
- map[int64]bool{},
- homePath,
- uint(1),
- a.encodingConfig,
- appOpts,
- )
-
- if height != -1 {
- if err := app.LoadHeight(height); err != nil {
- return servertypes.ExportedApp{}, err
- }
- }
-
- return app.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs, modulesToExport)
-}
-
-// initAppConfig helps to override default appConfig template and configs.
-// return "", nil if no custom configuration is required for the application.
-func initAppConfig() (string, interface{}) {
- // The following code snippet is just for reference.
-
- type CustomAppConfig struct {
- serverconfig.Config
- }
-
- // Optionally allow the chain developer to overwrite the SDK's default
- // server config.
- srvCfg := serverconfig.DefaultConfig()
- // The SDK's default minimum gas price is set to "" (empty value) inside
- // app.toml. If left empty by validators, the node will halt on startup.
- // However, the chain developer can set a default app.toml value for their
- // validators here.
- //
- // In summary:
- // - if you leave srvCfg.MinGasPrices = "", all validators MUST tweak their
- // own app.toml config,
- // - if you set srvCfg.MinGasPrices non-empty, validators CAN tweak their
- // own app.toml to override, or use this default value.
- //
- // In simapp, we set the min gas prices to 0.
- srvCfg.MinGasPrices = "0upokt"
-
- customAppConfig := CustomAppConfig{
- Config: *srvCfg,
- }
- customAppTemplate := serverconfig.DefaultConfigTemplate
-
- return customAppTemplate, customAppConfig
-}
diff --git a/cmd/pocketd/main.go b/cmd/pocketd/main.go
deleted file mode 100644
index 25c7ebcef..000000000
--- a/cmd/pocketd/main.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package main
-
-import (
- "os"
-
- "github.com/cosmos/cosmos-sdk/server"
- svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
-
- "github.com/pokt-network/poktroll/app"
- "github.com/pokt-network/poktroll/cmd/pocketd/cmd"
-)
-
-func main() {
- rootCmd, _ := cmd.NewRootCmd()
- if err := svrcmd.Execute(rootCmd, "", app.DefaultNodeHome); err != nil {
- switch e := err.(type) {
- case server.ErrorCode:
- os.Exit(e.Code)
-
- default:
- os.Exit(1)
- }
- }
-}
diff --git a/cmd/poktrolld/cmd/commands.go b/cmd/poktrolld/cmd/commands.go
new file mode 100644
index 000000000..7eb957904
--- /dev/null
+++ b/cmd/poktrolld/cmd/commands.go
@@ -0,0 +1,191 @@
+package cmd
+
+import (
+ "errors"
+ "io"
+
+ "cosmossdk.io/log"
+ confixcmd "cosmossdk.io/tools/confix/cmd"
+ dbm "github.com/cosmos/cosmos-db"
+ "github.com/cosmos/cosmos-sdk/client"
+ "github.com/cosmos/cosmos-sdk/client/debug"
+ "github.com/cosmos/cosmos-sdk/client/flags"
+ "github.com/cosmos/cosmos-sdk/client/keys"
+ "github.com/cosmos/cosmos-sdk/client/pruning"
+ "github.com/cosmos/cosmos-sdk/client/rpc"
+ "github.com/cosmos/cosmos-sdk/client/snapshot"
+ "github.com/cosmos/cosmos-sdk/codec"
+ codectypes "github.com/cosmos/cosmos-sdk/codec/types"
+ "github.com/cosmos/cosmos-sdk/server"
+ servertypes "github.com/cosmos/cosmos-sdk/server/types"
+ "github.com/cosmos/cosmos-sdk/types/module"
+ authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli"
+ "github.com/cosmos/cosmos-sdk/x/crisis"
+ genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
+ "github.com/spf13/cobra"
+ "github.com/spf13/viper"
+
+ "github.com/pokt-network/poktroll/app"
+)
+
+func initRootCmd(
+ rootCmd *cobra.Command,
+ txConfig client.TxConfig,
+ interfaceRegistry codectypes.InterfaceRegistry,
+ appCodec codec.Codec,
+ basicManager module.BasicManager,
+) {
+ rootCmd.AddCommand(
+ genutilcli.InitCmd(basicManager, app.DefaultNodeHome),
+ debug.Cmd(),
+ confixcmd.ConfigCommand(),
+ pruning.Cmd(newApp, app.DefaultNodeHome),
+ snapshot.Cmd(newApp),
+ )
+
+ server.AddCommands(rootCmd, app.DefaultNodeHome, newApp, appExport, addModuleInitFlags)
+
+ // add keybase, auxiliary RPC, query, genesis, and tx child commands
+ rootCmd.AddCommand(
+ server.StatusCommand(),
+ genesisCommand(txConfig, basicManager),
+ queryCommand(),
+ txCommand(),
+ keys.Commands(),
+ )
+}
+
+func addModuleInitFlags(startCmd *cobra.Command) {
+ crisis.AddModuleInitFlags(startCmd)
+}
+
+// genesisCommand builds genesis-related `poktrolld genesis` command. Users may provide application specific commands as a parameter
+func genesisCommand(txConfig client.TxConfig, basicManager module.BasicManager, cmds ...*cobra.Command) *cobra.Command {
+ cmd := genutilcli.Commands(txConfig, basicManager, app.DefaultNodeHome)
+
+ for _, subCmd := range cmds {
+ cmd.AddCommand(subCmd)
+ }
+ return cmd
+}
+
+func queryCommand() *cobra.Command {
+ cmd := &cobra.Command{
+ Use: "query",
+ Aliases: []string{"q"},
+ Short: "Querying subcommands",
+ DisableFlagParsing: false,
+ SuggestionsMinimumDistance: 2,
+ RunE: client.ValidateCmd,
+ }
+
+ cmd.AddCommand(
+ rpc.QueryEventForTxCmd(),
+ rpc.ValidatorCommand(),
+ server.QueryBlockCmd(),
+ authcmd.QueryTxsByEventsCmd(),
+ server.QueryBlocksCmd(),
+ authcmd.QueryTxCmd(),
+ server.QueryBlockResultsCmd(),
+ )
+ cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID")
+
+ return cmd
+}
+
+func txCommand() *cobra.Command {
+ cmd := &cobra.Command{
+ Use: "tx",
+ Short: "Transactions subcommands",
+ DisableFlagParsing: false,
+ SuggestionsMinimumDistance: 2,
+ RunE: client.ValidateCmd,
+ }
+
+ cmd.AddCommand(
+ authcmd.GetSignCommand(),
+ authcmd.GetSignBatchCommand(),
+ authcmd.GetMultiSignCommand(),
+ authcmd.GetMultiSignBatchCmd(),
+ authcmd.GetValidateSignaturesCommand(),
+ flags.LineBreak,
+ authcmd.GetBroadcastCommand(),
+ authcmd.GetEncodeCommand(),
+ authcmd.GetDecodeCommand(),
+ authcmd.GetSimulateCmd(),
+ )
+ cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID")
+
+ return cmd
+}
+
+// newApp creates the application
+func newApp(
+ logger log.Logger,
+ db dbm.DB,
+ traceStore io.Writer,
+ appOpts servertypes.AppOptions,
+) servertypes.Application {
+ baseappOptions := server.DefaultBaseappOptions(appOpts)
+
+ app, err := app.New(
+ logger, db, traceStore, true,
+ appOpts,
+ baseappOptions...,
+ )
+ if err != nil {
+ panic(err)
+ }
+ return app
+}
+
+// appExport creates a new app (optionally at a given height) and exports state.
+func appExport(
+ logger log.Logger,
+ db dbm.DB,
+ traceStore io.Writer,
+ height int64,
+ forZeroHeight bool,
+ jailAllowedAddrs []string,
+ appOpts servertypes.AppOptions,
+ modulesToExport []string,
+) (servertypes.ExportedApp, error) {
+ var (
+ bApp *app.App
+ err error
+ )
+
+ // this check is necessary as we use the flag in x/upgrade.
+ // we can exit more gracefully by checking the flag here.
+ homePath, ok := appOpts.Get(flags.FlagHome).(string)
+ if !ok || homePath == "" {
+ return servertypes.ExportedApp{}, errors.New("application home not set")
+ }
+
+ viperAppOpts, ok := appOpts.(*viper.Viper)
+ if !ok {
+ return servertypes.ExportedApp{}, errors.New("appOpts is not viper.Viper")
+ }
+
+ // overwrite the FlagInvCheckPeriod
+ viperAppOpts.Set(server.FlagInvCheckPeriod, 1)
+ appOpts = viperAppOpts
+
+ if height != -1 {
+ bApp, err = app.New(logger, db, traceStore, false, appOpts)
+ if err != nil {
+ return servertypes.ExportedApp{}, err
+ }
+
+ if err := bApp.LoadHeight(height); err != nil {
+ return servertypes.ExportedApp{}, err
+ }
+ } else {
+ bApp, err = app.New(logger, db, traceStore, true, appOpts)
+ if err != nil {
+ return servertypes.ExportedApp{}, err
+ }
+ }
+
+ return bApp.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs, modulesToExport)
+}
diff --git a/cmd/poktrolld/cmd/config.go b/cmd/poktrolld/cmd/config.go
new file mode 100644
index 000000000..0041179d1
--- /dev/null
+++ b/cmd/poktrolld/cmd/config.go
@@ -0,0 +1,91 @@
+package cmd
+
+import (
+ "sync"
+
+ cmtcfg "github.com/cometbft/cometbft/config"
+ serverconfig "github.com/cosmos/cosmos-sdk/server/config"
+ sdk "github.com/cosmos/cosmos-sdk/types"
+
+ "github.com/pokt-network/poktroll/app"
+)
+
+var once sync.Once
+
+func InitSDKConfig() {
+ once.Do(func() {
+ initSDKConfig()
+ })
+}
+
+func initSDKConfig() {
+ // Set prefixes
+ accountPubKeyPrefix := app.AccountAddressPrefix + "pub"
+ validatorAddressPrefix := app.AccountAddressPrefix + "valoper"
+ validatorPubKeyPrefix := app.AccountAddressPrefix + "valoperpub"
+ consNodeAddressPrefix := app.AccountAddressPrefix + "valcons"
+ consNodePubKeyPrefix := app.AccountAddressPrefix + "valconspub"
+
+ // Set and seal config
+ config := sdk.GetConfig()
+ config.SetBech32PrefixForAccount(app.AccountAddressPrefix, accountPubKeyPrefix)
+ config.SetBech32PrefixForValidator(validatorAddressPrefix, validatorPubKeyPrefix)
+ config.SetBech32PrefixForConsensusNode(consNodeAddressPrefix, consNodePubKeyPrefix)
+ config.Seal()
+}
+
+// initCometBFTConfig helps to override default CometBFT Config values.
+// return cmtcfg.DefaultConfig if no custom configuration is required for the application.
+func initCometBFTConfig() *cmtcfg.Config {
+ cfg := cmtcfg.DefaultConfig()
+
+ // these values put a higher strain on node memory
+ // cfg.P2P.MaxNumInboundPeers = 100
+ // cfg.P2P.MaxNumOutboundPeers = 40
+
+ return cfg
+}
+
+// initAppConfig helps to override default appConfig template and configs.
+// return "", nil if no custom configuration is required for the application.
+func initAppConfig() (string, interface{}) {
+ // The following code snippet is just for reference.
+ type CustomAppConfig struct {
+ serverconfig.Config `mapstructure:",squash"`
+ }
+
+ // Optionally allow the chain developer to overwrite the SDK's default
+ // server config.
+ srvCfg := serverconfig.DefaultConfig()
+ // The SDK's default minimum gas price is set to "" (empty value) inside
+ // app.toml. If left empty by validators, the node will halt on startup.
+ // However, the chain developer can set a default app.toml value for their
+ // validators here.
+ //
+ // In summary:
+ // - if you leave srvCfg.MinGasPrices = "", all validators MUST tweak their
+ // own app.toml config,
+ // - if you set srvCfg.MinGasPrices non-empty, validators CAN tweak their
+ // own app.toml to override, or use this default value.
+ //
+ // In tests, we set the min gas prices to 0.
+ // srvCfg.MinGasPrices = "0stake"
+ // srvCfg.BaseConfig.IAVLDisableFastNode = true // disable fastnode by default
+
+ customAppConfig := CustomAppConfig{
+ Config: *srvCfg,
+ }
+
+ customAppTemplate := serverconfig.DefaultConfigTemplate
+ // Edit the default template file
+ //
+ // customAppTemplate := serverconfig.DefaultConfigTemplate + `
+ // [wasm]
+ // # This is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries
+ // query_gas_limit = 300000
+ // # This is the number of wasm vm instances we keep cached in memory for speed-up
+ // # Warning: this is currently unstable and may lead to crashes, best to keep for 0 unless testing locally
+ // lru_size = 0`
+
+ return customAppTemplate, customAppConfig
+}
diff --git a/cmd/poktrolld/cmd/root.go b/cmd/poktrolld/cmd/root.go
new file mode 100644
index 000000000..1bfbfd135
--- /dev/null
+++ b/cmd/poktrolld/cmd/root.go
@@ -0,0 +1,173 @@
+package cmd
+
+import (
+ "os"
+ "strings"
+
+ "cosmossdk.io/client/v2/autocli"
+ clientv2keyring "cosmossdk.io/client/v2/autocli/keyring"
+ "cosmossdk.io/core/address"
+ "cosmossdk.io/depinject"
+ "cosmossdk.io/log"
+ "github.com/cosmos/cosmos-sdk/client"
+ "github.com/cosmos/cosmos-sdk/client/config"
+ "github.com/cosmos/cosmos-sdk/client/flags"
+ "github.com/cosmos/cosmos-sdk/codec"
+ codectypes "github.com/cosmos/cosmos-sdk/codec/types"
+ "github.com/cosmos/cosmos-sdk/crypto/keyring"
+ "github.com/cosmos/cosmos-sdk/server"
+ "github.com/cosmos/cosmos-sdk/types/module"
+ "github.com/cosmos/cosmos-sdk/types/tx/signing"
+ "github.com/cosmos/cosmos-sdk/x/auth/tx"
+ txmodule "github.com/cosmos/cosmos-sdk/x/auth/tx/config"
+ "github.com/cosmos/cosmos-sdk/x/auth/types"
+ "github.com/spf13/cobra"
+ "github.com/spf13/pflag"
+
+ "github.com/pokt-network/poktroll/app"
+)
+
+// NewRootCmd creates a new root command for poktrolld. It is called once in the main function.
+func NewRootCmd() *cobra.Command {
+ InitSDKConfig()
+
+ var (
+ txConfigOpts tx.ConfigOptions
+ autoCliOpts autocli.AppOptions
+ moduleBasicManager module.BasicManager
+ clientCtx client.Context
+ )
+
+ if err := depinject.Inject(
+ depinject.Configs(app.AppConfig(),
+ depinject.Supply(
+ log.NewNopLogger(),
+ ),
+ depinject.Provide(
+ ProvideClientContext,
+ ProvideKeyring,
+ ),
+ ),
+ &txConfigOpts,
+ &autoCliOpts,
+ &moduleBasicManager,
+ &clientCtx,
+ ); err != nil {
+ panic(err)
+ }
+
+ rootCmd := &cobra.Command{
+ Use: app.Name + "d",
+ Short: "Start poktroll node",
+ SilenceErrors: true,
+ PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
+ // set the default command outputs
+ cmd.SetOut(cmd.OutOrStdout())
+ cmd.SetErr(cmd.ErrOrStderr())
+
+ clientCtx = clientCtx.WithCmdContext(cmd.Context())
+ clientCtx, err := client.ReadPersistentCommandFlags(clientCtx, cmd.Flags())
+ if err != nil {
+ return err
+ }
+
+ clientCtx, err = config.ReadFromClientConfig(clientCtx)
+ if err != nil {
+ return err
+ }
+
+ // This needs to go after ReadFromClientConfig, as that function
+ // sets the RPC client needed for SIGN_MODE_TEXTUAL.
+ txConfigOpts.EnabledSignModes = append(txConfigOpts.EnabledSignModes, signing.SignMode_SIGN_MODE_TEXTUAL)
+ txConfigOpts.TextualCoinMetadataQueryFn = txmodule.NewGRPCCoinMetadataQueryFn(clientCtx)
+ txConfigWithTextual, err := tx.NewTxConfigWithOptions(
+ codec.NewProtoCodec(clientCtx.InterfaceRegistry),
+ txConfigOpts,
+ )
+ if err != nil {
+ return err
+ }
+
+ clientCtx = clientCtx.WithTxConfig(txConfigWithTextual)
+ if err := client.SetCmdClientContextHandler(clientCtx, cmd); err != nil {
+ return err
+ }
+
+ if err := client.SetCmdClientContextHandler(clientCtx, cmd); err != nil {
+ return err
+ }
+
+ customAppTemplate, customAppConfig := initAppConfig()
+ customCMTConfig := initCometBFTConfig()
+
+ return server.InterceptConfigsPreRunHandler(cmd, customAppTemplate, customAppConfig, customCMTConfig)
+ },
+ }
+
+ // Since the IBC modules don't support dependency injection, we need to
+ // manually register the modules on the client side.
+ // This needs to be removed after IBC supports App Wiring.
+ ibcModules := app.RegisterIBC(clientCtx.InterfaceRegistry)
+ for name, module := range ibcModules {
+ autoCliOpts.Modules[name] = module
+ }
+ initRootCmd(rootCmd, clientCtx.TxConfig, clientCtx.InterfaceRegistry, clientCtx.Codec, moduleBasicManager)
+
+ overwriteFlagDefaults(rootCmd, map[string]string{
+ flags.FlagChainID: strings.ReplaceAll(app.Name, "-", ""),
+ flags.FlagKeyringBackend: "test",
+ })
+
+ if err := autoCliOpts.EnhanceRootCommand(rootCmd); err != nil {
+ panic(err)
+ }
+
+ return rootCmd
+}
+
+func overwriteFlagDefaults(c *cobra.Command, defaults map[string]string) {
+ set := func(s *pflag.FlagSet, key, val string) {
+ if f := s.Lookup(key); f != nil {
+ f.DefValue = val
+ f.Value.Set(val)
+ }
+ }
+ for key, val := range defaults {
+ set(c.Flags(), key, val)
+ set(c.PersistentFlags(), key, val)
+ }
+ for _, c := range c.Commands() {
+ overwriteFlagDefaults(c, defaults)
+ }
+}
+
+func ProvideClientContext(
+ appCodec codec.Codec,
+ interfaceRegistry codectypes.InterfaceRegistry,
+ txConfig client.TxConfig,
+ legacyAmino *codec.LegacyAmino,
+) client.Context {
+ clientCtx := client.Context{}.
+ WithCodec(appCodec).
+ WithInterfaceRegistry(interfaceRegistry).
+ WithTxConfig(txConfig).
+ WithLegacyAmino(legacyAmino).
+ WithInput(os.Stdin).
+ WithAccountRetriever(types.AccountRetriever{}).
+ WithHomeDir(app.DefaultNodeHome).
+ WithViper(app.Name) // env variable prefix
+
+ // Read the config again to overwrite the default values with the values from the config file
+ clientCtx, _ = config.ReadFromClientConfig(clientCtx)
+
+ return clientCtx
+}
+
+func ProvideKeyring(clientCtx client.Context, addressCodec address.Codec) (clientv2keyring.Keyring, error) {
+ kb, err := client.NewKeyringFromBackend(clientCtx, clientCtx.Keyring.Backend())
+ if err != nil {
+ return nil, err
+ }
+
+ return keyring.NewAutoCLIKeyring(kb)
+}
diff --git a/cmd/poktrolld/main.go b/cmd/poktrolld/main.go
new file mode 100644
index 000000000..c5aee5e20
--- /dev/null
+++ b/cmd/poktrolld/main.go
@@ -0,0 +1,19 @@
+package main
+
+import (
+ "fmt"
+ "os"
+
+ svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
+
+ "github.com/pokt-network/poktroll/app"
+ "github.com/pokt-network/poktroll/cmd/poktrolld/cmd"
+)
+
+func main() {
+ rootCmd := cmd.NewRootCmd()
+ if err := svrcmd.Execute(rootCmd, "", app.DefaultNodeHome); err != nil {
+ fmt.Fprintln(rootCmd.OutOrStderr(), err)
+ os.Exit(1)
+ }
+}
diff --git a/config.yml b/config.yml
index d55021f8f..7ba4164c1 100644
--- a/config.yml
+++ b/config.yml
@@ -1,6 +1,6 @@
version: 1
build:
- main: cmd/pocketd
+ main: cmd/poktrolld
accounts:
- name: faucet
mnemonic: "baby advance work soap slow exclude blur humble lucky rough teach wide chuckle captain rack laundry butter main very cannon donate armor dress follow"
diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml
index ee5879532..3dfa4ed44 100644
--- a/docs/static/openapi.yml
+++ b/docs/static/openapi.yml
@@ -4,204 +4,26 @@ info:
name: ''
description: ''
paths:
- /cosmos/auth/v1beta1/account_info/{address}:
- get:
- summary: AccountInfo queries account info which is common to all account types.
+ /cosmos.auth.v1beta1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a (governance) operation for updating the x/auth
+ module
+
+ parameters. The authority defaults to the x/gov module account.
description: 'Since: cosmos-sdk 0.47'
- operationId: CosmosAuthV1Beta1AccountInfo
+ operationId: CosmosAuthV1Beta1Msg_UpdateParams
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- info:
- description: info is the account info which is represented by BaseAccount.
- type: object
- properties:
- address:
- type: string
- pub_key:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- `value` which holds the custom JSON in addition to the
- `@type`
+ MsgUpdateParams message.
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- account_number:
- type: string
- format: uint64
- sequence:
- type: string
- format: uint64
- description: |-
- QueryAccountInfoResponse is the Query/AccountInfo response type.
Since: cosmos-sdk 0.47
default:
@@ -310,8 +132,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -321,7 +147,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -349,10 +175,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -390,32 +214,79 @@ paths:
"value": "1.212s"
}
parameters:
- - name: address
- description: address is the account address string.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/auth/v1beta1/accounts:
- get:
- summary: Accounts returns all the existing accounts.
- description: >-
- When called from another module, this query might consume a high amount
- of
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- gas if the pagination field is incorrectly set.
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: |-
+ params defines the x/auth parameters to update.
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ max_memo_characters:
+ type: string
+ format: uint64
+ tx_sig_limit:
+ type: string
+ format: uint64
+ tx_size_cost_per_byte:
+ type: string
+ format: uint64
+ sig_verify_cost_ed25519:
+ type: string
+ format: uint64
+ sig_verify_cost_secp256k1:
+ type: string
+ format: uint64
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- Since: cosmos-sdk 0.43
- operationId: CosmosAuthV1Beta1Accounts
+ Since: cosmos-sdk 0.47
+ tags:
+ - Msg
+ /cosmos.authz.v1beta1.Msg/Exec:
+ post:
+ summary: |-
+ Exec attempts to execute the provided messages using
+ authorizations granted to the grantee. Each message should have only
+ one signer corresponding to the granter of the authorization.
+ operationId: CosmosAuthzV1Beta1Msg_Exec
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- accounts:
+ results:
+ type: array
+ items:
+ type: string
+ format: byte
+ description: MsgExecResponse defines the Msg/MsgExecResponse response type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
type: array
items:
type: object
@@ -511,8 +382,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -522,7 +397,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -550,10 +425,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -590,43 +463,20 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- title: accounts are the existing accounts
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryAccountsResponse is the response type for the Query/Accounts
- RPC method.
-
-
- Since: cosmos-sdk 0.43
- default:
- description: An unexpected error response.
+ parameters:
+ - name: body
+ description: |-
+ MsgExec attempts to execute the provided messages using
+ authorizations granted to the grantee. Each message should have only
+ one signer corresponding to the granter of the authorization.
+ in: body
+ required: true
schema:
type: object
properties:
- code:
- type: integer
- format: int32
- message:
+ grantee:
type: string
- details:
+ msgs:
type: array
items:
type: object
@@ -722,8 +572,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -733,7 +587,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -761,10 +615,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -801,247 +653,36 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
+ description: >-
+ Execute Msg.
- count_total is only respected when offset is used. It is ignored
- when key
+ The x/authz will try to find a grant matching (msg.signers[0],
+ grantee, MsgTypeURL(msg))
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ triple and validate it.
+ description: >-
+ MsgExec attempts to execute the provided messages using
+ authorizations granted to the grantee. Each message should have
+ only
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ one signer corresponding to the granter of the authorization.
tags:
- - Query
- /cosmos/auth/v1beta1/accounts/{address}:
- get:
- summary: Account returns account details based on address.
- operationId: CosmosAuthV1Beta1Account
+ - Msg
+ /cosmos.authz.v1beta1.Msg/Grant:
+ post:
+ summary: |-
+ Grant grants the provided authorization to the grantee on the granter's
+ account with the provided expiration time. If there is already a grant
+ for the given (granter, grantee, Authorization) triple, then the grant
+ will be overwritten.
+ operationId: CosmosAuthzV1Beta1Msg_Grant
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- account:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all
- types that they
-
- expect it to use in the context of Any. However, for URLs
- which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in
- the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default
- use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last
- '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- QueryAccountResponse is the response type for the Query/Account
- RPC method.
+ description: MsgGrantResponse defines the Msg/MsgGrant response type.
default:
description: An unexpected error response.
schema:
@@ -1148,8 +789,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -1159,7 +804,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -1187,10 +832,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -1228,257 +871,234 @@ paths:
"value": "1.212s"
}
parameters:
- - name: address
- description: address defines the address to query for.
- in: path
+ - name: body
+ description: >-
+ MsgGrant is a request type for Grant method. It declares
+ authorization to the grantee
+
+ on behalf of the granter with the provided expiration time.
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/auth/v1beta1/address_by_id/{id}:
- get:
- summary: AccountAddressByID returns account address based on account number.
- description: 'Since: cosmos-sdk 0.46.2'
- operationId: CosmosAuthV1Beta1AccountAddressByID
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- account_address:
+ granter:
type: string
- description: 'Since: cosmos-sdk 0.46.2'
- title: >-
- QueryAccountAddressByIDResponse is the response type for
- AccountAddressByID rpc method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
+ grantee:
type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ grant:
+ type: object
+ properties:
+ authorization:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type
+ of the serialized
- protocol buffer message. This string must contain at
- least
+ protocol buffer message. This string must contain at
+ least
- one "/" character. The last segment of the URL's path
- must represent
+ one "/" character. The last segment of the URL's path
+ must represent
- the fully qualified name of the type (as in
+ the fully qualified name of the type (as in
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
- (e.g., leading "." is not accepted).
+ (e.g., leading "." is not accepted).
- In practice, teams usually precompile into the binary
- all types that they
+ In practice, teams usually precompile into the binary
+ all types that they
- expect it to use in the context of Any. However, for
- URLs which use the
+ expect it to use in the context of Any. However, for
+ URLs which use the
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
- server that maps type URLs to message definitions as
- follows:
+ server that maps type URLs to message definitions as
+ follows:
- * If no scheme is provided, `https` is assumed.
+ * If no scheme is provided, `https` is assumed.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- Note: this functionality is not currently available in
- the official
+ Note: this functionality is not currently available in
+ the official
- protobuf release, and it is not used for type URLs
- beginning with
+ protobuf release, and it is not used for type URLs
+ beginning with
- type.googleapis.com.
+ type.googleapis.com.
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
- URL that describes the type of the serialized message.
+ URL that describes the type of the serialized message.
- Protobuf library provides support to pack/unpack Any values
- in the form
+ Protobuf library provides support to pack/unpack Any
+ values in the form
- of utility functions or additional generated methods of the
- Any type.
+ of utility functions or additional generated methods of
+ the Any type.
- Example 1: Pack and unpack a message in C++.
+ Example 1: Pack and unpack a message in C++.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
...
- }
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- Example 2: Pack and unpack a message in Java.
+ Example 2: Pack and unpack a message in Java.
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
...
- }
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- The pack methods provided by protobuf library will by
- default use
+ The pack methods provided by protobuf library will by
+ default use
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ 'type.googleapis.com/full.type.name' as the type URL and
+ the unpack
- methods only use the fully qualified type name after the
- last '/'
+ methods only use the fully qualified type name after the
+ last '/'
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ in the type URL, for example "foo.bar.com/x/y.z" will
+ yield type
- name "y.z".
+ name "y.z".
+ JSON
- JSON
- ====
+ The JSON representation of an `Any` value uses the regular
- The JSON representation of an `Any` value uses the regular
+ representation of the deserialized, embedded message, with
+ an
- representation of the deserialized, embedded message, with
- an
+ additional field `@type` which contains the type URL.
+ Example:
- additional field `@type` which contains the type URL.
- Example:
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ If the embedded message type is well-known and has a
+ custom JSON
- If the embedded message type is well-known and has a custom
- JSON
+ representation, that representation will be embedded
+ adding a field
- representation, that representation will be embedded adding
- a field
+ `value` which holds the custom JSON in addition to the
+ `@type`
- `value` which holds the custom JSON in addition to the
- `@type`
+ field. Example (for message [google.protobuf.Duration][]):
- field. Example (for message [google.protobuf.Duration][]):
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ expiration:
+ type: string
+ format: date-time
+ title: >-
+ time when the grant will expire and will be pruned. If
+ null, then the grant
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: id
- description: |-
- Deprecated, use account_id instead
+ doesn't have a time expiration (other conditions in
+ `authorization`
- id is the account number of the address to be queried. This field
- should have been an uint64 (like all account numbers), and will be
- updated to uint64 in a future version of the auth query.
- in: path
- required: true
- type: string
- format: int64
- - name: account_id
- description: |-
- account_id is the account number of the address to be queried.
+ may apply to invalidate the grant)
+ description: |-
+ Grant gives permissions to execute
+ the provide method with expiration time.
+ description: >-
+ MsgGrant is a request type for Grant method. It declares
+ authorization to the grantee
- Since: cosmos-sdk 0.47
- in: query
- required: false
- type: string
- format: uint64
+ on behalf of the granter with the provided expiration time.
tags:
- - Query
- /cosmos/auth/v1beta1/bech32:
- get:
- summary: Bech32Prefix queries bech32Prefix
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosAuthV1Beta1Bech32Prefix
+ - Msg
+ /cosmos.authz.v1beta1.Msg/Revoke:
+ post:
+ summary: >-
+ Revoke revokes any authorization corresponding to the provided method
+ name on the
+
+ granter's account that has been granted to the grantee.
+ operationId: CosmosAuthzV1Beta1Msg_Revoke
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- bech32_prefix:
- type: string
- description: >-
- Bech32PrefixResponse is the response type for Bech32Prefix rpc
- method.
-
-
- Since: cosmos-sdk 0.46
+ description: MsgRevokeResponse defines the Msg/MsgRevokeResponse response type.
default:
description: An unexpected error response.
schema:
@@ -1585,8 +1205,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -1596,7 +1220,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -1624,10 +1248,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -1664,27 +1286,43 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- tags:
- - Query
- /cosmos/auth/v1beta1/bech32/{address_bytes}:
- get:
- summary: AddressBytesToString converts Account Address bytes to string
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosAuthV1Beta1AddressBytesToString
- responses:
- '200':
- description: A successful response.
+ parameters:
+ - name: body
+ description: >-
+ MsgRevoke revokes any authorization with the provided sdk.Msg type
+ on the
+
+ granter's account with that has been granted to the grantee.
+ in: body
+ required: true
schema:
type: object
properties:
- address_string:
+ granter:
+ type: string
+ grantee:
+ type: string
+ msg_type_url:
type: string
description: >-
- AddressBytesToStringResponse is the response type for
- AddressString rpc method.
+ MsgRevoke revokes any authorization with the provided sdk.Msg type
+ on the
-
- Since: cosmos-sdk 0.46
+ granter's account with that has been granted to the grantee.
+ tags:
+ - Msg
+ /cosmos.bank.v1beta1.Msg/MultiSend:
+ post:
+ summary: >-
+ MultiSend defines a method for sending coins from some accounts to other
+ accounts.
+ operationId: CosmosBankV1Beta1Msg_MultiSend
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: MsgMultiSendResponse defines the Msg/MultiSend response type.
default:
description: An unexpected error response.
schema:
@@ -1702,202 +1340,414 @@ paths:
properties:
'@type':
type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: >-
+ MsgMultiSend represents an arbitrary multi-in, multi-out send
+ message.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ inputs:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ coins:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an
+ amount.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
- Note: this functionality is not currently available in
- the official
+ NOTE: The amount field is an Int which implements the
+ custom method
- protobuf release, and it is not used for type URLs
- beginning with
+ signatures required by gogoproto.
+ description: Input models transaction input.
+ description: >-
+ Inputs, despite being `repeated`, only allows one sender
+ input. This is
- type.googleapis.com.
+ checked in MsgMultiSend's ValidateBasic.
+ outputs:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ coins:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an
+ amount.
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ NOTE: The amount field is an Int which implements the
+ custom method
- used with implementation specific semantics.
+ signatures required by gogoproto.
+ description: Output models transaction outputs.
+ description: >-
+ MsgMultiSend represents an arbitrary multi-in, multi-out send
+ message.
+ tags:
+ - Msg
+ /cosmos.bank.v1beta1.Msg/Send:
+ post:
+ summary: >-
+ Send defines a method for sending coins from one account to another
+ account.
+ operationId: CosmosBankV1Beta1Msg_Send
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: MsgSendResponse defines the Msg/Send response type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
additionalProperties: {}
+ parameters:
+ - name: body
+ description: >-
+ MsgSend represents a message to send coins from one account to
+ another.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ from_address:
+ type: string
+ to_address:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
+ Coin defines a token with a denomination and an amount.
- Example 1: Pack and unpack a message in C++.
+ NOTE: The amount field is an Int which implements the custom
+ method
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ signatures required by gogoproto.
+ description: >-
+ MsgSend represents a message to send coins from one account to
+ another.
+ tags:
+ - Msg
+ /cosmos.bank.v1beta1.Msg/SetSendEnabled:
+ post:
+ summary: >-
+ SetSendEnabled is a governance operation for setting the SendEnabled
+ flag
- Example 2: Pack and unpack a message in Java.
+ on any number of Denoms. Only the entries to add or update should be
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ included. Entries that already exist in the store, but that aren't
- Example 3: Pack and unpack a message in Python.
+ included in this message, will be left unchanged.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosBankV1Beta1Msg_SetSendEnabled
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response
+ type.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
- Example 4: Pack and unpack a message in Go
+ Since: cosmos-sdk 0.47
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: |-
+ MsgSetSendEnabled is the Msg/SetSendEnabled request type.
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Only entries to add/update/delete need to be included.
+ Existing SendEnabled entries that are not included in this
+ message are left unchanged.
- The pack methods provided by protobuf library will by
- default use
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: authority is the address that controls the module.
+ send_enabled:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
+ description: >-
+ SendEnabled maps coin denom to a send_enabled status
+ (whether a denom is
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ sendable).
+ description: send_enabled is the list of entries to add or update.
+ use_default_for:
+ type: array
+ items:
+ type: string
+ description: >-
+ use_default_for is a list of denoms that should use the
+ params.default_send_enabled value.
- methods only use the fully qualified type name after the
- last '/'
+ Denoms listed here will have their SendEnabled entries
+ deleted.
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ If a denom is included that doesn't have a SendEnabled entry,
- name "y.z".
+ it will be ignored.
+ description: |-
+ MsgSetSendEnabled is the Msg/SetSendEnabled request type.
+ Only entries to add/update/delete need to be included.
+ Existing SendEnabled entries that are not included in this
+ message are left unchanged.
+ Since: cosmos-sdk 0.47
+ tags:
+ - Msg
+ /cosmos.bank.v1beta1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a governance operation for updating the x/bank
+ module parameters.
- JSON
+ The authority is defined in the keeper.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosBankV1Beta1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- ====
+ MsgUpdateParams message.
- The JSON representation of an `Any` value uses the regular
- representation of the deserialized, embedded message, with
- an
+ Since: cosmos-sdk 0.47
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- additional field `@type` which contains the type URL.
- Example:
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: |-
+ params defines the x/bank parameters to update.
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ send_enabled:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
+ description: >-
+ SendEnabled maps coin denom to a send_enabled status
+ (whether a denom is
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ sendable).
+ description: >-
+ Deprecated: Use of SendEnabled in params is deprecated.
- If the embedded message type is well-known and has a custom
- JSON
+ For genesis, use the newly added send_enabled field in the
+ genesis object.
- representation, that representation will be embedded adding
- a field
+ Storage, lookup, and manipulation of this information is
+ now in the keeper.
- `value` which holds the custom JSON in addition to the
- `@type`
- field. Example (for message [google.protobuf.Duration][]):
+ As of cosmos-sdk 0.47, this only exists for backwards
+ compatibility of genesis files.
+ default_send_enabled:
+ type: boolean
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: address_bytes
- in: path
- required: true
- type: string
- format: byte
+ Since: cosmos-sdk 0.47
tags:
- - Query
- /cosmos/auth/v1beta1/bech32/{address_string}:
+ - Msg
+ /cosmos/base/node/v1beta1/config:
get:
- summary: AddressStringToBytes converts Address string to bytes
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosAuthV1Beta1AddressStringToBytes
+ summary: Config queries for the operator configuration.
+ operationId: CosmosBaseNodeV1Beta1Service_Config
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ minimum_gas_price:
+ type: string
+ pruning_keep_recent:
+ type: string
+ title: pruning settings
+ pruning_interval:
+ type: string
+ description: >-
+ ConfigResponse defines the response structure for the Config gRPC
+ query.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ tags:
+ - Service
+ /cosmos/base/node/v1beta1/status:
+ get:
+ summary: Status queries for the node status.
+ operationId: CosmosBaseNodeV1Beta1Service_Status
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- address_bytes:
+ earliest_store_height:
+ type: string
+ format: uint64
+ title: earliest block height available in the store
+ height:
+ type: string
+ format: uint64
+ title: current block height
+ timestamp:
+ type: string
+ format: date-time
+ title: block height timestamp
+ app_hash:
type: string
format: byte
+ title: app hash of the current block
+ validator_hash:
+ type: string
+ format: byte
+ title: validator hash provided by the consensus header
description: >-
- AddressStringToBytesResponse is the response type for AddressBytes
- rpc method.
-
-
- Since: cosmos-sdk 0.46
+ StateResponse defines the response structure for the status of a
+ node.
default:
description: An unexpected error response.
schema:
@@ -1915,373 +1765,492 @@ paths:
properties:
'@type':
type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ additionalProperties: {}
+ tags:
+ - Service
+ /cosmos.consensus.v1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a governance operation for updating the x/consensus
+ module parameters.
- protocol buffer message. This string must contain at
- least
+ The authority is defined in the keeper.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosConsensusV1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- one "/" character. The last segment of the URL's path
- must represent
+ MsgUpdateParams message.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ block:
+ description: >-
+ params defines the x/consensus parameters to update.
- the fully qualified name of the type (as in
+ VersionsParams is not included in this Msg because it is
+ tracked
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ separarately in x/upgrade.
- (e.g., leading "." is not accepted).
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ max_bytes:
+ type: string
+ format: int64
+ title: |-
+ Max block size, in bytes.
+ Note: must be greater than 0
+ max_gas:
+ type: string
+ format: int64
+ title: |-
+ Max gas per block.
+ Note: must be greater or equal to -1
+ evidence:
+ type: object
+ properties:
+ max_age_num_blocks:
+ type: string
+ format: int64
+ description: >-
+ Max age of evidence, in blocks.
- In practice, teams usually precompile into the binary
- all types that they
- expect it to use in the context of Any. However, for
- URLs which use the
+ The basic formula for calculating this is: MaxAgeDuration
+ / {average block
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ time}.
+ max_age_duration:
+ type: string
+ description: >-
+ Max age of evidence, in time.
- server that maps type URLs to message definitions as
- follows:
+ It should correspond with an app's "unbonding period" or
+ other similar
- * If no scheme is provided, `https` is assumed.
+ mechanism for handling [Nothing-At-Stake
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
+ max_bytes:
+ type: string
+ format: int64
+ title: >-
+ This sets the maximum size of total evidence in bytes that
+ can be committed in a single block.
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
+ and should fall comfortably under the max block bytes.
+ Default is 1048576 or 1MB
+ description: >-
+ EvidenceParams determine how we handle evidence of
+ malfeasance.
+ validator:
+ type: object
+ properties:
+ pub_key_types:
+ type: array
+ items:
+ type: string
+ description: >-
+ ValidatorParams restrict the public key types validators can
+ use.
+ NOTE: uses ABCI pubkey naming, not Amino names.
+ abci:
+ title: 'Since: cosmos-sdk 0.50'
+ type: object
+ properties:
+ vote_extensions_enable_height:
+ type: string
+ format: int64
+ description: >-
+ vote_extensions_enable_height configures the first height
+ during which
- JSON
+ vote extensions will be enabled. During this specified
+ height, and for all
- ====
+ subsequent heights, precommit messages that do not contain
+ valid extension data
- The JSON representation of an `Any` value uses the regular
+ will be considered invalid. Prior to this height, vote
+ extensions will not
- representation of the deserialized, embedded message, with
- an
+ be used or accepted by validators on the network.
- additional field `@type` which contains the type URL.
- Example:
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ Once enabled, vote extensions will be created by the
+ application in ExtendVote,
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ passed to the application for validation in
+ VerifyVoteExtension and given
- If the embedded message type is well-known and has a custom
- JSON
+ to the application to use when proposing a block during
+ PrepareProposal.
+ description: >-
+ ABCIParams configure functionality specific to the Application
+ Blockchain Interface.
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ tags:
+ - Msg
+ /cosmos.crisis.v1beta1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a governance operation for updating the x/crisis
+ module
- representation, that representation will be embedded adding
- a field
+ parameters. The authority is defined in the keeper.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosCrisisV1Beta1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- `value` which holds the custom JSON in addition to the
- `@type`
+ MsgUpdateParams message.
- field. Example (for message [google.protobuf.Duration][]):
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
+ Since: cosmos-sdk 0.47
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
parameters:
- - name: address_string
- in: path
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ in: body
required: true
- type: string
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ constant_fee:
+ description: constant_fee defines the x/crisis parameter.
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
tags:
- - Query
- /cosmos/auth/v1beta1/module_accounts:
- get:
- summary: ModuleAccounts returns all the existing module accounts.
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosAuthV1Beta1ModuleAccounts
+ - Msg
+ /cosmos.crisis.v1beta1.Msg/VerifyInvariant:
+ post:
+ summary: VerifyInvariant defines a method to verify a particular invariant.
+ operationId: CosmosCrisisV1Beta1Msg_VerifyInvariant
responses:
'200':
description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgVerifyInvariantResponse defines the Msg/VerifyInvariant
+ response type.
+ default:
+ description: An unexpected error response.
schema:
type: object
properties:
- accounts:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
type: array
items:
type: object
properties:
'@type':
type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
+ parameters:
+ - name: body
+ description: >-
+ MsgVerifyInvariant represents a message to verify a particular
+ invariance.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ sender:
+ type: string
+ description: >-
+ sender is the account address of private key to send coins to
+ fee collector account.
+ invariant_module_name:
+ type: string
+ description: name of the invariant module.
+ invariant_route:
+ type: string
+ description: invariant_route is the msg's invariant route.
+ description: >-
+ MsgVerifyInvariant represents a message to verify a particular
+ invariance.
+ tags:
+ - Msg
+ /cosmos.distribution.v1beta1.Msg/CommunityPoolSpend:
+ post:
+ summary: >-
+ CommunityPoolSpend defines a governance operation for sending tokens
+ from
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ the community pool in the x/distribution module to another account,
+ which
- Example 2: Pack and unpack a message in Java.
+ could be the governance module itself. The authority is defined in the
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ keeper.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosDistributionV1Beta1Msg_CommunityPoolSpend
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: |-
+ MsgCommunityPoolSpendResponse defines the response to executing a
+ MsgCommunityPoolSpend message.
- Example 3: Pack and unpack a message in Python.
+ Since: cosmos-sdk 0.47
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: >-
+ MsgCommunityPoolSpend defines a message for sending tokens from the
+ community
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ pool to another account. This message is typically executed via a
+ governance
- Example 4: Pack and unpack a message in Go
+ proposal with the governance module being the executing authority.
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
- The pack methods provided by protobuf library will by
- default use
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ recipient:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
- methods only use the fully qualified type name after the
- last '/'
+ NOTE: The amount field is an Int which implements the custom
+ method
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ signatures required by gogoproto.
+ description: >-
+ MsgCommunityPoolSpend defines a message for sending tokens from
+ the community
- name "y.z".
+ pool to another account. This message is typically executed via a
+ governance
+ proposal with the governance module being the executing authority.
- JSON
+ Since: cosmos-sdk 0.47
+ tags:
+ - Msg
+ /cosmos.distribution.v1beta1.Msg/DepositValidatorRewardsPool:
+ post:
+ summary: >-
+ DepositValidatorRewardsPool defines a method to provide additional
+ rewards
- ====
+ to delegators to a specific validator.
+ description: 'Since: cosmos-sdk 0.50'
+ operationId: CosmosDistributionV1Beta1Msg_DepositValidatorRewardsPool
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgDepositValidatorRewardsPoolResponse defines the response to
+ executing a
- The JSON representation of an `Any` value uses the regular
+ MsgDepositValidatorRewardsPool message.
- representation of the deserialized, embedded message, with
- an
- additional field `@type` which contains the type URL.
- Example:
+ Since: cosmos-sdk 0.50
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: |-
+ DepositValidatorRewardsPool defines the request structure to provide
+ additional rewards to delegators from a specific validator.
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ Since: cosmos-sdk 0.50
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ depositor:
+ type: string
+ validator_address:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
- If the embedded message type is well-known and has a custom
- JSON
+ NOTE: The amount field is an Int which implements the custom
+ method
- representation, that representation will be embedded adding
- a field
+ signatures required by gogoproto.
+ description: >-
+ DepositValidatorRewardsPool defines the request structure to
+ provide
- `value` which holds the custom JSON in addition to the
- `@type`
+ additional rewards to delegators from a specific validator.
- field. Example (for message [google.protobuf.Duration][]):
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
+ Since: cosmos-sdk 0.50
+ tags:
+ - Msg
+ /cosmos.distribution.v1beta1.Msg/FundCommunityPool:
+ post:
+ summary: |-
+ FundCommunityPool defines a method to allow an account to directly
+ fund the community pool.
+ operationId: CosmosDistributionV1Beta1Msg_FundCommunityPool
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
description: >-
- QueryModuleAccountsResponse is the response type for the
- Query/ModuleAccounts RPC method.
-
-
- Since: cosmos-sdk 0.46
+ MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool
+ response type.
default:
description: An unexpected error response.
schema:
@@ -2299,40 +2268,403 @@ paths:
properties:
'@type':
type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: |-
+ MsgFundCommunityPool allows an account to directly
+ fund the community pool.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- server that maps type URLs to message definitions as
- follows:
+ NOTE: The amount field is an Int which implements the custom
+ method
- * If no scheme is provided, `https` is assumed.
+ signatures required by gogoproto.
+ depositor:
+ type: string
+ description: |-
+ MsgFundCommunityPool allows an account to directly
+ fund the community pool.
+ tags:
+ - Msg
+ /cosmos.distribution.v1beta1.Msg/SetWithdrawAddress:
+ post:
+ summary: |-
+ SetWithdrawAddress defines a method to change the withdraw address
+ for a delegator (or validator self-delegation).
+ operationId: CosmosDistributionV1Beta1Msg_SetWithdrawAddress
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress
+ response
- * An HTTP GET on the URL must yield a
+ type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: |-
+ MsgSetWithdrawAddress sets the withdraw address for
+ a delegator (or validator self-delegation).
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ withdraw_address:
+ type: string
+ description: |-
+ MsgSetWithdrawAddress sets the withdraw address for
+ a delegator (or validator self-delegation).
+ tags:
+ - Msg
+ /cosmos.distribution.v1beta1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a governance operation for updating the
+ x/distribution
+
+ module parameters. The authority is defined in the keeper.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosDistributionV1Beta1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
+
+ MsgUpdateParams message.
+
+
+ Since: cosmos-sdk 0.47
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: |-
+ params defines the x/distribution parameters to update.
+
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ community_tax:
+ type: string
+ base_proposer_reward:
+ type: string
+ description: >-
+ Deprecated: The base_proposer_reward field is deprecated
+ and is no longer used
+
+ in the x/distribution module's reward mechanism.
+ bonus_proposer_reward:
+ type: string
+ description: >-
+ Deprecated: The bonus_proposer_reward field is deprecated
+ and is no longer used
+
+ in the x/distribution module's reward mechanism.
+ withdraw_addr_enabled:
+ type: boolean
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ tags:
+ - Msg
+ /cosmos.distribution.v1beta1.Msg/WithdrawDelegatorReward:
+ post:
+ summary: >-
+ WithdrawDelegatorReward defines a method to withdraw rewards of
+ delegator
+
+ from a single validator.
+ operationId: CosmosDistributionV1Beta1Msg_WithdrawDelegatorReward
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ title: 'Since: cosmos-sdk 0.46'
+ description: >-
+ MsgWithdrawDelegatorRewardResponse defines the
+ Msg/WithdrawDelegatorReward
+
+ response type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: >-
+ MsgWithdrawDelegatorReward represents delegation withdrawal to a
+ delegator
+
+ from a single validator.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ validator_address:
+ type: string
+ description: >-
+ MsgWithdrawDelegatorReward represents delegation withdrawal to a
+ delegator
+
+ from a single validator.
+ tags:
+ - Msg
+ /cosmos.distribution.v1beta1.Msg/WithdrawValidatorCommission:
+ post:
+ summary: |-
+ WithdrawValidatorCommission defines a method to withdraw the
+ full commission to the validator address.
+ operationId: CosmosDistributionV1Beta1Msg_WithdrawValidatorCommission
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ title: 'Since: cosmos-sdk 0.46'
+ description: |-
+ MsgWithdrawValidatorCommissionResponse defines the
+ Msg/WithdrawValidatorCommission response type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ description: >-
+ MsgWithdrawValidatorCommission withdraws the full commission to the
+ validator
+
+ address.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ validator_address:
+ type: string
+ description: >-
+ MsgWithdrawValidatorCommission withdraws the full commission to
+ the validator
+
+ address.
+ tags:
+ - Msg
+ /cosmos.evidence.v1beta1.Msg/SubmitEvidence:
+ post:
+ summary: >-
+ SubmitEvidence submits an arbitrary Evidence of misbehavior such as
+ equivocation or
+
+ counterfactual signing.
+ operationId: CosmosEvidenceV1Beta1Msg_SubmitEvidence
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ description: hash defines the hash of the evidence.
+ description: >-
+ MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response
+ type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
[google.protobuf.Type][]
value in binary format, or produce an error.
* Applications are allowed to cache lookup results based
@@ -2388,8 +2720,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -2399,7 +2735,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -2427,10 +2763,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -2467,19 +2801,24 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- tags:
- - Query
- /cosmos/auth/v1beta1/module_accounts/{name}:
- get:
- summary: ModuleAccountByName returns the module account info by module name
- operationId: CosmosAuthV1Beta1ModuleAccountByName
- responses:
- '200':
- description: A successful response.
+ parameters:
+ - name: body
+ description: >-
+ MsgSubmitEvidence represents a message that supports submitting
+ arbitrary
+
+ Evidence of misbehavior such as equivocation or counterfactual
+ signing.
+ in: body
+ required: true
schema:
type: object
properties:
- account:
+ submitter:
+ type: string
+ description: submitter is the signer account address of evidence.
+ evidence:
+ description: evidence defines the evidence of misbehavior.
type: object
properties:
'@type':
@@ -2540,117 +2879,28 @@ paths:
used with implementation specific semantics.
additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in
- the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default
- use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last
- '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
+ description: >-
+ MsgSubmitEvidence represents a message that supports submitting
+ arbitrary
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
+ Evidence of misbehavior such as equivocation or counterfactual
+ signing.
+ tags:
+ - Msg
+ /cosmos.feegrant.v1beta1.Msg/GrantAllowance:
+ post:
+ summary: |-
+ GrantAllowance grants fee allowance to the grantee on the granter's
+ account with the provided expiration time.
+ operationId: CosmosFeegrantV1Beta1Msg_GrantAllowance
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
description: >-
- QueryModuleAccountByNameResponse is the response type for the
- Query/ModuleAccountByName RPC method.
+ MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse
+ response type.
default:
description: An unexpected error response.
schema:
@@ -2757,8 +3007,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -2768,7 +3022,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -2796,10 +3050,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -2837,93 +3089,165 @@ paths:
"value": "1.212s"
}
parameters:
- - name: name
- in: path
+ - name: body
+ description: >-
+ MsgGrantAllowance adds permission for Grantee to spend up to
+ Allowance
+
+ of fees from the account of Granter.
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/auth/v1beta1/params:
- get:
- summary: Params queries all parameters.
- operationId: CosmosAuthV1Beta1Params
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- params:
- description: params defines the parameters of the module.
+ granter:
+ type: string
+ description: >-
+ granter is the address of the user granting an allowance of
+ their funds.
+ grantee:
+ type: string
+ description: >-
+ grantee is the address of the user being granted an allowance
+ of another user's funds.
+ allowance:
+ description: >-
+ allowance can be any of basic, periodic, allowed fee
+ allowance.
type: object
properties:
- max_memo_characters:
- type: string
- format: uint64
- tx_sig_limit:
- type: string
- format: uint64
- tx_size_cost_per_byte:
- type: string
- format: uint64
- sig_verify_cost_ed25519:
- type: string
- format: uint64
- sig_verify_cost_secp256k1:
+ '@type':
type: string
- format: uint64
- description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- protocol buffer message. This string must contain at
- least
+ protocol buffer message. This string must contain at least
- one "/" character. The last segment of the URL's path
- must represent
+ one "/" character. The last segment of the URL's path must
+ represent
- the fully qualified name of the type (as in
+ the fully qualified name of the type (as in
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- (e.g., leading "." is not accepted).
+ (e.g., leading "." is not accepted).
- In practice, teams usually precompile into the binary
- all types that they
+ In practice, teams usually precompile into the binary all
+ types that they
- expect it to use in the context of Any. However, for
- URLs which use the
+ expect it to use in the context of Any. However, for URLs
+ which use the
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- server that maps type URLs to message definitions as
- follows:
+ server that maps type URLs to message definitions as
+ follows:
- * If no scheme is provided, `https` is assumed.
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ MsgGrantAllowance adds permission for Grantee to spend up to
+ Allowance
+
+ of fees from the account of Granter.
+ tags:
+ - Msg
+ /cosmos.feegrant.v1beta1.Msg/PruneAllowances:
+ post:
+ summary: >-
+ PruneAllowances prunes expired fee allowances, currently up to 75 at a
+ time.
+ description: Since cosmos-sdk 0.50
+ operationId: CosmosFeegrantV1Beta1Msg_PruneAllowances
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse
+ response type.
+
+
+ Since cosmos-sdk 0.50
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
* An HTTP GET on the URL must yield a
[google.protobuf.Type][]
@@ -2981,8 +3305,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -2992,7 +3320,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -3020,10 +3348,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -3060,237 +3386,40 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
+ parameters:
+ - name: body
+ description: |-
+ MsgPruneAllowances prunes expired fee allowances.
+
+ Since cosmos-sdk 0.50
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ pruner:
+ type: string
+ description: pruner is the address of the user pruning expired allowances.
+ description: |-
+ MsgPruneAllowances prunes expired fee allowances.
+
+ Since cosmos-sdk 0.50
tags:
- - Query
- /cosmos/authz/v1beta1/grants:
- get:
- summary: Returns list of `Authorization`, granted to the grantee by the granter.
- operationId: CosmosAuthzV1Beta1Grants
+ - Msg
+ /cosmos.feegrant.v1beta1.Msg/RevokeAllowance:
+ post:
+ summary: |-
+ RevokeAllowance revokes any fee allowance of granter's account that
+ has been granted to the grantee.
+ operationId: CosmosFeegrantV1Beta1Msg_RevokeAllowance
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- grants:
- type: array
- items:
- type: object
- properties:
- authorization:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message
- [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- expiration:
- type: string
- format: date-time
- title: >-
- time when the grant will expire and will be pruned. If
- null, then the grant
-
- doesn't have a time expiration (other conditions in
- `authorization`
-
- may apply to invalidate the grant)
- description: |-
- Grant gives permissions to execute
- the provide method with expiration time.
- description: >-
- authorizations is a list of grants granted for grantee by
- granter.
- pagination:
- description: pagination defines an pagination for the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
description: >-
- QueryGrantsResponse is the response type for the
- Query/Authorizations RPC method.
+ MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse
+ response type.
default:
description: An unexpected error response.
schema:
@@ -3397,8 +3526,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -3408,7 +3541,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -3436,10 +3569,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -3477,305 +3608,63 @@ paths:
"value": "1.212s"
}
parameters:
- - name: granter
- in: query
- required: false
- type: string
- - name: grantee
- in: query
- required: false
- type: string
- - name: msg_type_url
- description: >-
- Optional, msg_type_url, when set, will query only grants matching
- given msg type.
- in: query
- required: false
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
+ - name: body
description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ MsgRevokeAllowance removes any existing Allowance from Granter to
+ Grantee.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ granter:
+ type: string
+ description: >-
+ granter is the address of the user granting an allowance of
+ their funds.
+ grantee:
+ type: string
+ description: >-
+ grantee is the address of the user being granted an allowance
+ of another user's funds.
+ description: >-
+ MsgRevokeAllowance removes any existing Allowance from Granter to
+ Grantee.
tags:
- - Query
- /cosmos/authz/v1beta1/grants/grantee/{grantee}:
- get:
- summary: GranteeGrants returns a list of `GrantAuthorization` by grantee.
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosAuthzV1Beta1GranteeGrants
+ - Msg
+ /cosmos.gov.v1.Msg/CancelProposal:
+ post:
+ summary: CancelProposal defines a method to cancel governance proposal
+ description: 'Since: cosmos-sdk 0.50'
+ operationId: CosmosGovV1Msg_CancelProposal
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- grants:
- type: array
- items:
- type: object
- properties:
- granter:
- type: string
- grantee:
- type: string
- authorization:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ canceled_time:
+ type: string
+ format: date-time
+ description: canceled_time is the time when proposal is canceled.
+ canceled_height:
+ type: string
+ format: uint64
+ description: >-
+ canceled_height defines the block height at which the proposal
+ is canceled.
+ description: >-
+ MsgCancelProposalResponse defines the response structure for
+ executing a
- field. Example (for message
- [google.protobuf.Duration][]):
+ MsgCancelProposal message.
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- expiration:
- type: string
- format: date-time
- title: >-
- GrantAuthorization extends a grant with both the addresses
- of the grantee and granter.
-
- It is used in genesis.proto and query.proto
- description: grants is a list of grants granted to the grantee.
- pagination:
- description: pagination defines an pagination for the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
- was set, its value is undefined otherwise
- description: >-
- QueryGranteeGrantsResponse is the response type for the
- Query/GranteeGrants RPC method.
+ Since: cosmos-sdk 0.50
default:
description: An unexpected error response.
schema:
@@ -3882,8 +3771,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -3893,7 +3786,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -3921,10 +3814,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -3962,294 +3853,39 @@ paths:
"value": "1.212s"
}
parameters:
- - name: grantee
- in: path
- required: true
- type: string
- - name: pagination.key
+ - name: body
description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ MsgCancelProposal is the Msg/CancelProposal request type.
+ Since: cosmos-sdk 0.50
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ proposer:
+ type: string
+ description: proposer is the account address of the proposer.
+ description: |-
+ MsgCancelProposal is the Msg/CancelProposal request type.
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ Since: cosmos-sdk 0.50
tags:
- - Query
- /cosmos/authz/v1beta1/grants/granter/{granter}:
- get:
- summary: GranterGrants returns list of `GrantAuthorization`, granted by granter.
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosAuthzV1Beta1GranterGrants
+ - Msg
+ /cosmos.gov.v1.Msg/Deposit:
+ post:
+ summary: Deposit defines a method to add deposit on a specific proposal.
+ operationId: CosmosGovV1Msg_Deposit
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- grants:
- type: array
- items:
- type: object
- properties:
- granter:
- type: string
- grantee:
- type: string
- authorization:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message
- [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- expiration:
- type: string
- format: date-time
- title: >-
- GrantAuthorization extends a grant with both the addresses
- of the grantee and granter.
-
- It is used in genesis.proto and query.proto
- description: grants is a list of grants granted by the granter.
- pagination:
- description: pagination defines an pagination for the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryGranterGrantsResponse is the response type for the
- Query/GranterGrants RPC method.
+ description: MsgDepositResponse defines the Msg/Deposit response type.
default:
description: An unexpected error response.
schema:
@@ -4356,8 +3992,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -4367,7 +4007,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -4395,10 +4035,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -4436,84 +4074,23 @@ paths:
"value": "1.212s"
}
parameters:
- - name: granter
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
+ - name: body
description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/bank/v1beta1/balances/{address}:
- get:
- summary: AllBalances queries the balance of all coins for a single account.
- description: >-
- When called from another module, this query might consume a high amount
- of
-
- gas if the pagination field is incorrectly set.
- operationId: CosmosBankV1Beta1AllBalances
- responses:
- '200':
- description: A successful response.
+ MsgDeposit defines a message to submit a deposit to an existing
+ proposal.
+ in: body
+ required: true
schema:
type: object
properties:
- balances:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ depositor:
+ type: string
+ description: depositor defines the deposit addresses from the proposals.
+ amount:
type: array
items:
type: object
@@ -4530,33 +4107,28 @@ paths:
method
signatures required by gogoproto.
- description: balances is the balances of all the coins.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
+ description: amount to be deposited by depositor.
description: >-
- QueryAllBalancesResponse is the response type for the
- Query/AllBalances RPC
-
- method.
- default:
- description: An unexpected error response.
+ MsgDeposit defines a message to submit a deposit to an existing
+ proposal.
+ tags:
+ - Msg
+ /cosmos.gov.v1.Msg/ExecLegacyContent:
+ post:
+ summary: |-
+ ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal
+ to execute a legacy content-based proposal.
+ operationId: CosmosGovV1Msg_ExecLegacyContent
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent
+ response type.
+ default:
+ description: An unexpected error response.
schema:
type: object
properties:
@@ -4572,667 +4144,280 @@ paths:
properties:
'@type':
type: string
- additionalProperties: {}
- parameters:
- - name: address
- description: address is the address to query balances for.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- It is less efficient than using key. Only one of offset or key
- should
+ protocol buffer message. This string must contain at
+ least
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ one "/" character. The last segment of the URL's path
+ must represent
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ the fully qualified name of the type (as in
- a count of the total number of items available for pagination in
- UIs.
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
- count_total is only respected when offset is used. It is ignored
- when key
+ (e.g., leading "." is not accepted).
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ In practice, teams usually precompile into the binary
+ all types that they
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/bank/v1beta1/balances/{address}/by_denom:
- get:
- summary: Balance queries the balance of a single coin for a single account.
- operationId: CosmosBankV1Beta1Balance
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- balance:
- description: balance is the balance of the coin.
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- QueryBalanceResponse is the response type for the Query/Balance
- RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: address
- description: address is the address to query balances for.
- in: path
- required: true
- type: string
- - name: denom
- description: denom is the coin denom to query balances for.
- in: query
- required: false
- type: string
- tags:
- - Query
- /cosmos/bank/v1beta1/denom_owners/{denom}:
- get:
- summary: >-
- DenomOwners queries for all account addresses that own a particular
- token
+ expect it to use in the context of Any. However, for
+ URLs which use the
- denomination.
- description: >-
- When called from another module, this query might consume a high amount
- of
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- gas if the pagination field is incorrectly set.
+ server that maps type URLs to message definitions as
+ follows:
- Since: cosmos-sdk 0.46
- operationId: CosmosBankV1Beta1DenomOwners
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- denom_owners:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- description: >-
- address defines the address that owns a particular
- denomination.
- balance:
- description: >-
- balance is the balance of the denominated coin for an
- account.
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- DenomOwner defines structure representing an account that
- owns or holds a
+ * If no scheme is provided, `https` is assumed.
- particular denominated token. It contains the account
- address and account
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- balance of the denominated token.
+ Note: this functionality is not currently available in
+ the official
+ protobuf release, and it is not used for type URLs
+ beginning with
- Since: cosmos-sdk 0.46
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ type.googleapis.com.
- was set, its value is undefined otherwise
- description: >-
- QueryDenomOwnersResponse defines the RPC response of a DenomOwners
- RPC query.
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- Since: cosmos-sdk 0.46
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
+ used with implementation specific semantics.
additionalProperties: {}
- parameters:
- - name: denom
- description: >-
- denom defines the coin denomination to query all account holders
- for.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
- It is less efficient than using key. Only one of offset or key
- should
+ URL that describes the type of the serialized message.
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ Protobuf library provides support to pack/unpack Any values
+ in the form
- a count of the total number of items available for pagination in
- UIs.
+ of utility functions or additional generated methods of the
+ Any type.
- count_total is only respected when offset is used. It is ignored
- when key
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ Example 1: Pack and unpack a message in C++.
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/bank/v1beta1/denoms_metadata:
- get:
- summary: |-
- DenomsMetadata queries the client metadata for all registered coin
- denominations.
- operationId: CosmosBankV1Beta1DenomsMetadata
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- metadatas:
- type: array
- items:
- type: object
- properties:
- description:
- type: string
- denom_units:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- description: >-
- denom represents the string name of the given
- denom unit (e.g uatom).
- exponent:
- type: integer
- format: int64
- description: >-
- exponent represents power of 10 exponent that one
- must
-
- raise the base_denom to in order to equal the
- given DenomUnit's denom
-
- 1 denom = 10^exponent base_denom
-
- (e.g. with a base_denom of uatom, one can create a
- DenomUnit of 'atom' with
-
- exponent = 6, thus: 1 atom = 10^6 uatom).
- aliases:
- type: array
- items:
- type: string
- title: >-
- aliases is a list of string aliases for the given
- denom
- description: |-
- DenomUnit represents a struct that describes a given
- denomination unit of the basic token.
- title: >-
- denom_units represents the list of DenomUnit's for a
- given coin
- base:
- type: string
- description: >-
- base represents the base denom (should be the DenomUnit
- with exponent = 0).
- display:
- type: string
- description: |-
- display indicates the suggested denom that should be
- displayed in clients.
- name:
- type: string
- description: 'Since: cosmos-sdk 0.43'
- title: 'name defines the name of the token (eg: Cosmos Atom)'
- symbol:
- type: string
- description: >-
- symbol is the token symbol usually shown on exchanges
- (eg: ATOM). This can
+ Example 2: Pack and unpack a message in Java.
- be the same as the display.
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+ Example 3: Pack and unpack a message in Python.
- Since: cosmos-sdk 0.43
- uri:
- type: string
- description: >-
- URI to a document (on or off-chain) that contains
- additional information. Optional.
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+ Example 4: Pack and unpack a message in Go
- Since: cosmos-sdk 0.46
- uri_hash:
- type: string
- description: >-
- URIHash is a sha256 hash of a document pointed by URI.
- It's used to verify that
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- the document didn't change. Optional.
+ The pack methods provided by protobuf library will by
+ default use
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- Since: cosmos-sdk 0.46
- description: |-
- Metadata represents a struct that describes
- a basic token.
- description: >-
- metadata provides the client information for all the
- registered tokens.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ methods only use the fully qualified type name after the
+ last '/'
- was set, its value is undefined otherwise
- description: >-
- QueryDenomsMetadataResponse is the response type for the
- Query/DenomsMetadata RPC
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ name "y.z".
- It is less efficient than using key. Only one of offset or key
- should
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ JSON
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
- a count of the total number of items available for pagination in
- UIs.
+ The JSON representation of an `Any` value uses the regular
- count_total is only respected when offset is used. It is ignored
- when key
+ representation of the deserialized, embedded message, with
+ an
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ additional field `@type` which contains the type URL.
+ Example:
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/bank/v1beta1/denoms_metadata/{denom}:
- get:
- summary: DenomsMetadata queries the client metadata of a given coin denomination.
- operationId: CosmosBankV1Beta1DenomMetadata
- responses:
- '200':
- description: A successful response.
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: body
+ description: >-
+ MsgExecLegacyContent is used to wrap the legacy content field into a
+ message.
+
+ This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
+ in: body
+ required: true
schema:
type: object
properties:
- metadata:
- description: >-
- metadata describes and provides all the client information for
- the requested token.
+ content:
+ description: content is the proposal's content.
type: object
properties:
- description:
+ '@type':
type: string
- denom_units:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- description: >-
- denom represents the string name of the given denom
- unit (e.g uatom).
- exponent:
- type: integer
- format: int64
- description: >-
- exponent represents power of 10 exponent that one
- must
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- raise the base_denom to in order to equal the given
- DenomUnit's denom
+ protocol buffer message. This string must contain at least
- 1 denom = 10^exponent base_denom
+ one "/" character. The last segment of the URL's path must
+ represent
- (e.g. with a base_denom of uatom, one can create a
- DenomUnit of 'atom' with
+ the fully qualified name of the type (as in
- exponent = 6, thus: 1 atom = 10^6 uatom).
- aliases:
- type: array
- items:
- type: string
- title: >-
- aliases is a list of string aliases for the given
- denom
- description: |-
- DenomUnit represents a struct that describes a given
- denomination unit of the basic token.
- title: >-
- denom_units represents the list of DenomUnit's for a given
- coin
- base:
- type: string
- description: >-
- base represents the base denom (should be the DenomUnit
- with exponent = 0).
- display:
- type: string
- description: |-
- display indicates the suggested denom that should be
- displayed in clients.
- name:
- type: string
- description: 'Since: cosmos-sdk 0.43'
- title: 'name defines the name of the token (eg: Cosmos Atom)'
- symbol:
- type: string
- description: >-
- symbol is the token symbol usually shown on exchanges (eg:
- ATOM). This can
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- be the same as the display.
+ (e.g., leading "." is not accepted).
- Since: cosmos-sdk 0.43
- uri:
- type: string
- description: >-
- URI to a document (on or off-chain) that contains
- additional information. Optional.
+ In practice, teams usually precompile into the binary all
+ types that they
+ expect it to use in the context of Any. However, for URLs
+ which use the
- Since: cosmos-sdk 0.46
- uri_hash:
- type: string
- description: >-
- URIHash is a sha256 hash of a document pointed by URI.
- It's used to verify that
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- the document didn't change. Optional.
+ server that maps type URLs to message definitions as
+ follows:
- Since: cosmos-sdk 0.46
- description: >-
- QueryDenomMetadataResponse is the response type for the
- Query/DenomMetadata RPC
+ * If no scheme is provided, `https` is assumed.
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ authority:
type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: denom
- description: denom is the coin denom to query the metadata for.
- in: path
- required: true
- type: string
+ description: authority must be the gov module address.
+ description: >-
+ MsgExecLegacyContent is used to wrap the legacy content field into
+ a message.
+
+ This ensures backwards compatibility with
+ v1beta1.MsgSubmitProposal.
tags:
- - Query
- /cosmos/bank/v1beta1/params:
- get:
- summary: Params queries the parameters of x/bank module.
- operationId: CosmosBankV1Beta1Params
+ - Msg
+ /cosmos.gov.v1.Msg/SubmitProposal:
+ post:
+ summary: >-
+ SubmitProposal defines a method to create new proposal given the
+ messages.
+ operationId: CosmosGovV1Msg_SubmitProposal
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- params:
- type: object
- properties:
- send_enabled:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- enabled:
- type: boolean
- description: >-
- SendEnabled maps coin denom to a send_enabled status
- (whether a denom is
-
- sendable).
- description: >-
- Deprecated: Use of SendEnabled in params is deprecated.
-
- For genesis, use the newly added send_enabled field in the
- genesis object.
-
- Storage, lookup, and manipulation of this information is
- now in the keeper.
-
-
- As of cosmos-sdk 0.47, this only exists for backwards
- compatibility of genesis files.
- default_send_enabled:
- type: boolean
- description: Params defines the parameters for the bank module.
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
description: >-
- QueryParamsResponse defines the response type for querying x/bank
- parameters.
+ MsgSubmitProposalResponse defines the Msg/SubmitProposal response
+ type.
default:
description: An unexpected error response.
schema:
@@ -5250,697 +4435,189 @@ paths:
properties:
'@type':
type: string
- additionalProperties: {}
- tags:
- - Query
- /cosmos/bank/v1beta1/send_enabled:
- get:
- summary: SendEnabled queries for SendEnabled entries.
- description: >-
- This query only returns denominations that have specific SendEnabled
- settings.
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- Any denomination that does not have a specific setting will use the
- default
+ protocol buffer message. This string must contain at
+ least
- params.default_send_enabled, and will not be returned by this query.
+ one "/" character. The last segment of the URL's path
+ must represent
+ the fully qualified name of the type (as in
- Since: cosmos-sdk 0.47
- operationId: CosmosBankV1Beta1SendEnabled
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- send_enabled:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- enabled:
- type: boolean
- description: >-
- SendEnabled maps coin denom to a send_enabled status
- (whether a denom is
-
- sendable).
- pagination:
- description: >-
- pagination defines the pagination in the response. This field
- is only
-
- populated if the denoms field in the request is empty.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QuerySendEnabledResponse defines the RPC response of a SendEnable
- query.
-
-
- Since: cosmos-sdk 0.47
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: denoms
- description: >-
- denoms is the specific denoms you want look up. Leave empty to get
- all entries.
- in: query
- required: false
- type: array
- items:
- type: string
- collectionFormat: multi
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
- count_total is only respected when offset is used. It is ignored
- when key
+ (e.g., leading "." is not accepted).
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ In practice, teams usually precompile into the binary
+ all types that they
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/bank/v1beta1/spendable_balances/{address}:
- get:
- summary: >-
- SpendableBalances queries the spendable balance of all coins for a
- single
+ expect it to use in the context of Any. However, for
+ URLs which use the
- account.
- description: >-
- When called from another module, this query might consume a high amount
- of
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- gas if the pagination field is incorrectly set.
+ server that maps type URLs to message definitions as
+ follows:
- Since: cosmos-sdk 0.46
- operationId: CosmosBankV1Beta1SpendableBalances
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- balances:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
+ * If no scheme is provided, `https` is assumed.
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- NOTE: The amount field is an Int which implements the custom
- method
+ Note: this functionality is not currently available in
+ the official
- signatures required by gogoproto.
- description: balances is the spendable balances of all the coins.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ protobuf release, and it is not used for type URLs
+ beginning with
- was set, its value is undefined otherwise
- description: >-
- QuerySpendableBalancesResponse defines the gRPC response structure
- for querying
+ type.googleapis.com.
- an account's spendable balances.
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- Since: cosmos-sdk 0.46
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
+ used with implementation specific semantics.
additionalProperties: {}
- parameters:
- - name: address
- description: address is the address to query spendable balances for.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
- It is less efficient than using key. Only one of offset or key
- should
+ URL that describes the type of the serialized message.
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ Protobuf library provides support to pack/unpack Any values
+ in the form
- a count of the total number of items available for pagination in
- UIs.
+ of utility functions or additional generated methods of the
+ Any type.
- count_total is only respected when offset is used. It is ignored
- when key
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ Example 1: Pack and unpack a message in C++.
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/bank/v1beta1/spendable_balances/{address}/by_denom:
- get:
- summary: >-
- SpendableBalanceByDenom queries the spendable balance of a single denom
- for
+ Example 2: Pack and unpack a message in Java.
- a single account.
- description: >-
- When called from another module, this query might consume a high amount
- of
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- gas if the pagination field is incorrectly set.
+ Example 3: Pack and unpack a message in Python.
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- Since: cosmos-sdk 0.47
- operationId: CosmosBankV1Beta1SpendableBalanceByDenom
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- balance:
- description: balance is the balance of the coin.
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- QuerySpendableBalanceByDenomResponse defines the gRPC response
- structure for
+ Example 4: Pack and unpack a message in Go
- querying an account's spendable balance for a specific denom.
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+ The pack methods provided by protobuf library will by
+ default use
- Since: cosmos-sdk 0.47
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: address
- description: address is the address to query balances for.
- in: path
- required: true
- type: string
- - name: denom
- description: denom is the coin denom to query balances for.
- in: query
- required: false
- type: string
- tags:
- - Query
- /cosmos/bank/v1beta1/supply:
- get:
- summary: TotalSupply queries the total supply of all coins.
- description: >-
- When called from another module, this query might consume a high amount
- of
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- gas if the pagination field is incorrectly set.
- operationId: CosmosBankV1Beta1TotalSupply
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- supply:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
+ methods only use the fully qualified type name after the
+ last '/'
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
- NOTE: The amount field is an Int which implements the custom
- method
+ name "y.z".
- signatures required by gogoproto.
- title: supply is the supply of the coins
- pagination:
- description: |-
- pagination defines the pagination in the response.
- Since: cosmos-sdk 0.43
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ JSON
- was set, its value is undefined otherwise
- title: >-
- QueryTotalSupplyResponse is the response type for the
- Query/TotalSupply RPC
- method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ The JSON representation of an `Any` value uses the regular
- It is less efficient than using key. Only one of offset or key
- should
+ representation of the deserialized, embedded message, with
+ an
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ additional field `@type` which contains the type URL.
+ Example:
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- a count of the total number of items available for pagination in
- UIs.
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- count_total is only respected when offset is used. It is ignored
- when key
+ If the embedded message type is well-known and has a custom
+ JSON
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ representation, that representation will be embedded adding
+ a field
+ `value` which holds the custom JSON in addition to the
+ `@type`
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/bank/v1beta1/supply/by_denom:
- get:
- summary: SupplyOf queries the supply of a single coin.
- description: >-
- When called from another module, this query might consume a high amount
- of
+ field. Example (for message [google.protobuf.Duration][]):
- gas if the pagination field is incorrectly set.
- operationId: CosmosBankV1Beta1SupplyOf
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- amount:
- description: amount is the supply of the coin.
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- QuerySupplyOfResponse is the response type for the Query/SupplyOf
- RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
parameters:
- - name: denom
- description: denom is the coin denom to query balances for.
- in: query
- required: false
- type: string
- tags:
- - Query
- /cosmos/base/node/v1beta1/config:
- get:
- summary: Config queries for the operator configuration.
- operationId: CosmosBaseNodeV1Beta1Config
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- minimum_gas_price:
- type: string
- description: >-
- ConfigResponse defines the response structure for the Config gRPC
- query.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Service
- /cosmos/base/tendermint/v1beta1/abci_query:
- get:
- summary: >-
- ABCIQuery defines a query handler that supports ABCI queries directly to
- the
-
- application, bypassing Tendermint completely. The ABCI query must
- contain
-
- a valid and supported path, including app, custom, p2p, and store.
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosBaseTendermintV1Beta1ABCIQuery
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int64
- log:
- type: string
- title: nondeterministic
- info:
- type: string
- title: nondeterministic
- index:
- type: string
- format: int64
- key:
- type: string
- format: byte
- value:
- type: string
- format: byte
- proof_ops:
- type: object
- properties:
- ops:
- type: array
- items:
- type: object
- properties:
- type:
- type: string
- key:
- type: string
- format: byte
- data:
- type: string
- format: byte
- description: >-
- ProofOp defines an operation used for calculating Merkle
- root. The data could
-
- be arbitrary format, providing necessary data for
- example neighbouring node
-
- hash.
-
-
- Note: This type is a duplicate of the ProofOp proto type
- defined in Tendermint.
- description: >-
- ProofOps is Merkle proof defined by the list of ProofOps.
-
-
- Note: This type is a duplicate of the ProofOps proto type
- defined in Tendermint.
- height:
- type: string
- format: int64
- codespace:
- type: string
- description: >-
- ABCIQueryResponse defines the response structure for the ABCIQuery
- gRPC query.
-
-
- Note: This type is a duplicate of the ResponseQuery proto type
- defined in
+ - name: body
+ description: >-
+ MsgSubmitProposal defines an sdk.Msg type that supports submitting
+ arbitrary
- Tendermint.
- default:
- description: An unexpected error response.
+ proposal Content.
+ in: body
+ required: true
schema:
type: object
properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
+ messages:
type: array
items:
type: object
@@ -6036,8 +4713,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -6047,7 +4728,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -6075,10 +4756,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -6115,1199 +4794,78 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- parameters:
- - name: data
- in: query
- required: false
- type: string
- format: byte
- - name: path
- in: query
- required: false
- type: string
- - name: height
- in: query
- required: false
- type: string
- format: int64
- - name: prove
- in: query
- required: false
- type: boolean
- tags:
- - Service
- /cosmos/base/tendermint/v1beta1/blocks/latest:
- get:
- summary: GetLatestBlock returns the latest block.
- operationId: CosmosBaseTendermintV1Beta1GetLatestBlock
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- block:
- title: 'Deprecated: please use `sdk_block` instead'
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules for processing
- a block in the blockchain,
-
- including all blockchain data structures and the rules
- of the application's
-
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: commit from validators from the last block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: hashes from the app output from the prev block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs from the
- previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- format: byte
- title: original proposer of the block
- description: Header defines the structure of a block header.
- data:
- type: object
- properties:
- txs:
- type: array
- items:
- type: string
- format: byte
- description: >-
- Txs that will be applied by state @ block.Height+1.
-
- NOTE: not all txs here are valid. We're just agreeing
- on the order first.
-
- This means that block.AppHash does not include these
- txs.
- title: >-
- Data contains the set of transactions included in the
- block
- evidence:
- type: object
- properties:
- evidence:
- type: array
- items:
- type: object
- properties:
- duplicate_vote_evidence:
- type: object
- properties:
- vote_a:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
-
- consensus.
- vote_b:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
-
- consensus.
- total_voting_power:
- type: string
- format: int64
- validator_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- DuplicateVoteEvidence contains evidence of a
- validator signed two conflicting votes.
- light_client_attack_evidence:
- type: object
- properties:
- conflicting_block:
- type: object
- properties:
- signed_header:
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules
- for processing a block in the
- blockchain,
-
- including all blockchain data structures
- and the rules of the application's
-
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: >-
- commit from validators from the last
- block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: >-
- hashes from the app output from the prev
- block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs
- from the previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- format: byte
- title: original proposer of the block
- description: >-
- Header defines the structure of a block
- header.
- commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included
- in a Commit.
- description: >-
- Commit contains the evidence that a
- block was committed by a set of
- validators.
- validator_set:
- type: object
- properties:
- validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- proposer:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- common_height:
- type: string
- format: int64
- byzantine_validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- LightClientAttackEvidence contains evidence of a
- set of validators attempting to mislead a light
- client.
- last_commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included in a
- Commit.
- description: >-
- Commit contains the evidence that a block was committed by
- a set of validators.
- sdk_block:
- title: 'Since: cosmos-sdk 0.47'
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules for processing
- a block in the blockchain,
+ description: >-
+ messages are the arbitrary messages to be executed if proposal
+ passes.
+ initial_deposit:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- including all blockchain data structures and the rules
- of the application's
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: commit from validators from the last block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: hashes from the app output from the prev block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs from the
- previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- description: >-
- proposer_address is the original block proposer
- address, formatted as a Bech32 string.
+ NOTE: The amount field is an Int which implements the custom
+ method
- In Tendermint, this type is `bytes`, but in the SDK,
- we convert it to a Bech32 string
+ signatures required by gogoproto.
+ description: >-
+ initial_deposit is the deposit value that must be paid at
+ proposal submission.
+ proposer:
+ type: string
+ description: proposer is the account address of the proposer.
+ metadata:
+ type: string
+ description: metadata is any arbitrary metadata attached to the proposal.
+ title:
+ type: string
+ description: |-
+ title is the title of the proposal.
- for better UX.
+ Since: cosmos-sdk 0.47
+ summary:
+ type: string
+ description: 'Since: cosmos-sdk 0.47'
+ title: summary is the summary of the proposal
+ expedited:
+ type: boolean
+ description: 'Since: cosmos-sdk 0.50'
+ title: expedited defines if the proposal is expedited or not
+ description: >-
+ MsgSubmitProposal defines an sdk.Msg type that supports submitting
+ arbitrary
+ proposal Content.
+ tags:
+ - Msg
+ /cosmos.gov.v1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a governance operation for updating the x/gov
+ module
- original proposer of the block
- description: Header defines the structure of a Tendermint block header.
- data:
- type: object
- properties:
- txs:
- type: array
- items:
- type: string
- format: byte
- description: >-
- Txs that will be applied by state @ block.Height+1.
+ parameters. The authority is defined in the keeper.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosGovV1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- NOTE: not all txs here are valid. We're just agreeing
- on the order first.
+ MsgUpdateParams message.
- This means that block.AppHash does not include these
- txs.
- title: >-
- Data contains the set of transactions included in the
- block
- evidence:
- type: object
- properties:
- evidence:
- type: array
- items:
- type: object
- properties:
- duplicate_vote_evidence:
- type: object
- properties:
- vote_a:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
-
- consensus.
- vote_b:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
-
- consensus.
- total_voting_power:
- type: string
- format: int64
- validator_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- DuplicateVoteEvidence contains evidence of a
- validator signed two conflicting votes.
- light_client_attack_evidence:
- type: object
- properties:
- conflicting_block:
- type: object
- properties:
- signed_header:
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules
- for processing a block in the
- blockchain,
-
- including all blockchain data structures
- and the rules of the application's
-
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: >-
- commit from validators from the last
- block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: >-
- hashes from the app output from the prev
- block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs
- from the previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- format: byte
- title: original proposer of the block
- description: >-
- Header defines the structure of a block
- header.
- commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included
- in a Commit.
- description: >-
- Commit contains the evidence that a
- block was committed by a set of
- validators.
- validator_set:
- type: object
- properties:
- validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- proposer:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- common_height:
- type: string
- format: int64
- byzantine_validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- LightClientAttackEvidence contains evidence of a
- set of validators attempting to mislead a light
- client.
- last_commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included in a
- Commit.
- description: >-
- Commit contains the evidence that a block was committed by
- a set of validators.
- description: >-
- Block is tendermint type Block, with the Header proposer
- address
- field converted to bech32 string.
- description: >-
- GetLatestBlockResponse is the response type for the
- Query/GetLatestBlock RPC method.
+ Since: cosmos-sdk 0.47
default:
description: An unexpected error response.
schema:
@@ -7414,8 +4972,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -7425,7 +4987,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -7453,10 +5015,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -7493,1180 +5053,170 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- tags:
- - Service
- /cosmos/base/tendermint/v1beta1/blocks/{height}:
- get:
- summary: GetBlockByHeight queries block for given height.
- operationId: CosmosBaseTendermintV1Beta1GetBlockByHeight
- responses:
- '200':
- description: A successful response.
+ parameters:
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
schema:
type: object
properties:
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- block:
- title: 'Deprecated: please use `sdk_block` instead'
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: |-
+ params defines the x/gov parameters to update.
+
+ NOTE: All parameters must be supplied.
type: object
properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules for processing
- a block in the blockchain,
+ min_deposit:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- including all blockchain data structures and the rules
- of the application's
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: commit from validators from the last block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: hashes from the app output from the prev block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs from the
- previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- format: byte
- title: original proposer of the block
- description: Header defines the structure of a block header.
- data:
- type: object
- properties:
- txs:
- type: array
- items:
- type: string
- format: byte
- description: >-
- Txs that will be applied by state @ block.Height+1.
+ NOTE: The amount field is an Int which implements the
+ custom method
- NOTE: not all txs here are valid. We're just agreeing
- on the order first.
+ signatures required by gogoproto.
+ description: Minimum deposit for a proposal to enter voting period.
+ max_deposit_period:
+ type: string
+ description: >-
+ Maximum period for Atom holders to deposit on a proposal.
+ Initial value: 2
- This means that block.AppHash does not include these
- txs.
- title: >-
- Data contains the set of transactions included in the
- block
- evidence:
- type: object
- properties:
- evidence:
- type: array
- items:
- type: object
- properties:
- duplicate_vote_evidence:
- type: object
- properties:
- vote_a:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
-
- consensus.
- vote_b:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
-
- consensus.
- total_voting_power:
- type: string
- format: int64
- validator_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- DuplicateVoteEvidence contains evidence of a
- validator signed two conflicting votes.
- light_client_attack_evidence:
- type: object
- properties:
- conflicting_block:
- type: object
- properties:
- signed_header:
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules
- for processing a block in the
- blockchain,
-
- including all blockchain data structures
- and the rules of the application's
-
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: >-
- commit from validators from the last
- block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: >-
- hashes from the app output from the prev
- block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs
- from the previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- format: byte
- title: original proposer of the block
- description: >-
- Header defines the structure of a block
- header.
- commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included
- in a Commit.
- description: >-
- Commit contains the evidence that a
- block was committed by a set of
- validators.
- validator_set:
- type: object
- properties:
- validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- proposer:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- common_height:
- type: string
- format: int64
- byzantine_validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- LightClientAttackEvidence contains evidence of a
- set of validators attempting to mislead a light
- client.
- last_commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included in a
- Commit.
+ months.
+ voting_period:
+ type: string
+ description: Duration of the voting period.
+ quorum:
+ type: string
description: >-
- Commit contains the evidence that a block was committed by
- a set of validators.
- sdk_block:
- title: 'Since: cosmos-sdk 0.47'
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules for processing
- a block in the blockchain,
+ Minimum percentage of total stake needed to vote for a
+ result to be
+ considered valid.
+ threshold:
+ type: string
+ description: >-
+ Minimum proportion of Yes votes for proposal to pass.
+ Default value: 0.5.
+ veto_threshold:
+ type: string
+ description: >-
+ Minimum value of Veto votes to Total votes ratio for
+ proposal to be
+ vetoed. Default value: 1/3.
+ min_initial_deposit_ratio:
+ type: string
+ description: >-
+ The ratio representing the proportion of the deposit value
+ that must be paid at proposal submission.
+ proposal_cancel_ratio:
+ type: string
+ description: >-
+ The cancel ratio which will not be returned back to the
+ depositors when a proposal is cancelled.
- including all blockchain data structures and the rules
- of the application's
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: commit from validators from the last block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: hashes from the app output from the prev block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs from the
- previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- description: >-
- proposer_address is the original block proposer
- address, formatted as a Bech32 string.
+ Since: cosmos-sdk 0.50
+ proposal_cancel_dest:
+ type: string
+ description: >-
+ The address which will receive (proposal_cancel_ratio *
+ deposit) proposal deposits.
- In Tendermint, this type is `bytes`, but in the SDK,
- we convert it to a Bech32 string
+ If empty, the (proposal_cancel_ratio * deposit) proposal
+ deposits will be burned.
- for better UX.
+ Since: cosmos-sdk 0.50
+ expedited_voting_period:
+ type: string
+ description: |-
+ Duration of the voting period of an expedited proposal.
- original proposer of the block
- description: Header defines the structure of a Tendermint block header.
- data:
- type: object
- properties:
- txs:
- type: array
- items:
+ Since: cosmos-sdk 0.50
+ expedited_threshold:
+ type: string
+ description: >-
+ Minimum proportion of Yes votes for proposal to pass.
+ Default value: 0.67.
+
+
+ Since: cosmos-sdk 0.50
+ expedited_min_deposit:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
type: string
- format: byte
- description: >-
- Txs that will be applied by state @ block.Height+1.
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- NOTE: not all txs here are valid. We're just agreeing
- on the order first.
- This means that block.AppHash does not include these
- txs.
- title: >-
- Data contains the set of transactions included in the
- block
- evidence:
- type: object
- properties:
- evidence:
- type: array
- items:
- type: object
- properties:
- duplicate_vote_evidence:
- type: object
- properties:
- vote_a:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
-
- consensus.
- vote_b:
- type: object
- properties:
- type:
- type: string
- enum:
- - SIGNED_MSG_TYPE_UNKNOWN
- - SIGNED_MSG_TYPE_PREVOTE
- - SIGNED_MSG_TYPE_PRECOMMIT
- - SIGNED_MSG_TYPE_PROPOSAL
- default: SIGNED_MSG_TYPE_UNKNOWN
- description: >-
- SignedMsgType is a type of signed
- message in the consensus.
-
- - SIGNED_MSG_TYPE_PREVOTE: Votes
- - SIGNED_MSG_TYPE_PROPOSAL: Proposals
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- description: zero if vote is nil.
- timestamp:
- type: string
- format: date-time
- validator_address:
- type: string
- format: byte
- validator_index:
- type: integer
- format: int32
- signature:
- type: string
- format: byte
- description: >-
- Vote represents a prevote, precommit, or
- commit vote from validators for
-
- consensus.
- total_voting_power:
- type: string
- format: int64
- validator_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- DuplicateVoteEvidence contains evidence of a
- validator signed two conflicting votes.
- light_client_attack_evidence:
- type: object
- properties:
- conflicting_block:
- type: object
- properties:
- signed_header:
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules
- for processing a block in the
- blockchain,
-
- including all blockchain data structures
- and the rules of the application's
-
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- last_commit_hash:
- type: string
- format: byte
- description: >-
- commit from validators from the last
- block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: >-
- hashes from the app output from the prev
- block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs
- from the previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- format: byte
- title: original proposer of the block
- description: >-
- Header defines the structure of a block
- header.
- commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included
- in a Commit.
- description: >-
- Commit contains the evidence that a
- block was committed by a set of
- validators.
- validator_set:
- type: object
- properties:
- validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- proposer:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- common_height:
- type: string
- format: int64
- byzantine_validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- format: byte
- pub_key:
- type: object
- properties:
- ed25519:
- type: string
- format: byte
- secp256k1:
- type: string
- format: byte
- title: >-
- PublicKey defines the keys available for
- use with Validators
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- total_voting_power:
- type: string
- format: int64
- timestamp:
- type: string
- format: date-time
- description: >-
- LightClientAttackEvidence contains evidence of a
- set of validators attempting to mislead a light
- client.
- last_commit:
- type: object
- properties:
- height:
- type: string
- format: int64
- round:
- type: integer
- format: int32
- block_id:
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- title: BlockID
- signatures:
- type: array
- items:
- type: object
- properties:
- block_id_flag:
- type: string
- enum:
- - BLOCK_ID_FLAG_UNKNOWN
- - BLOCK_ID_FLAG_ABSENT
- - BLOCK_ID_FLAG_COMMIT
- - BLOCK_ID_FLAG_NIL
- default: BLOCK_ID_FLAG_UNKNOWN
- title: >-
- BlockIdFlag indicates which BlcokID the
- signature is for
- validator_address:
- type: string
- format: byte
- timestamp:
- type: string
- format: date-time
- signature:
- type: string
- format: byte
- description: >-
- CommitSig is a part of the Vote included in a
- Commit.
+ NOTE: The amount field is an Int which implements the
+ custom method
+
+ signatures required by gogoproto.
description: >-
- Commit contains the evidence that a block was committed by
- a set of validators.
- description: >-
- Block is tendermint type Block, with the Header proposer
- address
+ Minimum expedited deposit for a proposal to enter voting
+ period.
+ burn_vote_quorum:
+ type: boolean
+ title: burn deposits if a proposal does not meet quorum
+ burn_proposal_deposit_prevote:
+ type: boolean
+ title: burn deposits if the proposal does not enter voting period
+ burn_vote_veto:
+ type: boolean
+ title: burn deposits if quorum with vote type no_veto is met
+ min_deposit_ratio:
+ type: string
+ description: >-
+ The ratio representing the proportion of the deposit value
+ minimum that must be met when making a deposit.
- field converted to bech32 string.
- description: >-
- GetBlockByHeightResponse is the response type for the
- Query/GetBlockByHeight RPC method.
+ Default value: 0.01. Meaning that for a chain with a
+ min_deposit of 100stake, a deposit of 1stake would be
+
+ required.
+
+
+ Since: cosmos-sdk 0.50
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ tags:
+ - Msg
+ /cosmos.gov.v1.Msg/Vote:
+ post:
+ summary: Vote defines a method to add a vote on a specific proposal.
+ operationId: CosmosGovV1Msg_Vote
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: MsgVoteResponse defines the Msg/Vote response type.
default:
description: An unexpected error response.
schema:
@@ -8773,8 +5323,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -8784,7 +5338,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -8812,10 +5366,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -8853,95 +5405,50 @@ paths:
"value": "1.212s"
}
parameters:
- - name: height
- in: path
+ - name: body
+ description: MsgVote defines a message to cast a vote.
+ in: body
required: true
- type: string
- format: int64
+ schema:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ voter:
+ type: string
+ description: voter is the voter address for the proposal.
+ option:
+ description: option defines the vote option.
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ metadata:
+ type: string
+ description: metadata is any arbitrary metadata attached to the Vote.
+ description: MsgVote defines a message to cast a vote.
tags:
- - Service
- /cosmos/base/tendermint/v1beta1/node_info:
- get:
- summary: GetNodeInfo queries the current node info.
- operationId: CosmosBaseTendermintV1Beta1GetNodeInfo
+ - Msg
+ /cosmos.gov.v1.Msg/VoteWeighted:
+ post:
+ summary: >-
+ VoteWeighted defines a method to add a weighted vote on a specific
+ proposal.
+ operationId: CosmosGovV1Msg_VoteWeighted
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- default_node_info:
- type: object
- properties:
- protocol_version:
- type: object
- properties:
- p2p:
- type: string
- format: uint64
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- default_node_id:
- type: string
- listen_addr:
- type: string
- network:
- type: string
- version:
- type: string
- channels:
- type: string
- format: byte
- moniker:
- type: string
- other:
- type: object
- properties:
- tx_index:
- type: string
- rpc_address:
- type: string
- application_version:
- type: object
- properties:
- name:
- type: string
- app_name:
- type: string
- version:
- type: string
- git_commit:
- type: string
- build_tags:
- type: string
- go_version:
- type: string
- build_deps:
- type: array
- items:
- type: object
- properties:
- path:
- type: string
- title: module path
- version:
- type: string
- title: module version
- sum:
- type: string
- title: checksum
- title: Module is the type for VersionInfo
- cosmos_sdk_version:
- type: string
- title: 'Since: cosmos-sdk 0.43'
- description: VersionInfo is the type for the GetNodeInfoResponse message.
description: >-
- GetNodeInfoResponse is the response type for the Query/GetNodeInfo
- RPC method.
+ MsgVoteWeightedResponse defines the Msg/VoteWeighted response
+ type.
default:
description: An unexpected error response.
schema:
@@ -9048,8 +5555,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -9059,7 +5570,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -9087,10 +5598,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -9127,23 +5636,63 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- tags:
- - Service
- /cosmos/base/tendermint/v1beta1/syncing:
- get:
- summary: GetSyncing queries node syncing.
- operationId: CosmosBaseTendermintV1Beta1GetSyncing
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- syncing:
- type: boolean
- description: >-
- GetSyncingResponse is the response type for the Query/GetSyncing
- RPC method.
+ parameters:
+ - name: body
+ description: MsgVoteWeighted defines a message to cast a vote.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ voter:
+ type: string
+ description: voter is the voter address for the proposal.
+ options:
+ type: array
+ items:
+ type: object
+ properties:
+ option:
+ description: >-
+ option defines the valid vote options, it must not
+ contain duplicate vote options.
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ weight:
+ type: string
+ description: >-
+ weight is the vote weight associated with the vote
+ option.
+ description: WeightedVoteOption defines a unit of vote for vote split.
+ description: options defines the weighted vote options.
+ metadata:
+ type: string
+ description: >-
+ metadata is any arbitrary metadata attached to the
+ VoteWeighted.
+ description: MsgVoteWeighted defines a message to cast a vote.
+ tags:
+ - Msg
+ /cosmos.gov.v1beta1.Msg/Deposit:
+ post:
+ summary: Deposit defines a method to add deposit on a specific proposal.
+ operationId: CosmosGovV1Beta1Msg_Deposit
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: MsgDepositResponse defines the Msg/Deposit response type.
default:
description: An unexpected error response.
schema:
@@ -9250,8 +5799,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -9261,7 +5814,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -9289,10 +5842,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -9329,232 +5880,63 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- tags:
- - Service
- /cosmos/base/tendermint/v1beta1/validatorsets/latest:
- get:
- summary: GetLatestValidatorSet queries latest validator-set.
- operationId: CosmosBaseTendermintV1Beta1GetLatestValidatorSet
- responses:
- '200':
- description: A successful response.
+ parameters:
+ - name: body
+ description: >-
+ MsgDeposit defines a message to submit a deposit to an existing
+ proposal.
+ in: body
+ required: true
schema:
type: object
properties:
- block_height:
+ proposal_id:
type: string
- format: int64
- validators:
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ depositor:
+ type: string
+ description: depositor defines the deposit addresses from the proposals.
+ amount:
type: array
items:
type: object
properties:
- address:
+ denom:
type: string
- pub_key:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- field. Example (for message
- [google.protobuf.Duration][]):
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- voting_power:
- type: string
- format: int64
- proposer_priority:
- type: string
- format: int64
- description: Validator is the type for the validator-set.
- pagination:
- description: pagination defines an pagination for the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ NOTE: The amount field is an Int which implements the custom
+ method
- was set, its value is undefined otherwise
+ signatures required by gogoproto.
+ description: amount to be deposited by depositor.
+ description: >-
+ MsgDeposit defines a message to submit a deposit to an existing
+ proposal.
+ tags:
+ - Msg
+ /cosmos.gov.v1beta1.Msg/SubmitProposal:
+ post:
+ summary: SubmitProposal defines a method to create new proposal given a content.
+ operationId: CosmosGovV1Beta1Msg_SubmitProposal
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
description: >-
- GetLatestValidatorSetResponse is the response type for the
- Query/GetValidatorSetByHeight RPC method.
+ MsgSubmitProposalResponse defines the Msg/SubmitProposal response
+ type.
default:
description: An unexpected error response.
schema:
@@ -9661,8 +6043,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -9672,7 +6058,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -9700,10 +6086,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -9741,288 +6125,119 @@ paths:
"value": "1.212s"
}
parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
+ - name: body
description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
+ MsgSubmitProposal defines an sdk.Msg type that supports submitting
+ arbitrary
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Service
- /cosmos/base/tendermint/v1beta1/validatorsets/{height}:
- get:
- summary: GetValidatorSetByHeight queries validator-set at a given height.
- operationId: CosmosBaseTendermintV1Beta1GetValidatorSetByHeight
- responses:
- '200':
- description: A successful response.
+ proposal Content.
+ in: body
+ required: true
schema:
type: object
properties:
- block_height:
- type: string
- format: int64
- validators:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- pub_key:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ content:
+ description: content is the proposal's content.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- The pack methods provided by protobuf library will by
- default use
+ protocol buffer message. This string must contain at least
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
+ one "/" character. The last segment of the URL's path must
+ represent
- methods only use the fully qualified type name after the
- last '/'
+ the fully qualified name of the type (as in
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- name "y.z".
+ (e.g., leading "." is not accepted).
+ In practice, teams usually precompile into the binary all
+ types that they
- JSON
+ expect it to use in the context of Any. However, for URLs
+ which use the
- ====
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- The JSON representation of an `Any` value uses the
- regular
+ server that maps type URLs to message definitions as
+ follows:
- representation of the deserialized, embedded message,
- with an
- additional field `@type` which contains the type URL.
- Example:
+ * If no scheme is provided, `https` is assumed.
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ Note: this functionality is not currently available in the
+ official
- If the embedded message type is well-known and has a
- custom JSON
+ protobuf release, and it is not used for type URLs
+ beginning with
- representation, that representation will be embedded
- adding a field
+ type.googleapis.com.
- `value` which holds the custom JSON in addition to the
- `@type`
- field. Example (for message
- [google.protobuf.Duration][]):
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- voting_power:
+ used with implementation specific semantics.
+ additionalProperties: {}
+ initial_deposit:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
type: string
- format: int64
- proposer_priority:
+ amount:
type: string
- format: int64
- description: Validator is the type for the validator-set.
- pagination:
- description: pagination defines an pagination for the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
- was set, its value is undefined otherwise
+ signatures required by gogoproto.
+ description: >-
+ initial_deposit is the deposit value that must be paid at
+ proposal submission.
+ proposer:
+ type: string
+ description: proposer is the account address of the proposer.
description: >-
- GetValidatorSetByHeightResponse is the response type for the
- Query/GetValidatorSetByHeight RPC method.
+ MsgSubmitProposal defines an sdk.Msg type that supports submitting
+ arbitrary
+
+ proposal Content.
+ tags:
+ - Msg
+ /cosmos.gov.v1beta1.Msg/Vote:
+ post:
+ summary: Vote defines a method to add a vote on a specific proposal.
+ operationId: CosmosGovV1Beta1Msg_Vote
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: MsgVoteResponse defines the Msg/Vote response type.
default:
description: An unexpected error response.
schema:
@@ -10129,8 +6344,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -10140,7 +6359,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -10168,10 +6387,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -10209,167 +6426,51 @@ paths:
"value": "1.212s"
}
parameters:
- - name: height
- in: path
+ - name: body
+ description: MsgVote defines a message to cast a vote.
+ in: body
required: true
- type: string
- format: int64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ schema:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ voter:
+ type: string
+ description: voter is the voter address for the proposal.
+ option:
+ description: option defines the vote option.
+ type: string
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ description: MsgVote defines a message to cast a vote.
tags:
- - Service
- /cosmos/consensus/v1/params:
- get:
- summary: Params queries the parameters of x/consensus_param module.
- operationId: CosmosConsensusV1Params
+ - Msg
+ /cosmos.gov.v1beta1.Msg/VoteWeighted:
+ post:
+ summary: >-
+ VoteWeighted defines a method to add a weighted vote on a specific
+ proposal.
+ description: 'Since: cosmos-sdk 0.43'
+ operationId: CosmosGovV1Beta1Msg_VoteWeighted
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- params:
- description: >-
- params are the tendermint consensus params stored in the
- consensus module.
-
- Please note that `params.version` is not populated in this
- response, it is
-
- tracked separately in the x/upgrade module.
- type: object
- properties:
- block:
- type: object
- properties:
- max_bytes:
- type: string
- format: int64
- title: |-
- Max block size, in bytes.
- Note: must be greater than 0
- max_gas:
- type: string
- format: int64
- title: |-
- Max gas per block.
- Note: must be greater or equal to -1
- description: BlockParams contains limits on the block size.
- evidence:
- type: object
- properties:
- max_age_num_blocks:
- type: string
- format: int64
- description: >-
- Max age of evidence, in blocks.
-
-
- The basic formula for calculating this is:
- MaxAgeDuration / {average block
-
- time}.
- max_age_duration:
- type: string
- description: >-
- Max age of evidence, in time.
-
-
- It should correspond with an app's "unbonding period"
- or other similar
-
- mechanism for handling [Nothing-At-Stake
-
- attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
- max_bytes:
- type: string
- format: int64
- title: >-
- This sets the maximum size of total evidence in bytes
- that can be committed in a single block.
-
- and should fall comfortably under the max block bytes.
+ description: >-
+ MsgVoteWeightedResponse defines the Msg/VoteWeighted response
+ type.
- Default is 1048576 or 1MB
- description: >-
- EvidenceParams determine how we handle evidence of
- malfeasance.
- validator:
- type: object
- properties:
- pub_key_types:
- type: array
- items:
- type: string
- description: >-
- ValidatorParams restrict the public key types validators
- can use.
- NOTE: uses ABCI pubkey naming, not Amino names.
- version:
- type: object
- properties:
- app:
- type: string
- format: uint64
- description: VersionParams contains the ABCI application version.
- description: >-
- QueryParamsResponse defines the response type for querying
- x/consensus parameters.
+ Since: cosmos-sdk 0.43
default:
description: An unexpected error response.
schema:
@@ -10387,43 +6488,249 @@ paths:
properties:
'@type':
type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in
+ a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
additionalProperties: {}
- tags:
- - Query
- /cosmos/distribution/v1beta1/community_pool:
- get:
- summary: CommunityPool queries the community pool coins.
- operationId: CosmosDistributionV1Beta1CommunityPool
- responses:
- '200':
- description: A successful response.
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer
+ message along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values
+ in the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by
+ default use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the
+ last '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with
+ an
+
+ additional field `@type` which contains the type URL.
+ Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding
+ a field
+
+ `value` which holds the custom JSON in addition to the
+ `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ parameters:
+ - name: body
+ description: |-
+ MsgVoteWeighted defines a message to cast a vote.
+
+ Since: cosmos-sdk 0.43
+ in: body
+ required: true
schema:
type: object
properties:
- pool:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ voter:
+ type: string
+ description: voter is the voter address for the proposal.
+ options:
type: array
items:
type: object
properties:
- denom:
+ option:
+ description: >-
+ option defines the valid vote options, it must not
+ contain duplicate vote options.
type: string
- amount:
+ enum:
+ - VOTE_OPTION_UNSPECIFIED
+ - VOTE_OPTION_YES
+ - VOTE_OPTION_ABSTAIN
+ - VOTE_OPTION_NO
+ - VOTE_OPTION_NO_WITH_VETO
+ default: VOTE_OPTION_UNSPECIFIED
+ weight:
type: string
- description: >-
- DecCoin defines a token with a denomination and a decimal
- amount.
+ description: >-
+ weight is the vote weight associated with the vote
+ option.
+ description: |-
+ WeightedVoteOption defines a unit of vote for vote split.
+ Since: cosmos-sdk 0.43
+ description: options defines the weighted vote options.
+ description: |-
+ MsgVoteWeighted defines a message to cast a vote.
- NOTE: The amount field is an Dec which implements the custom
- method
+ Since: cosmos-sdk 0.43
+ tags:
+ - Msg
+ /cosmos.mint.v1beta1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a governance operation for updating the x/mint
+ module
- signatures required by gogoproto.
- description: pool defines community pool's coins.
+ parameters. The authority is defaults to the x/gov module account.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosMintV1Beta1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
description: >-
- QueryCommunityPoolResponse is the response type for the
- Query/CommunityPool
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- RPC method.
+ MsgUpdateParams message.
+
+
+ Since: cosmos-sdk 0.47
default:
description: An unexpected error response.
schema:
@@ -10442,71 +6749,79 @@ paths:
'@type':
type: string
additionalProperties: {}
+ parameters:
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: |-
+ params defines the x/mint parameters to update.
+
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ mint_denom:
+ type: string
+ title: type of coin to mint
+ inflation_rate_change:
+ type: string
+ title: maximum annual change in inflation rate
+ inflation_max:
+ type: string
+ title: maximum inflation rate
+ inflation_min:
+ type: string
+ title: minimum inflation rate
+ goal_bonded:
+ type: string
+ title: goal of percent bonded atoms
+ blocks_per_year:
+ type: string
+ format: uint64
+ title: expected blocks per year
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
tags:
- - Query
- /cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards:
+ - Msg
+ /cosmos/params/v1beta1/params:
get:
summary: |-
- DelegationTotalRewards queries the total rewards accrued by a each
- validator.
- operationId: CosmosDistributionV1Beta1DelegationTotalRewards
+ Params queries a specific parameter of a module, given its subspace and
+ key.
+ operationId: CosmosParamsV1Beta1Query_Params
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- rewards:
- type: array
- items:
- type: object
- properties:
- validator_address:
- type: string
- reward:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- DecCoin defines a token with a denomination and a
- decimal amount.
-
-
- NOTE: The amount field is an Dec which implements the
- custom method
-
- signatures required by gogoproto.
- description: |-
- DelegationDelegatorReward represents the properties
- of a delegator's delegation reward.
- description: rewards defines all the rewards accrued by a delegator.
- total:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- DecCoin defines a token with a denomination and a decimal
- amount.
-
-
- NOTE: The amount field is an Dec which implements the custom
- method
-
- signatures required by gogoproto.
- description: total defines the sum of all the rewards.
- description: |-
- QueryDelegationTotalRewardsResponse is the response type for the
- Query/DelegationTotalRewards RPC method.
+ param:
+ description: param defines the queried parameter.
+ type: object
+ properties:
+ subspace:
+ type: string
+ key:
+ type: string
+ value:
+ type: string
+ description: >-
+ QueryParamsResponse is response type for the Query/Params RPC
+ method.
default:
description: An unexpected error response.
schema:
@@ -10526,45 +6841,58 @@ paths:
type: string
additionalProperties: {}
parameters:
- - name: delegator_address
- description: delegator_address defines the delegator address to query for.
- in: path
- required: true
+ - name: subspace
+ description: subspace defines the module to query the parameter for.
+ in: query
+ required: false
+ type: string
+ - name: key
+ description: key defines the key of the parameter in the subspace.
+ in: query
+ required: false
type: string
tags:
- Query
- /cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}:
+ /cosmos/params/v1beta1/subspaces:
get:
- summary: DelegationRewards queries the total rewards accrued by a delegation.
- operationId: CosmosDistributionV1Beta1DelegationRewards
+ summary: >-
+ Subspaces queries for all registered subspaces and all keys for a
+ subspace.
+ description: 'Since: cosmos-sdk 0.46'
+ operationId: CosmosParamsV1Beta1Query_Subspaces
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- rewards:
+ subspaces:
type: array
items:
type: object
properties:
- denom:
- type: string
- amount:
+ subspace:
type: string
+ keys:
+ type: array
+ items:
+ type: string
description: >-
- DecCoin defines a token with a denomination and a decimal
- amount.
+ Subspace defines a parameter subspace name and all the keys
+ that exist for
+ the subspace.
- NOTE: The amount field is an Dec which implements the custom
- method
- signatures required by gogoproto.
- description: rewards defines the rewards accrued by a delegation.
- description: |-
- QueryDelegationRewardsResponse is the response type for the
- Query/DelegationRewards RPC method.
+ Since: cosmos-sdk 0.46
+ description: >-
+ QuerySubspacesResponse defines the response types for querying for
+ all
+
+ registered subspaces and all keys for a subspace.
+
+
+ Since: cosmos-sdk 0.46
default:
description: An unexpected error response.
schema:
@@ -10583,39 +6911,24 @@ paths:
'@type':
type: string
additionalProperties: {}
- parameters:
- - name: delegator_address
- description: delegator_address defines the delegator address to query for.
- in: path
- required: true
- type: string
- - name: validator_address
- description: validator_address defines the validator address to query for.
- in: path
- required: true
- type: string
tags:
- Query
- /cosmos/distribution/v1beta1/delegators/{delegator_address}/validators:
- get:
- summary: DelegatorValidators queries the validators of a delegator.
- operationId: CosmosDistributionV1Beta1DelegatorValidators
+ /cosmos.slashing.v1beta1.Msg/Unjail:
+ post:
+ summary: >-
+ Unjail defines a method for unjailing a jailed validator, thus returning
+
+ them into the bonded validator set, so they can begin receiving
+ provisions
+
+ and rewards again.
+ operationId: CosmosSlashingV1Beta1Msg_Unjail
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- validators:
- type: array
- items:
- type: string
- description: >-
- validators defines the validators a delegator is delegating
- for.
- description: |-
- QueryDelegatorValidatorsResponse is the response type for the
- Query/DelegatorValidators RPC method.
+ title: MsgUnjailResponse defines the Msg/Unjail response type
default:
description: An unexpected error response.
schema:
@@ -10635,29 +6948,39 @@ paths:
type: string
additionalProperties: {}
parameters:
- - name: delegator_address
- description: delegator_address defines the delegator address to query for.
- in: path
+ - name: body
+ in: body
required: true
- type: string
+ schema:
+ type: object
+ properties:
+ validator_addr:
+ type: string
+ title: MsgUnjail defines the Msg/Unjail request type
tags:
- - Query
- /cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address:
- get:
- summary: DelegatorWithdrawAddress queries withdraw address of a delegator.
- operationId: CosmosDistributionV1Beta1DelegatorWithdrawAddress
+ - Msg
+ /cosmos.slashing.v1beta1.Msg/UpdateParams:
+ post:
+ summary: >-
+ UpdateParams defines a governance operation for updating the x/slashing
+ module
+
+ parameters. The authority defaults to the x/gov module account.
+ description: 'Since: cosmos-sdk 0.47'
+ operationId: CosmosSlashingV1Beta1Msg_UpdateParams
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- withdraw_address:
- type: string
- description: withdraw_address defines the delegator address to query for.
- description: |-
- QueryDelegatorWithdrawAddressResponse is the response type for the
- Query/DelegatorWithdrawAddress RPC method.
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
+
+ MsgUpdateParams message.
+
+
+ Since: cosmos-sdk 0.47
default:
description: An unexpected error response.
schema:
@@ -10677,332 +7000,68 @@ paths:
type: string
additionalProperties: {}
parameters:
- - name: delegator_address
- description: delegator_address defines the delegator address to query for.
- in: path
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
+
+ Since: cosmos-sdk 0.47
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/distribution/v1beta1/params:
- get:
- summary: Params queries params of the distribution module.
- operationId: CosmosDistributionV1Beta1Params
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
params:
- description: params defines the parameters of the module.
+ description: |-
+ params defines the x/slashing parameters to update.
+
+ NOTE: All parameters must be supplied.
type: object
properties:
- community_tax:
+ signed_blocks_window:
type: string
- base_proposer_reward:
+ format: int64
+ min_signed_per_window:
type: string
- description: >-
- Deprecated: The base_proposer_reward field is deprecated
- and is no longer used
-
- in the x/distribution module's reward mechanism.
- bonus_proposer_reward:
+ format: byte
+ downtime_jail_duration:
type: string
- description: >-
- Deprecated: The bonus_proposer_reward field is deprecated
- and is no longer used
+ slash_fraction_double_sign:
+ type: string
+ format: byte
+ slash_fraction_downtime:
+ type: string
+ format: byte
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- in the x/distribution module's reward mechanism.
- withdraw_addr_enabled:
- type: boolean
- description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
+ Since: cosmos-sdk 0.47
tags:
- - Query
- /cosmos/distribution/v1beta1/validators/{validator_address}:
- get:
+ - Msg
+ /cosmos.staking.v1beta1.Msg/BeginRedelegate:
+ post:
summary: >-
- ValidatorDistributionInfo queries validator commission and
- self-delegation rewards for validator
- operationId: CosmosDistributionV1Beta1ValidatorDistributionInfo
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- operator_address:
- type: string
- description: operator_address defines the validator operator address.
- self_bond_rewards:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- DecCoin defines a token with a denomination and a decimal
- amount.
-
-
- NOTE: The amount field is an Dec which implements the custom
- method
-
- signatures required by gogoproto.
- description: self_bond_rewards defines the self delegations rewards.
- commission:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- DecCoin defines a token with a denomination and a decimal
- amount.
-
-
- NOTE: The amount field is an Dec which implements the custom
- method
+ BeginRedelegate defines a method for performing a redelegation
- signatures required by gogoproto.
- description: commission defines the commission the validator received.
- description: >-
- QueryValidatorDistributionInfoResponse is the response type for
- the Query/ValidatorDistributionInfo RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: validator_address
- description: validator_address defines the validator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/distribution/v1beta1/validators/{validator_address}/commission:
- get:
- summary: ValidatorCommission queries accumulated commission for a validator.
- operationId: CosmosDistributionV1Beta1ValidatorCommission
+ of coins from a delegator and source validator to a destination
+ validator.
+ operationId: CosmosStakingV1Beta1Msg_BeginRedelegate
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- commission:
- description: commission defines the commission the validator received.
- type: object
- properties:
- commission:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- DecCoin defines a token with a denomination and a
- decimal amount.
-
-
- NOTE: The amount field is an Dec which implements the
- custom method
-
- signatures required by gogoproto.
- title: |-
- QueryValidatorCommissionResponse is the response type for the
- Query/ValidatorCommission RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
+ completion_time:
type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: validator_address
- description: validator_address defines the validator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards:
- get:
- summary: ValidatorOutstandingRewards queries rewards of a validator address.
- operationId: CosmosDistributionV1Beta1ValidatorOutstandingRewards
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- rewards:
- type: object
- properties:
- rewards:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- DecCoin defines a token with a denomination and a
- decimal amount.
-
-
- NOTE: The amount field is an Dec which implements the
- custom method
-
- signatures required by gogoproto.
- description: >-
- ValidatorOutstandingRewards represents outstanding
- (un-withdrawn) rewards
-
- for a validator inexpensive to track, allows simple sanity
- checks.
+ format: date-time
description: >-
- QueryValidatorOutstandingRewardsResponse is the response type for
- the
-
- Query/ValidatorOutstandingRewards RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: validator_address
- description: validator_address defines the validator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/distribution/v1beta1/validators/{validator_address}/slashes:
- get:
- summary: ValidatorSlashes queries slash events of a validator.
- operationId: CosmosDistributionV1Beta1ValidatorSlashes
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- slashes:
- type: array
- items:
- type: object
- properties:
- validator_period:
- type: string
- format: uint64
- fraction:
- type: string
- description: >-
- ValidatorSlashEvent represents a validator slash event.
-
- Height is implicit within the store key.
-
- This is needed to calculate appropriate amount of staking
- tokens
-
- for delegations which are withdrawn after a slash has
- occurred.
- description: slashes defines the slashes the validator received.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: |-
- QueryValidatorSlashesResponse is the response type for the
- Query/ValidatorSlashes RPC method.
+ MsgBeginRedelegateResponse defines the Msg/BeginRedelegate
+ response type.
default:
description: An unexpected error response.
schema:
@@ -11014,104 +7073,6 @@ paths:
message:
type: string
details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: validator_address
- description: validator_address defines the validator address to query for.
- in: path
- required: true
- type: string
- - name: starting_height
- description: >-
- starting_height defines the optional starting height to query the
- slashes.
- in: query
- required: false
- type: string
- format: uint64
- - name: ending_height
- description: >-
- starting_height defines the optional ending height to query the
- slashes.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/evidence/v1beta1/evidence:
- get:
- summary: AllEvidence queries all evidence.
- operationId: CosmosEvidenceV1Beta1AllEvidence
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- evidence:
type: array
items:
type: object
@@ -11207,8 +7168,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -11218,7 +7183,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -11246,10 +7211,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -11286,31 +7249,64 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
- description: evidence returns all evidences.
- pagination:
- description: pagination defines the pagination in the response.
+ parameters:
+ - name: body
+ description: >-
+ MsgBeginRedelegate defines a SDK message for performing a
+ redelegation
+
+ of coins from a delegator and source validator to a destination
+ validator.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ validator_src_address:
+ type: string
+ validator_dst_address:
+ type: string
+ amount:
type: object
properties:
- next_key:
+ denom:
type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ amount:
type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
- was set, its value is undefined otherwise
+ signatures required by gogoproto.
description: >-
- QueryAllEvidenceResponse is the response type for the
- Query/AllEvidence RPC
+ MsgBeginRedelegate defines a SDK message for performing a
+ redelegation
- method.
+ of coins from a delegator and source validator to a destination
+ validator.
+ tags:
+ - Msg
+ /cosmos.staking.v1beta1.Msg/CancelUnbondingDelegation:
+ post:
+ summary: >-
+ CancelUnbondingDelegation defines a method for performing canceling the
+ unbonding delegation
+
+ and delegate back to previous validator.
+ description: 'Since: cosmos-sdk 0.46'
+ operationId: CosmosStakingV1Beta1Msg_CancelUnbondingDelegation
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: 'Since: cosmos-sdk 0.46'
+ title: MsgCancelUnbondingDelegationResponse
default:
description: An unexpected error response.
schema:
@@ -11417,8 +7413,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -11428,7 +7428,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -11456,10 +7456,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -11497,139 +7495,57 @@ paths:
"value": "1.212s"
}
parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/evidence/v1beta1/evidence/{hash}:
- get:
- summary: Evidence queries evidence based on evidence hash.
- operationId: CosmosEvidenceV1Beta1Evidence
- responses:
- '200':
- description: A successful response.
+ - name: body
+ description: 'Since: cosmos-sdk 0.46'
+ in: body
+ required: true
schema:
type: object
properties:
- evidence:
- description: evidence returns the requested evidence.
+ delegator_address:
+ type: string
+ validator_address:
+ type: string
+ amount:
type: object
properties:
- '@type':
+ denom:
type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all
- types that they
-
- expect it to use in the context of Any. However, for URLs
- which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ NOTE: The amount field is an Int which implements the custom
+ method
- used with implementation specific semantics.
- additionalProperties: {}
+ signatures required by gogoproto.
+ title: >-
+ amount is always less than or equal to unbonding delegation
+ entry balance
+ creation_height:
+ type: string
+ format: int64
+ description: creation_height is the height which the unbonding took place.
+ description: 'Since: cosmos-sdk 0.46'
+ title: >-
+ MsgCancelUnbondingDelegation defines the SDK message for
+ performing a cancel unbonding delegation for delegator
+ tags:
+ - Msg
+ /cosmos.staking.v1beta1.Msg/CreateValidator:
+ post:
+ summary: CreateValidator defines a method for creating a new validator.
+ operationId: CosmosStakingV1Beta1Msg_CreateValidator
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
description: >-
- QueryEvidenceResponse is the response type for the Query/Evidence
- RPC method.
+ MsgCreateValidatorResponse defines the Msg/CreateValidator
+ response type.
default:
description: An unexpected error response.
schema:
@@ -11736,8 +7652,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -11747,7 +7667,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -11775,10 +7695,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -11816,119 +7734,278 @@ paths:
"value": "1.212s"
}
parameters:
- - name: hash
- description: |-
- hash defines the evidence hash of the requested evidence.
-
- Since: cosmos-sdk 0.47
- in: path
+ - name: body
+ description: >-
+ MsgCreateValidator defines a SDK message for creating a new
+ validator.
+ in: body
required: true
- type: string
- - name: evidence_hash
- description: |-
- evidence_hash defines the hash of the requested evidence.
- Deprecated: Use hash, a HEX encoded string, instead.
- in: query
- required: false
- type: string
- format: byte
- tags:
- - Query
- /cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}:
- get:
- summary: Allowance returns fee granted to the grantee by the granter.
- operationId: CosmosFeegrantV1Beta1Allowance
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- allowance:
- description: allowance is a allowance granted for grantee by granter.
+ description:
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: moniker defines a human-readable name for the validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex. UPort
+ or Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: >-
+ security_contact defines an optional email for security
+ contact.
+ details:
+ type: string
+ description: details define other optional details.
+ description: Description defines a validator description.
+ commission:
type: object
properties:
- granter:
+ rate:
type: string
description: >-
- granter is the address of the user granting an allowance
- of their funds.
- grantee:
+ rate is the commission rate charged to delegators, as a
+ fraction.
+ max_rate:
type: string
description: >-
- grantee is the address of the user being granted an
- allowance of another user's funds.
- allowance:
+ max_rate defines the maximum commission rate which
+ validator can ever charge, as a fraction.
+ max_change_rate:
+ type: string
description: >-
- allowance can be any of basic, periodic, allowed fee
- allowance.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
+ max_change_rate defines the maximum daily increase of the
+ validator commission, as a fraction.
+ description: >-
+ CommissionRates defines the initial commission rates to be
+ used for creating
- protocol buffer message. This string must contain at
- least
+ a validator.
+ min_self_delegation:
+ type: string
+ delegator_address:
+ type: string
+ description: >-
+ Deprecated: Use of Delegator Address in MsgCreateValidator is
+ deprecated.
- one "/" character. The last segment of the URL's path
- must represent
+ The validator address bytes and delegator address bytes refer
+ to the same account while creating validator (defer
- the fully qualified name of the type (as in
+ only in bech32 notation).
+ validator_address:
+ type: string
+ pubkey:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
+ protocol buffer message. This string must contain at least
- (e.g., leading "." is not accepted).
+ one "/" character. The last segment of the URL's path must
+ represent
+ the fully qualified name of the type (as in
- In practice, teams usually precompile into the binary
- all types that they
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- expect it to use in the context of Any. However, for
- URLs which use the
+ (e.g., leading "." is not accepted).
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
- server that maps type URLs to message definitions as
- follows:
+ In practice, teams usually precompile into the binary all
+ types that they
+ expect it to use in the context of Any. However, for URLs
+ which use the
- * If no scheme is provided, `https` is assumed.
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ server that maps type URLs to message definitions as
+ follows:
- Note: this functionality is not currently available in
- the official
- protobuf release, and it is not used for type URLs
- beginning with
+ * If no scheme is provided, `https` is assumed.
- type.googleapis.com.
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+ Note: this functionality is not currently available in the
+ official
- Schemes other than `http`, `https` (or the empty
- scheme) might be
+ protobuf release, and it is not used for type URLs
+ beginning with
- used with implementation specific semantics.
- additionalProperties: {}
- title: >-
- Grant is stored in the KVStore to record a grant with full
- context
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ value:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
+
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
description: >-
- QueryAllowanceResponse is the response type for the
- Query/Allowance RPC method.
+ MsgCreateValidator defines a SDK message for creating a new
+ validator.
+ tags:
+ - Msg
+ /cosmos.staking.v1beta1.Msg/Delegate:
+ post:
+ summary: |-
+ Delegate defines a method for performing a delegation of coins
+ from a delegator to a validator.
+ operationId: CosmosStakingV1Beta1Msg_Delegate
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: MsgDelegateResponse defines the Msg/Delegate response type.
default:
description: An unexpected error response.
schema:
@@ -12035,8 +8112,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -12046,7 +8127,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -12074,10 +8155,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -12115,138 +8194,55 @@ paths:
"value": "1.212s"
}
parameters:
- - name: granter
- description: >-
- granter is the address of the user granting an allowance of their
- funds.
- in: path
- required: true
- type: string
- - name: grantee
+ - name: body
description: >-
- grantee is the address of the user being granted an allowance of
- another user's funds.
- in: path
+ MsgDelegate defines a SDK message for performing a delegation of
+ coins
+
+ from a delegator to a validator.
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/feegrant/v1beta1/allowances/{grantee}:
- get:
- summary: Allowances returns all the grants for address.
- operationId: CosmosFeegrantV1Beta1Allowances
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- allowances:
- type: array
- items:
- type: object
- properties:
- granter:
- type: string
- description: >-
- granter is the address of the user granting an allowance
- of their funds.
- grantee:
- type: string
- description: >-
- grantee is the address of the user being granted an
- allowance of another user's funds.
- allowance:
- description: >-
- allowance can be any of basic, periodic, allowed fee
- allowance.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- title: >-
- Grant is stored in the KVStore to record a grant with full
- context
- description: allowances are allowance's granted for grantee by granter.
- pagination:
- description: pagination defines an pagination for the response.
+ delegator_address:
+ type: string
+ validator_address:
+ type: string
+ amount:
type: object
properties:
- next_key:
+ denom:
type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ amount:
type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ description: >-
+ Coin defines a token with a denomination and an amount.
- was set, its value is undefined otherwise
+
+ NOTE: The amount field is an Int which implements the custom
+ method
+
+ signatures required by gogoproto.
+ description: >-
+ MsgDelegate defines a SDK message for performing a delegation of
+ coins
+
+ from a delegator to a validator.
+ tags:
+ - Msg
+ /cosmos.staking.v1beta1.Msg/EditValidator:
+ post:
+ summary: EditValidator defines a method for editing an existing validator.
+ operationId: CosmosStakingV1Beta1Msg_EditValidator
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
description: >-
- QueryAllowancesResponse is the response type for the
- Query/Allowances RPC method.
+ MsgEditValidatorResponse defines the Msg/EditValidator response
+ type.
default:
description: An unexpected error response.
schema:
@@ -12353,8 +8349,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -12364,7 +8364,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -12392,10 +8392,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -12433,188 +8431,91 @@ paths:
"value": "1.212s"
}
parameters:
- - name: grantee
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
+ - name: body
description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
+ MsgEditValidator defines a SDK message for editing an existing
+ validator.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ description:
+ type: object
+ properties:
+ moniker:
+ type: string
+ description: moniker defines a human-readable name for the validator.
+ identity:
+ type: string
+ description: >-
+ identity defines an optional identity signature (ex. UPort
+ or Keybase).
+ website:
+ type: string
+ description: website defines an optional website link.
+ security_contact:
+ type: string
+ description: >-
+ security_contact defines an optional email for security
+ contact.
+ details:
+ type: string
+ description: details define other optional details.
+ description: Description defines a validator description.
+ validator_address:
+ type: string
+ commission_rate:
+ type: string
+ title: >-
+ We pass a reference to the new commission rate and min self
+ delegation as
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ it's not mandatory to update. If not updated, the deserialized
+ rate will be
+ zero with no way to distinguish if an update was intended.
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ REF: #2373
+ min_self_delegation:
+ type: string
+ description: >-
+ MsgEditValidator defines a SDK message for editing an existing
+ validator.
tags:
- - Query
- /cosmos/feegrant/v1beta1/issued/{granter}:
- get:
- summary: AllowancesByGranter returns all the grants given by an address
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosFeegrantV1Beta1AllowancesByGranter
+ - Msg
+ /cosmos.staking.v1beta1.Msg/Undelegate:
+ post:
+ summary: |-
+ Undelegate defines a method for performing an undelegation from a
+ delegate and a validator.
+ operationId: CosmosStakingV1Beta1Msg_Undelegate
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- allowances:
- type: array
- items:
- type: object
- properties:
- granter:
- type: string
- description: >-
- granter is the address of the user granting an allowance
- of their funds.
- grantee:
- type: string
- description: >-
- grantee is the address of the user being granted an
- allowance of another user's funds.
- allowance:
- description: >-
- allowance can be any of basic, periodic, allowed fee
- allowance.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- title: >-
- Grant is stored in the KVStore to record a grant with full
- context
- description: allowances that have been issued by the granter.
- pagination:
- description: pagination defines an pagination for the response.
+ completion_time:
+ type: string
+ format: date-time
+ amount:
type: object
properties:
- next_key:
+ denom:
type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ amount:
type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ description: >-
+ Coin defines a token with a denomination and an amount.
- was set, its value is undefined otherwise
- description: >-
- QueryAllowancesByGranterResponse is the response type for the
- Query/AllowancesByGranter RPC method.
+ NOTE: The amount field is an Int which implements the custom
+ method
- Since: cosmos-sdk 0.46
+ signatures required by gogoproto.
+ title: amount returns the amount of undelegated coins
+ description: MsgUndelegateResponse defines the Msg/Undelegate response type.
default:
description: An unexpected error response.
schema:
@@ -12721,8 +8622,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -12732,7 +8637,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -12760,10 +8665,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -12801,212 +8704,63 @@ paths:
"value": "1.212s"
}
parameters:
- - name: granter
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
+ - name: body
description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
+ MsgUndelegate defines a SDK message for performing an undelegation
+ from a
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/gov/v1/params/{params_type}:
- get:
- summary: Params queries all parameters of the gov module.
- operationId: CosmosGovV1Params
- responses:
- '200':
- description: A successful response.
+ delegate and a validator.
+ in: body
+ required: true
schema:
type: object
properties:
- voting_params:
- description: |-
- Deprecated: Prefer to use `params` instead.
- voting_params defines the parameters related to voting.
- type: object
- properties:
- voting_period:
- type: string
- description: Duration of the voting period.
- deposit_params:
- description: |-
- Deprecated: Prefer to use `params` instead.
- deposit_params defines the parameters related to deposit.
+ delegator_address:
+ type: string
+ validator_address:
+ type: string
+ amount:
type: object
properties:
- min_deposit:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- description: Minimum deposit for a proposal to enter voting period.
- max_deposit_period:
+ denom:
type: string
- description: >-
- Maximum period for Atom holders to deposit on a proposal.
- Initial value: 2
-
- months.
- tally_params:
- description: |-
- Deprecated: Prefer to use `params` instead.
- tally_params defines the parameters related to tally.
- type: object
- properties:
- quorum:
+ amount:
type: string
- description: >-
- Minimum percentage of total stake needed to vote for a
- result to be
+ description: >-
+ Coin defines a token with a denomination and an amount.
- considered valid.
- threshold:
- type: string
- description: >-
- Minimum proportion of Yes votes for proposal to pass.
- Default value: 0.5.
- veto_threshold:
- type: string
- description: >-
- Minimum value of Veto votes to Total votes ratio for
- proposal to be
- vetoed. Default value: 1/3.
- params:
- description: |-
- params defines all the paramaters of x/gov module.
+ NOTE: The amount field is an Int which implements the custom
+ method
- Since: cosmos-sdk 0.47
- type: object
- properties:
- min_deposit:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
+ signatures required by gogoproto.
+ description: >-
+ MsgUndelegate defines a SDK message for performing an undelegation
+ from a
+ delegate and a validator.
+ tags:
+ - Msg
+ /cosmos.staking.v1beta1.Msg/UpdateParams:
+ post:
+ summary: |-
+ UpdateParams defines an operation for updating the x/staking module
+ parameters.
+ Since: cosmos-sdk 0.47
+ operationId: CosmosStakingV1Beta1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- NOTE: The amount field is an Int which implements the
- custom method
+ MsgUpdateParams message.
- signatures required by gogoproto.
- description: Minimum deposit for a proposal to enter voting period.
- max_deposit_period:
- type: string
- description: >-
- Maximum period for Atom holders to deposit on a proposal.
- Initial value: 2
- months.
- voting_period:
- type: string
- description: Duration of the voting period.
- quorum:
- type: string
- description: >-
- Minimum percentage of total stake needed to vote for a
- result to be
- considered valid.
- threshold:
- type: string
- description: >-
- Minimum proportion of Yes votes for proposal to pass.
- Default value: 0.5.
- veto_threshold:
- type: string
- description: >-
- Minimum value of Veto votes to Total votes ratio for
- proposal to be
- vetoed. Default value: 1/3.
- min_initial_deposit_ratio:
- type: string
- description: >-
- The ratio representing the proportion of the deposit value
- that must be paid at proposal submission.
- burn_vote_quorum:
- type: boolean
- title: burn deposits if a proposal does not meet quorum
- burn_proposal_deposit_prevote:
- type: boolean
- title: burn deposits if the proposal does not enter voting period
- burn_vote_veto:
- type: boolean
- title: burn deposits if quorum with vote type no_veto is met
- description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
+ Since: cosmos-sdk 0.47
default:
description: An unexpected error response.
schema:
@@ -13113,8 +8867,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -13124,7 +8882,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -13152,10 +8910,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -13193,336 +8949,84 @@ paths:
"value": "1.212s"
}
parameters:
- - name: params_type
- description: >-
- params_type defines which parameters to query for, can be one of
- "voting",
+ - name: body
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- "tallying" or "deposit".
- in: path
+ Since: cosmos-sdk 0.47
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/gov/v1/proposals:
- get:
- summary: Proposals queries all proposals based on given status.
- operationId: CosmosGovV1Proposals
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- proposals:
- type: array
- items:
- type: object
- properties:
- id:
- type: string
- format: uint64
- description: id defines the unique id of the proposal.
- messages:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain
- at least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should
- be in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However,
- for URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions
- as follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently
- available in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods
- of the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL
- and the unpack
-
- methods only use the fully qualified type name after
- the last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message
- [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- messages are the arbitrary messages to be executed if
- the proposal passes.
- status:
- description: status defines the proposal status.
- type: string
- enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_DEPOSIT_PERIOD
- - PROPOSAL_STATUS_VOTING_PERIOD
- - PROPOSAL_STATUS_PASSED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_FAILED
- default: PROPOSAL_STATUS_UNSPECIFIED
- final_tally_result:
- description: >-
- final_tally_result is the final tally result of the
- proposal. When
-
- querying a proposal via gRPC, this field is not
- populated until the
-
- proposal's voting period has ended.
- type: object
- properties:
- yes_count:
- type: string
- description: yes_count is the number of yes votes on a proposal.
- abstain_count:
- type: string
- description: >-
- abstain_count is the number of abstain votes on a
- proposal.
- no_count:
- type: string
- description: no_count is the number of no votes on a proposal.
- no_with_veto_count:
- type: string
- description: >-
- no_with_veto_count is the number of no with veto
- votes on a proposal.
- submit_time:
- type: string
- format: date-time
- description: submit_time is the time of proposal submission.
- deposit_end_time:
- type: string
- format: date-time
- description: deposit_end_time is the end time for deposition.
- total_deposit:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an
- amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to
+ x/gov unless overwritten).
+ params:
+ description: |-
+ params defines the x/staking parameters to update.
- signatures required by gogoproto.
- description: total_deposit is the total deposit on the proposal.
- voting_start_time:
- type: string
- format: date-time
- description: >-
- voting_start_time is the starting time to vote on a
- proposal.
- voting_end_time:
- type: string
- format: date-time
- description: voting_end_time is the end time of voting on a proposal.
- metadata:
- type: string
- description: >-
- metadata is any arbitrary metadata attached to the
- proposal.
- title:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: title is the title of the proposal
- summary:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: summary is a short summary of the proposal
- proposer:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: Proposer is the address of the proposal sumbitter
- description: >-
- Proposal defines the core field members of a governance
- proposal.
- description: proposals defines all the requested governance proposals.
- pagination:
- description: pagination defines the pagination in the response.
+ NOTE: All parameters must be supplied.
type: object
properties:
- next_key:
+ unbonding_time:
type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ description: unbonding_time is the time duration of unbonding.
+ max_validators:
+ type: integer
+ format: int64
+ description: max_validators is the maximum number of validators.
+ max_entries:
+ type: integer
+ format: int64
+ description: >-
+ max_entries is the max entries for either unbonding
+ delegation or redelegation (per pair/trio).
+ historical_entries:
+ type: integer
+ format: int64
+ description: >-
+ historical_entries is the number of historical entries to
+ persist.
+ bond_denom:
+ type: string
+ description: bond_denom defines the bondable coin denomination.
+ min_commission_rate:
type: string
- format: uint64
title: >-
- total is total number of results available if
- PageRequest.count_total
+ min_commission_rate is the chain-wide minimum commission
+ rate that a validator can charge their delegators
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- was set, its value is undefined otherwise
- description: >-
- QueryProposalsResponse is the response type for the
- Query/Proposals RPC
+ Since: cosmos-sdk 0.47
+ tags:
+ - Msg
+ /ibc.applications.fee.v1.Msg/PayPacketFee:
+ post:
+ summary: >-
+ PayPacketFee defines a rpc handler method for MsgPayPacketFee
- method.
+ PayPacketFee is an open callback that may be called by any module/user
+ that wishes to escrow funds in order to
+
+ incentivize the relaying of the packet at the next sequence
+
+ NOTE: This method is intended to be used within a multi msg transaction,
+ where the subsequent msg that follows
+
+ initiates the lifecycle of the incentivized packet
+ operationId: IbcApplicationsFeeV1Msg_PayPacketFee
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ title: >-
+ MsgPayPacketFeeResponse defines the response type for the
+ PayPacketFee rpc
default:
description: An unexpected error response.
schema:
@@ -13629,8 +9133,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -13640,7 +9148,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -13668,10 +9176,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -13709,345 +9215,55 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_status
- description: |-
- proposal_status defines the status of the proposals.
-
- - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.
- - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
- period.
- - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
- period.
- - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
- passed.
- - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
- been rejected.
- - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
- failed.
- in: query
- required: false
- type: string
- enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_DEPOSIT_PERIOD
- - PROPOSAL_STATUS_VOTING_PERIOD
- - PROPOSAL_STATUS_PASSED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_FAILED
- default: PROPOSAL_STATUS_UNSPECIFIED
- - name: voter
- description: voter defines the voter address for the proposals.
- in: query
- required: false
- type: string
- - name: depositor
- description: depositor defines the deposit addresses from the proposals.
- in: query
- required: false
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/gov/v1/proposals/{proposal_id}:
- get:
- summary: Proposal queries proposal details based on ProposalID.
- operationId: CosmosGovV1Proposal
- responses:
- '200':
- description: A successful response.
+ - name: body
+ in: body
+ required: true
schema:
type: object
properties:
- proposal:
- description: proposal is the requested governance proposal.
+ fee:
+ title: >-
+ fee encapsulates the recv, ack and timeout fees associated
+ with an IBC packet
type: object
properties:
- id:
- type: string
- format: uint64
- description: id defines the unique id of the proposal.
- messages:
+ recv_fee:
type: array
items:
type: object
properties:
- '@type':
+ denom:
+ type: string
+ amount:
type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
+ Coin defines a token with a denomination and an amount.
- representation, that representation will be embedded
- adding a field
- `value` which holds the custom JSON in addition to the
- `@type`
+ NOTE: The amount field is an Int which implements the
+ custom method
- field. Example (for message
- [google.protobuf.Duration][]):
+ signatures required by gogoproto.
+ title: the packet receive fee
+ ack_fee:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- messages are the arbitrary messages to be executed if the
- proposal passes.
- status:
- description: status defines the proposal status.
- type: string
- enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_DEPOSIT_PERIOD
- - PROPOSAL_STATUS_VOTING_PERIOD
- - PROPOSAL_STATUS_PASSED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_FAILED
- default: PROPOSAL_STATUS_UNSPECIFIED
- final_tally_result:
- description: >-
- final_tally_result is the final tally result of the
- proposal. When
- querying a proposal via gRPC, this field is not populated
- until the
+ NOTE: The amount field is an Int which implements the
+ custom method
- proposal's voting period has ended.
- type: object
- properties:
- yes_count:
- type: string
- description: yes_count is the number of yes votes on a proposal.
- abstain_count:
- type: string
- description: >-
- abstain_count is the number of abstain votes on a
- proposal.
- no_count:
- type: string
- description: no_count is the number of no votes on a proposal.
- no_with_veto_count:
- type: string
- description: >-
- no_with_veto_count is the number of no with veto votes
- on a proposal.
- submit_time:
- type: string
- format: date-time
- description: submit_time is the time of proposal submission.
- deposit_end_time:
- type: string
- format: date-time
- description: deposit_end_time is the end time for deposition.
- total_deposit:
+ signatures required by gogoproto.
+ title: the packet acknowledgement fee
+ timeout_fee:
type: array
items:
type: object
@@ -14064,37 +9280,49 @@ paths:
custom method
signatures required by gogoproto.
- description: total_deposit is the total deposit on the proposal.
- voting_start_time:
- type: string
- format: date-time
- description: >-
- voting_start_time is the starting time to vote on a
- proposal.
- voting_end_time:
- type: string
- format: date-time
- description: voting_end_time is the end time of voting on a proposal.
- metadata:
- type: string
- description: >-
- metadata is any arbitrary metadata attached to the
- proposal.
- title:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: title is the title of the proposal
- summary:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: summary is a short summary of the proposal
- proposer:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: Proposer is the address of the proposal sumbitter
- description: >-
- QueryProposalResponse is the response type for the Query/Proposal
- RPC method.
+ title: the packet timeout fee
+ source_port_id:
+ type: string
+ title: the source port unique identifier
+ source_channel_id:
+ type: string
+ title: the source channel unique identifer
+ signer:
+ type: string
+ title: account address to refund fee if necessary
+ relayers:
+ type: array
+ items:
+ type: string
+ title: optional list of relayers permitted to the receive packet fees
+ title: >-
+ MsgPayPacketFee defines the request type for the PayPacketFee rpc
+
+ This Msg can be used to pay for a packet at the next sequence send
+ & should be combined with the Msg that will be
+
+ paid for
+ tags:
+ - Msg
+ /ibc.applications.fee.v1.Msg/PayPacketFeeAsync:
+ post:
+ summary: >-
+ PayPacketFeeAsync defines a rpc handler method for MsgPayPacketFeeAsync
+
+ PayPacketFeeAsync is an open callback that may be called by any
+ module/user that wishes to escrow funds in order to
+
+ incentivize the relaying of a known packet (i.e. at a particular
+ sequence)
+ operationId: IbcApplicationsFeeV1Msg_PayPacketFeeAsync
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ title: >-
+ MsgPayPacketFeeAsyncResponse defines the response type for the
+ PayPacketFeeAsync rpc
default:
description: An unexpected error response.
schema:
@@ -14201,8 +9429,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -14212,7 +9444,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -14240,10 +9472,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -14281,85 +9511,137 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- format: uint64
- tags:
- - Query
- /cosmos/gov/v1/proposals/{proposal_id}/deposits:
- get:
- summary: Deposits queries all deposits of a single proposal.
- operationId: CosmosGovV1Deposits
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- deposits:
- type: array
- items:
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- depositor:
- type: string
- description: >-
- depositor defines the deposit addresses from the
- proposals.
- amount:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an
- amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- description: amount to be deposited by depositor.
- description: >-
- Deposit defines an amount deposited by an account address to
- an active
-
- proposal.
- description: deposits defines the requested deposits.
- pagination:
- description: pagination defines the pagination in the response.
+ packet_id:
+ title: >-
+ unique packet identifier comprised of the channel ID, port ID
+ and sequence
type: object
properties:
- next_key:
+ port_id:
type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ title: channel port identifier
+ channel_id:
+ type: string
+ title: channel unique identifier
+ sequence:
type: string
format: uint64
+ title: packet sequence
+ packet_fee:
+ title: the packet fee associated with a particular IBC packet
+ type: object
+ properties:
+ fee:
title: >-
- total is total number of results available if
- PageRequest.count_total
+ fee encapsulates the recv, ack and timeout fees associated
+ with an IBC packet
+ type: object
+ properties:
+ recv_fee:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an
+ amount.
- was set, its value is undefined otherwise
- description: >-
- QueryDepositsResponse is the response type for the Query/Deposits
- RPC method.
+
+ NOTE: The amount field is an Int which implements
+ the custom method
+
+ signatures required by gogoproto.
+ title: the packet receive fee
+ ack_fee:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an
+ amount.
+
+
+ NOTE: The amount field is an Int which implements
+ the custom method
+
+ signatures required by gogoproto.
+ title: the packet acknowledgement fee
+ timeout_fee:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an
+ amount.
+
+
+ NOTE: The amount field is an Int which implements
+ the custom method
+
+ signatures required by gogoproto.
+ title: the packet timeout fee
+ refund_address:
+ type: string
+ title: the refund address for unspent fees
+ relayers:
+ type: array
+ items:
+ type: string
+ title: optional list of relayers permitted to receive fees
+ title: >-
+ MsgPayPacketFeeAsync defines the request type for the
+ PayPacketFeeAsync rpc
+
+ This Msg can be used to pay for a packet at a specified sequence
+ (instead of the next sequence send)
+ tags:
+ - Msg
+ /ibc.applications.fee.v1.Msg/RegisterCounterpartyPayee:
+ post:
+ summary: >-
+ RegisterCounterpartyPayee defines a rpc handler method for
+ MsgRegisterCounterpartyPayee
+
+ RegisterCounterpartyPayee is called by the relayer on each channelEnd
+ and allows them to specify the counterparty
+
+ payee address before relaying. This ensures they will be properly
+ compensated for forward relaying since
+
+ the destination chain must include the registered counterparty payee
+ address in the acknowledgement. This function
+
+ may be called more than once by a relayer, in which case, the latest
+ counterparty payee address is always used.
+ operationId: IbcApplicationsFeeV1Msg_RegisterCounterpartyPayee
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ title: >-
+ MsgRegisterCounterpartyPayeeResponse defines the response type for
+ the RegisterCounterpartyPayee rpc
default:
description: An unexpected error response.
schema:
@@ -14466,8 +9748,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -14477,7 +9763,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -14505,10 +9791,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -14546,116 +9830,54 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- format: uint64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
+ schema:
+ type: object
+ properties:
+ port_id:
+ type: string
+ title: unique port identifier
+ channel_id:
+ type: string
+ title: unique channel identifier
+ relayer:
+ type: string
+ title: the relayer address
+ counterparty_payee:
+ type: string
+ title: the counterparty payee address
+ title: >-
+ MsgRegisterCounterpartyPayee defines the request type for the
+ RegisterCounterpartyPayee rpc
+ tags:
+ - Msg
+ /ibc.applications.fee.v1.Msg/RegisterPayee:
+ post:
+ summary: >-
+ RegisterPayee defines a rpc handler method for MsgRegisterPayee
- count_total is only respected when offset is used. It is ignored
- when key
+ RegisterPayee is called by the relayer on each channelEnd and allows
+ them to set an optional
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ payee to which reverse and timeout relayer packet fees will be paid out.
+ The payee should be registered on
+ the source chain from which packets originate as this is where fee
+ distribution takes place. This function may be
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/gov/v1/proposals/{proposal_id}/deposits/{depositor}:
- get:
- summary: >-
- Deposit queries single deposit information based proposalID,
- depositAddr.
- operationId: CosmosGovV1Deposit
+ called more than once by a relayer, in which case, the latest payee is
+ always used.
+ operationId: IbcApplicationsFeeV1Msg_RegisterPayee
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- deposit:
- description: deposit defines the requested deposit.
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- depositor:
- type: string
- description: >-
- depositor defines the deposit addresses from the
- proposals.
- amount:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- description: amount to be deposited by depositor.
- description: >-
- QueryDepositResponse is the response type for the Query/Deposit
- RPC method.
+ title: >-
+ MsgRegisterPayeeResponse defines the response type for the
+ RegisterPayee rpc
default:
description: An unexpected error response.
schema:
@@ -14762,8 +9984,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -14773,7 +9999,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -14801,10 +10027,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -14842,52 +10066,49 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
- required: true
- type: string
- format: uint64
- - name: depositor
- description: depositor defines the deposit addresses from the proposals.
- in: path
+ - name: body
+ in: body
required: true
- type: string
+ schema:
+ type: object
+ properties:
+ port_id:
+ type: string
+ title: unique port identifier
+ channel_id:
+ type: string
+ title: unique channel identifier
+ relayer:
+ type: string
+ title: the relayer address
+ payee:
+ type: string
+ title: the payee address
+ title: >-
+ MsgRegisterPayee defines the request type for the RegisterPayee
+ rpc
tags:
- - Query
- /cosmos/gov/v1/proposals/{proposal_id}/tally:
- get:
- summary: TallyResult queries the tally of a proposal vote.
- operationId: CosmosGovV1TallyResult
+ - Msg
+ /ibc.applications.interchain_accounts.controller.v1.Msg/RegisterInterchainAccount:
+ post:
+ summary: >-
+ RegisterInterchainAccount defines a rpc handler for
+ MsgRegisterInterchainAccount.
+ operationId: >-
+ IbcApplicationsInterchainAccountsControllerV1Msg_RegisterInterchainAccount
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- tally:
- description: tally defines the requested tally.
- type: object
- properties:
- yes_count:
- type: string
- description: yes_count is the number of yes votes on a proposal.
- abstain_count:
- type: string
- description: >-
- abstain_count is the number of abstain votes on a
- proposal.
- no_count:
- type: string
- description: no_count is the number of no votes on a proposal.
- no_with_veto_count:
- type: string
- description: >-
- no_with_veto_count is the number of no with veto votes on
- a proposal.
- description: >-
- QueryTallyResultResponse is the response type for the Query/Tally
- RPC method.
+ channel_id:
+ type: string
+ port_id:
+ type: string
+ title: >-
+ MsgRegisterInterchainAccountResponse defines the response for
+ Msg/RegisterAccount
default:
description: An unexpected error response.
schema:
@@ -14994,8 +10215,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -15005,7 +10230,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -15033,10 +10258,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -15074,95 +10297,37 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- format: uint64
+ schema:
+ type: object
+ properties:
+ owner:
+ type: string
+ connection_id:
+ type: string
+ version:
+ type: string
+ title: >-
+ MsgRegisterInterchainAccount defines the payload for
+ Msg/RegisterAccount
tags:
- - Query
- /cosmos/gov/v1/proposals/{proposal_id}/votes:
- get:
- summary: Votes queries votes of a given proposal.
- operationId: CosmosGovV1Votes
+ - Msg
+ /ibc.applications.interchain_accounts.controller.v1.Msg/SendTx:
+ post:
+ summary: SendTx defines a rpc handler for MsgSendTx.
+ operationId: IbcApplicationsInterchainAccountsControllerV1Msg_SendTx
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- votes:
- type: array
- items:
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- voter:
- type: string
- description: voter is the voter address of the proposal.
- options:
- type: array
- items:
- type: object
- properties:
- option:
- description: >-
- option defines the valid vote options, it must not
- contain duplicate vote options.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- weight:
- type: string
- description: >-
- weight is the vote weight associated with the vote
- option.
- description: >-
- WeightedVoteOption defines a unit of vote for vote
- split.
- description: options is the weighted vote options.
- metadata:
- type: string
- description: >-
- metadata is any arbitrary metadata to attached to the
- vote.
- description: >-
- Vote defines a vote on a governance proposal.
-
- A Vote consists of a proposal ID, the voter, and the vote
- option.
- description: votes defines the queried votes.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryVotesResponse is the response type for the Query/Votes RPC
- method.
+ sequence:
+ type: string
+ format: uint64
+ title: MsgSendTxResponse defines the response for MsgSendTx
default:
description: An unexpected error response.
schema:
@@ -15269,8 +10434,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -15280,7 +10449,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -15308,10 +10477,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -15349,125 +10516,62 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- format: uint64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/gov/v1/proposals/{proposal_id}/votes/{voter}:
- get:
- summary: Vote queries voted information based on proposalID, voterAddr.
- operationId: CosmosGovV1Vote
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- vote:
- description: vote defines the queried vote.
+ owner:
+ type: string
+ connection_id:
+ type: string
+ packet_data:
type: object
properties:
- proposal_id:
+ type:
type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- voter:
+ enum:
+ - TYPE_UNSPECIFIED
+ - TYPE_EXECUTE_TX
+ default: TYPE_UNSPECIFIED
+ description: |-
+ - TYPE_UNSPECIFIED: Default zero value enumeration
+ - TYPE_EXECUTE_TX: Execute a transaction on an interchain accounts host chain
+ title: >-
+ Type defines a classification of message issued from a
+ controller chain to its associated interchain accounts
+
+ host
+ data:
type: string
- description: voter is the voter address of the proposal.
- options:
- type: array
- items:
- type: object
- properties:
- option:
- description: >-
- option defines the valid vote options, it must not
- contain duplicate vote options.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- weight:
- type: string
- description: >-
- weight is the vote weight associated with the vote
- option.
- description: >-
- WeightedVoteOption defines a unit of vote for vote
- split.
- description: options is the weighted vote options.
- metadata:
+ format: byte
+ memo:
type: string
- description: >-
- metadata is any arbitrary metadata to attached to the
- vote.
- description: >-
- QueryVoteResponse is the response type for the Query/Vote RPC
- method.
+ description: >-
+ InterchainAccountPacketData is comprised of a raw transaction,
+ type of transaction and optional memo field.
+ relative_timeout:
+ type: string
+ format: uint64
+ description: >-
+ Relative timeout timestamp provided will be added to the
+ current block time during transaction execution.
+
+ The timeout timestamp must be non-zero.
+ title: MsgSendTx defines the payload for Msg/SendTx
+ tags:
+ - Msg
+ /ibc.applications.interchain_accounts.controller.v1.Msg/UpdateParams:
+ post:
+ summary: UpdateParams defines a rpc handler for MsgUpdateParams.
+ operationId: IbcApplicationsInterchainAccountsControllerV1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams
default:
description: An unexpected error response.
schema:
@@ -15574,8 +10678,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -15585,7 +10693,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -15613,10 +10721,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -15654,94 +10760,107 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
- required: true
- type: string
- format: uint64
- - name: voter
- description: voter defines the voter address for the proposals.
- in: path
+ - name: body
+ in: body
required: true
- type: string
+ schema:
+ type: object
+ properties:
+ signer:
+ type: string
+ title: signer address
+ params:
+ description: >-
+ params defines the 27-interchain-accounts/controller
+ parameters to update.
+
+
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ controller_enabled:
+ type: boolean
+ description: >-
+ controller_enabled enables or disables the controller
+ submodule.
+ title: MsgUpdateParams defines the payload for Msg/UpdateParams
tags:
- - Query
- /cosmos/gov/v1beta1/params/{params_type}:
- get:
- summary: Params queries all parameters of the gov module.
- operationId: CosmosGovV1Beta1Params
+ - Msg
+ /ibc.applications.interchain_accounts.host.v1.Msg/UpdateParams:
+ post:
+ summary: UpdateParams defines a rpc handler for MsgUpdateParams.
+ operationId: IbcApplicationsInterchainAccountsHostV1Msg_UpdateParams
responses:
'200':
description: A successful response.
+ schema:
+ type: object
+ title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams
+ default:
+ description: An unexpected error response.
schema:
type: object
properties:
- voting_params:
- description: voting_params defines the parameters related to voting.
- type: object
- properties:
- voting_period:
- type: string
- description: Duration of the voting period.
- deposit_params:
- description: deposit_params defines the parameters related to deposit.
- type: object
- properties:
- min_deposit:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ additionalProperties: {}
+ parameters:
+ - name: body
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ signer:
+ type: string
+ title: signer address
+ params:
+ description: >-
+ params defines the 27-interchain-accounts/host parameters to
+ update.
- signatures required by gogoproto.
- description: Minimum deposit for a proposal to enter voting period.
- max_deposit_period:
- type: string
- description: >-
- Maximum period for Atom holders to deposit on a proposal.
- Initial value: 2
- months.
- tally_params:
- description: tally_params defines the parameters related to tally.
+ NOTE: All parameters must be supplied.
type: object
properties:
- quorum:
- type: string
- format: byte
- description: >-
- Minimum percentage of total stake needed to vote for a
- result to be
-
- considered valid.
- threshold:
- type: string
- format: byte
- description: >-
- Minimum proportion of Yes votes for proposal to pass.
- Default value: 0.5.
- veto_threshold:
- type: string
- format: byte
+ host_enabled:
+ type: boolean
+ description: host_enabled enables or disables the host submodule.
+ allow_messages:
+ type: array
+ items:
+ type: string
description: >-
- Minimum value of Veto votes to Total votes ratio for
- proposal to be
-
- vetoed. Default value: 1/3.
- description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
+ allow_messages defines a list of sdk message typeURLs
+ allowed to be executed on a host chain.
+ title: MsgUpdateParams defines the payload for Msg/UpdateParams
+ tags:
+ - Msg
+ /ibc.applications.transfer.v1.Msg/Transfer:
+ post:
+ summary: Transfer defines a rpc handler method for MsgTransfer.
+ operationId: IbcApplicationsTransferV1Msg_Transfer
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ sequence:
+ type: string
+ format: uint64
+ title: sequence number of the transfer packet sent
+ description: MsgTransferResponse defines the Msg/Transfer response type.
default:
description: An unexpected error response.
schema:
@@ -15848,8 +10967,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -15859,7 +10982,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -15887,10 +11010,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -15928,202 +11049,93 @@ paths:
"value": "1.212s"
}
parameters:
- - name: params_type
- description: >-
- params_type defines which parameters to query for, can be one of
- "voting",
-
- "tallying" or "deposit".
- in: path
+ - name: body
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/gov/v1beta1/proposals:
- get:
- summary: Proposals queries all proposals based on given status.
- operationId: CosmosGovV1Beta1Proposals
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- proposals:
- type: array
- items:
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- content:
- description: content is the proposal's content.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- status:
- description: status defines the proposal status.
- type: string
- enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_DEPOSIT_PERIOD
- - PROPOSAL_STATUS_VOTING_PERIOD
- - PROPOSAL_STATUS_PASSED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_FAILED
- default: PROPOSAL_STATUS_UNSPECIFIED
- final_tally_result:
- description: >-
- final_tally_result is the final tally result of the
- proposal. When
-
- querying a proposal via gRPC, this field is not
- populated until the
-
- proposal's voting period has ended.
- type: object
- properties:
- 'yes':
- type: string
- description: yes is the number of yes votes on a proposal.
- abstain:
- type: string
- description: >-
- abstain is the number of abstain votes on a
- proposal.
- 'no':
- type: string
- description: no is the number of no votes on a proposal.
- no_with_veto:
- type: string
- description: >-
- no_with_veto is the number of no with veto votes on
- a proposal.
- submit_time:
- type: string
- format: date-time
- description: submit_time is the time of proposal submission.
- deposit_end_time:
- type: string
- format: date-time
- description: deposit_end_time is the end time for deposition.
- total_deposit:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an
- amount.
+ source_port:
+ type: string
+ title: the port on which the packet will be sent
+ source_channel:
+ type: string
+ title: the channel by which the packet will be sent
+ token:
+ title: the tokens to be transferred
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- NOTE: The amount field is an Int which implements the
- custom method
+ NOTE: The amount field is an Int which implements the custom
+ method
- signatures required by gogoproto.
- description: total_deposit is the total deposit on the proposal.
- voting_start_time:
- type: string
- format: date-time
- description: >-
- voting_start_time is the starting time to vote on a
- proposal.
- voting_end_time:
- type: string
- format: date-time
- description: voting_end_time is the end time of voting on a proposal.
- description: >-
- Proposal defines the core field members of a governance
- proposal.
- description: proposals defines all the requested governance proposals.
- pagination:
- description: pagination defines the pagination in the response.
+ signatures required by gogoproto.
+ sender:
+ type: string
+ title: the sender address
+ receiver:
+ type: string
+ title: the recipient address on the destination chain
+ timeout_height:
+ description: |-
+ Timeout height relative to the current block height.
+ The timeout is disabled when set to 0.
type: object
properties:
- next_key:
+ revision_number:
type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
type: string
format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ title: the height within the given revision
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ timeout_timestamp:
+ type: string
+ format: uint64
+ description: |-
+ Timeout timestamp in absolute nanoseconds since unix epoch.
+ The timeout is disabled when set to 0.
+ memo:
+ type: string
+ title: optional memo
+ title: >-
+ MsgTransfer defines a msg to transfer fungible tokens (i.e Coins)
+ between
- was set, its value is undefined otherwise
+ ICS20 enabled chains. See ICS Spec here:
+
+ https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures
+ tags:
+ - Msg
+ /ibc.applications.transfer.v1.Msg/UpdateParams:
+ post:
+ summary: UpdateParams defines a rpc handler for MsgUpdateParams.
+ operationId: IbcApplicationsTransferV1Msg_UpdateParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
description: >-
- QueryProposalsResponse is the response type for the
- Query/Proposals RPC
+ MsgUpdateParamsResponse defines the response structure for
+ executing a
- method.
+ MsgUpdateParams message.
default:
description: An unexpected error response.
schema:
@@ -16230,8 +11242,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -16241,7 +11257,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -16269,10 +11285,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -16310,258 +11324,68 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_status
- description: |-
- proposal_status defines the status of the proposals.
-
- - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.
- - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
- period.
- - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
- period.
- - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
- passed.
- - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
- been rejected.
- - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
- failed.
- in: query
- required: false
- type: string
- enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_DEPOSIT_PERIOD
- - PROPOSAL_STATUS_VOTING_PERIOD
- - PROPOSAL_STATUS_PASSED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_FAILED
- default: PROPOSAL_STATUS_UNSPECIFIED
- - name: voter
- description: voter defines the voter address for the proposals.
- in: query
- required: false
- type: string
- - name: depositor
- description: depositor defines the deposit addresses from the proposals.
- in: query
- required: false
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
+ - name: body
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ signer:
+ type: string
+ title: signer address
+ params:
+ description: |-
+ params defines the transfer parameters to update.
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ send_enabled:
+ type: boolean
+ description: >-
+ send_enabled enables or disables all cross-chain token
+ transfers from this
+ chain.
+ receive_enabled:
+ type: boolean
+ description: >-
+ receive_enabled enables or disables all cross-chain token
+ transfers to this
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ chain.
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
tags:
- - Query
- /cosmos/gov/v1beta1/proposals/{proposal_id}:
- get:
- summary: Proposal queries proposal details based on ProposalID.
- operationId: CosmosGovV1Beta1Proposal
+ - Msg
+ /ibc.core.channel.v1.Msg/Acknowledgement:
+ post:
+ summary: Acknowledgement defines a rpc handler method for MsgAcknowledgement.
+ operationId: IbcCoreChannelV1Msg_Acknowledgement
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- proposal:
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- content:
- description: content is the proposal's content.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- status:
- description: status defines the proposal status.
- type: string
- enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_DEPOSIT_PERIOD
- - PROPOSAL_STATUS_VOTING_PERIOD
- - PROPOSAL_STATUS_PASSED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_FAILED
- default: PROPOSAL_STATUS_UNSPECIFIED
- final_tally_result:
- description: >-
- final_tally_result is the final tally result of the
- proposal. When
-
- querying a proposal via gRPC, this field is not populated
- until the
-
- proposal's voting period has ended.
- type: object
- properties:
- 'yes':
- type: string
- description: yes is the number of yes votes on a proposal.
- abstain:
- type: string
- description: abstain is the number of abstain votes on a proposal.
- 'no':
- type: string
- description: no is the number of no votes on a proposal.
- no_with_veto:
- type: string
- description: >-
- no_with_veto is the number of no with veto votes on a
- proposal.
- submit_time:
- type: string
- format: date-time
- description: submit_time is the time of proposal submission.
- deposit_end_time:
- type: string
- format: date-time
- description: deposit_end_time is the end time for deposition.
- total_deposit:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- description: total_deposit is the total deposit on the proposal.
- voting_start_time:
- type: string
- format: date-time
- description: >-
- voting_start_time is the starting time to vote on a
- proposal.
- voting_end_time:
- type: string
- format: date-time
- description: voting_end_time is the end time of voting on a proposal.
+ result:
+ type: string
+ enum:
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED
+ - RESPONSE_RESULT_TYPE_NOOP
+ - RESPONSE_RESULT_TYPE_SUCCESS
+ default: RESPONSE_RESULT_TYPE_UNSPECIFIED
description: >-
- Proposal defines the core field members of a governance
- proposal.
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value
+ enumeration
+ - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed)
+ - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully
+ title: >-
+ ResponseResultType defines the possible outcomes of the
+ execution of a message
description: >-
- QueryProposalResponse is the response type for the Query/Proposal
- RPC method.
+ MsgAcknowledgementResponse defines the Msg/Acknowledgement
+ response type.
default:
description: An unexpected error response.
schema:
@@ -16668,8 +11492,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -16679,7 +11507,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -16707,10 +11535,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -16748,85 +11574,144 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- format: uint64
- tags:
- - Query
- /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits:
- get:
- summary: Deposits queries all deposits of a single proposal.
- operationId: CosmosGovV1Beta1Deposits
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- deposits:
- type: array
- items:
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- depositor:
- type: string
- description: >-
- depositor defines the deposit addresses from the
- proposals.
- amount:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an
- amount.
+ packet:
+ type: object
+ properties:
+ sequence:
+ type: string
+ format: uint64
+ description: >-
+ number corresponds to the order of sends and receives,
+ where a Packet
+ with an earlier sequence number must be sent and received
+ before a Packet
- NOTE: The amount field is an Int which implements the
- custom method
+ with a later sequence number.
+ source_port:
+ type: string
+ description: identifies the port on the sending chain.
+ source_channel:
+ type: string
+ description: identifies the channel end on the sending chain.
+ destination_port:
+ type: string
+ description: identifies the port on the receiving chain.
+ destination_channel:
+ type: string
+ description: identifies the channel end on the receiving chain.
+ data:
+ type: string
+ format: byte
+ title: >-
+ actual opaque bytes transferred directly to the
+ application module
+ timeout_height:
+ title: block height after which the packet times out
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- signatures required by gogoproto.
- description: amount to be deposited by depositor.
- description: >-
- Deposit defines an amount deposited by an account address to
- an active
+ RevisionNumber the same. However some consensus algorithms
+ may choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
- proposal.
- description: deposits defines the requested deposits.
- pagination:
- description: pagination defines the pagination in the response.
+ height continues to be monitonically increasing even as
+ the RevisionHeight
+
+ gets reset
+ timeout_timestamp:
+ type: string
+ format: uint64
+ title: >-
+ block timestamp (in nanoseconds) after which the packet
+ times out
+ title: >-
+ Packet defines a type that carries data across different
+ chains through IBC
+ acknowledgement:
+ type: string
+ format: byte
+ proof_acked:
+ type: string
+ format: byte
+ proof_height:
type: object
properties:
- next_key:
+ revision_number:
type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
type: string
format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
- was set, its value is undefined otherwise
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ signer:
+ type: string
+ title: MsgAcknowledgement receives incoming IBC acknowledgement
+ tags:
+ - Msg
+ /ibc.core.channel.v1.Msg/ChannelCloseConfirm:
+ post:
+ summary: |-
+ ChannelCloseConfirm defines a rpc handler method for
+ MsgChannelCloseConfirm.
+ operationId: IbcCoreChannelV1Msg_ChannelCloseConfirm
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
description: >-
- QueryDepositsResponse is the response type for the Query/Deposits
- RPC method.
+ MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm
+ response
+
+ type.
default:
description: An unexpected error response.
schema:
@@ -16933,8 +11818,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -16944,7 +11833,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -16972,10 +11861,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -17013,116 +11900,76 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
- required: true
- type: string
- format: uint64
- - name: pagination.key
+ - name: body
description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
+ MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B
+ to acknowledge the change of channel state to CLOSED on Chain A.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ port_id:
+ type: string
+ channel_id:
+ type: string
+ proof_init:
+ type: string
+ format: byte
+ proof_height:
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- a count of the total number of items available for pagination in
- UIs.
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
- count_total is only respected when offset is used. It is ignored
- when key
+ height continues to be monitonically increasing even as the
+ RevisionHeight
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+ that can be compared against another Height for the purposes
+ of updating and
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ freezing clients
+ signer:
+ type: string
+ description: |-
+ MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B
+ to acknowledge the change of channel state to CLOSED on Chain A.
tags:
- - Query
- /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor}:
- get:
- summary: >-
- Deposit queries single deposit information based proposalID,
- depositAddr.
- operationId: CosmosGovV1Beta1Deposit
+ - Msg
+ /ibc.core.channel.v1.Msg/ChannelCloseInit:
+ post:
+ summary: ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit.
+ operationId: IbcCoreChannelV1Msg_ChannelCloseInit
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- deposit:
- description: deposit defines the requested deposit.
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- depositor:
- type: string
- description: >-
- depositor defines the deposit addresses from the
- proposals.
- amount:
- type: array
- items:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- description: amount to be deposited by depositor.
description: >-
- QueryDepositResponse is the response type for the Query/Deposit
- RPC method.
+ MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit
+ response type.
default:
description: An unexpected error response.
schema:
@@ -17229,8 +12076,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -17240,7 +12091,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -17268,10 +12119,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -17309,50 +12158,38 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
- required: true
- type: string
- format: uint64
- - name: depositor
- description: depositor defines the deposit addresses from the proposals.
- in: path
+ - name: body
+ description: |-
+ MsgChannelCloseInit defines a msg sent by a Relayer to Chain A
+ to close a channel with Chain B.
+ in: body
required: true
- type: string
+ schema:
+ type: object
+ properties:
+ port_id:
+ type: string
+ channel_id:
+ type: string
+ signer:
+ type: string
+ description: |-
+ MsgChannelCloseInit defines a msg sent by a Relayer to Chain A
+ to close a channel with Chain B.
tags:
- - Query
- /cosmos/gov/v1beta1/proposals/{proposal_id}/tally:
- get:
- summary: TallyResult queries the tally of a proposal vote.
- operationId: CosmosGovV1Beta1TallyResult
+ - Msg
+ /ibc.core.channel.v1.Msg/ChannelOpenAck:
+ post:
+ summary: ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck.
+ operationId: IbcCoreChannelV1Msg_ChannelOpenAck
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- tally:
- description: tally defines the requested tally.
- type: object
- properties:
- 'yes':
- type: string
- description: yes is the number of yes votes on a proposal.
- abstain:
- type: string
- description: abstain is the number of abstain votes on a proposal.
- 'no':
- type: string
- description: no is the number of no votes on a proposal.
- no_with_veto:
- type: string
- description: >-
- no_with_veto is the number of no with veto votes on a
- proposal.
description: >-
- QueryTallyResultResponse is the response type for the Query/Tally
- RPC method.
+ MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response
+ type.
default:
description: An unexpected error response.
schema:
@@ -17459,8 +12296,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -17470,7 +12311,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -17498,10 +12339,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -17539,114 +12378,88 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
+ - name: body
+ description: >-
+ MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to
+ acknowledge
+
+ the change of channel state to TRYOPEN on Chain B.
+ in: body
required: true
- type: string
- format: uint64
- tags:
- - Query
- /cosmos/gov/v1beta1/proposals/{proposal_id}/votes:
- get:
- summary: Votes queries votes of a given proposal.
- operationId: CosmosGovV1Beta1Votes
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- votes:
- type: array
- items:
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- voter:
- type: string
- description: voter is the voter address of the proposal.
- option:
- description: >-
- Deprecated: Prefer to use `options` instead. This field
- is set in queries
+ port_id:
+ type: string
+ channel_id:
+ type: string
+ counterparty_channel_id:
+ type: string
+ counterparty_version:
+ type: string
+ proof_try:
+ type: string
+ format: byte
+ proof_height:
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- if and only if `len(options) == 1` and that option has
- weight 1. In all
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
- other cases, this field will default to
- VOTE_OPTION_UNSPECIFIED.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- options:
- type: array
- items:
- type: object
- properties:
- option:
- description: >-
- option defines the valid vote options, it must not
- contain duplicate vote options.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- weight:
- type: string
- description: >-
- weight is the vote weight associated with the vote
- option.
- description: >-
- WeightedVoteOption defines a unit of vote for vote
- split.
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
- Since: cosmos-sdk 0.43
- description: |-
- options is the weighted vote options.
+ height continues to be monitonically increasing even as the
+ RevisionHeight
- Since: cosmos-sdk 0.43
- description: >-
- Vote defines a vote on a governance proposal.
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
- A Vote consists of a proposal ID, the voter, and the vote
- option.
- description: votes defines the queried votes.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ that can be compared against another Height for the purposes
+ of updating and
- was set, its value is undefined otherwise
+ freezing clients
+ signer:
+ type: string
description: >-
- QueryVotesResponse is the response type for the Query/Votes RPC
- method.
+ MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to
+ acknowledge
+
+ the change of channel state to TRYOPEN on Chain B.
+ tags:
+ - Msg
+ /ibc.core.channel.v1.Msg/ChannelOpenConfirm:
+ post:
+ summary: >-
+ ChannelOpenConfirm defines a rpc handler method for
+ MsgChannelOpenConfirm.
+ operationId: IbcCoreChannelV1Msg_ChannelOpenConfirm
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm
+ response
+
+ type.
default:
description: An unexpected error response.
schema:
@@ -17753,8 +12566,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -17764,7 +12581,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -17792,10 +12609,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -17833,144 +12648,83 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
- required: true
- type: string
- format: uint64
- - name: pagination.key
+ - name: body
description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to
+ acknowledge the change of channel state to OPEN on Chain A.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ port_id:
+ type: string
+ channel_id:
+ type: string
+ proof_ack:
+ type: string
+ format: byte
+ proof_height:
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- It is less efficient than using key. Only one of offset or key
- should
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
- a count of the total number of items available for pagination in
- UIs.
+ height continues to be monitonically increasing even as the
+ RevisionHeight
- count_total is only respected when offset is used. It is ignored
- when key
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ that can be compared against another Height for the purposes
+ of updating and
+ freezing clients
+ signer:
+ type: string
+ description: >-
+ MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B
+ to
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ acknowledge the change of channel state to OPEN on Chain A.
tags:
- - Query
- /cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter}:
- get:
- summary: Vote queries voted information based on proposalID, voterAddr.
- operationId: CosmosGovV1Beta1Vote
+ - Msg
+ /ibc.core.channel.v1.Msg/ChannelOpenInit:
+ post:
+ summary: ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit.
+ operationId: IbcCoreChannelV1Msg_ChannelOpenInit
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- vote:
- description: vote defines the queried vote.
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal_id defines the unique id of the proposal.
- voter:
- type: string
- description: voter is the voter address of the proposal.
- option:
- description: >-
- Deprecated: Prefer to use `options` instead. This field is
- set in queries
-
- if and only if `len(options) == 1` and that option has
- weight 1. In all
-
- other cases, this field will default to
- VOTE_OPTION_UNSPECIFIED.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- options:
- type: array
- items:
- type: object
- properties:
- option:
- description: >-
- option defines the valid vote options, it must not
- contain duplicate vote options.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- weight:
- type: string
- description: >-
- weight is the vote weight associated with the vote
- option.
- description: >-
- WeightedVoteOption defines a unit of vote for vote
- split.
-
-
- Since: cosmos-sdk 0.43
- description: |-
- options is the weighted vote options.
-
- Since: cosmos-sdk 0.43
+ channel_id:
+ type: string
+ version:
+ type: string
description: >-
- QueryVoteResponse is the response type for the Query/Vote RPC
- method.
+ MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit
+ response type.
default:
description: An unexpected error response.
schema:
@@ -18077,8 +12831,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -18088,7 +12846,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -18116,10 +12874,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -18157,70 +12913,118 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id defines the unique id of the proposal.
- in: path
- required: true
- type: string
- format: uint64
- - name: voter
- description: voter defines the voter address for the proposals.
- in: path
+ - name: body
+ description: >-
+ MsgChannelOpenInit defines an sdk.Msg to initialize a channel
+ handshake. It
+
+ is called by a relayer on Chain A.
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/group/v1/group_info/{group_id}:
- get:
- summary: GroupInfo queries group info based on group id.
- operationId: CosmosGroupV1GroupInfo
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- info:
- description: info is the GroupInfo of the group.
+ port_id:
+ type: string
+ channel:
type: object
properties:
- id:
- type: string
- format: uint64
- description: id is the unique ID of the group.
- admin:
- type: string
- description: admin is the account address of the group's admin.
- metadata:
+ state:
+ title: current state of the channel end
type: string
+ enum:
+ - STATE_UNINITIALIZED_UNSPECIFIED
+ - STATE_INIT
+ - STATE_TRYOPEN
+ - STATE_OPEN
+ - STATE_CLOSED
+ default: STATE_UNINITIALIZED_UNSPECIFIED
description: >-
- metadata is any arbitrary metadata to attached to the
- group.
+ State defines if a channel is in one of the following
+ states:
+
+ CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
+
+ - STATE_UNINITIALIZED_UNSPECIFIED: Default State
+ - STATE_INIT: A channel has just started the opening handshake.
+ - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
+ - STATE_OPEN: A channel has completed the handshake. Open channels are
+ ready to send and receive packets.
+ - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
+ packets.
+ ordering:
+ title: whether the channel is ordered or unordered
+ type: string
+ enum:
+ - ORDER_NONE_UNSPECIFIED
+ - ORDER_UNORDERED
+ - ORDER_ORDERED
+ default: ORDER_NONE_UNSPECIFIED
+ description: |-
+ - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering
+ - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
+ which they were sent.
+ - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
+ counterparty:
+ title: counterparty channel end
+ type: object
+ properties:
+ port_id:
+ type: string
+ description: >-
+ port on the counterparty chain which owns the other
+ end of the channel.
+ channel_id:
+ type: string
+ title: channel end on the counterparty chain
+ connection_hops:
+ type: array
+ items:
+ type: string
+ title: >-
+ list of connection identifiers, in order, along which
+ packets sent on
+
+ this channel will travel
version:
type: string
- format: uint64
title: >-
- version is used to track changes to a group's membership
- structure that
+ opaque channel version, which is agreed upon during the
+ handshake
+ description: >-
+ Channel defines pipeline for exactly-once packet delivery
+ between specific
- would break existing proposals. Whenever any members
- weight is changed,
+ modules on separate blockchains, which has at least one end
+ capable of
- or any member is added or removed this version is
- incremented and will
+ sending packets and one end capable of receiving packets.
+ signer:
+ type: string
+ description: >-
+ MsgChannelOpenInit defines an sdk.Msg to initialize a channel
+ handshake. It
- cause proposals based on older versions of this group to
- fail
- total_weight:
- type: string
- description: total_weight is the sum of the group members' weights.
- created_at:
- type: string
- format: date-time
- description: >-
- created_at is a timestamp specifying when a group was
- created.
- description: QueryGroupInfoResponse is the Query/GroupInfo response type.
+ is called by a relayer on Chain A.
+ tags:
+ - Msg
+ /ibc.core.channel.v1.Msg/ChannelOpenTry:
+ post:
+ summary: ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry.
+ operationId: IbcCoreChannelV1Msg_ChannelOpenTry
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ version:
+ type: string
+ channel_id:
+ type: string
+ description: >-
+ MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response
+ type.
default:
description: An unexpected error response.
schema:
@@ -18327,8 +13131,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -18338,7 +13146,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -18366,10 +13174,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -18407,82 +13213,178 @@ paths:
"value": "1.212s"
}
parameters:
- - name: group_id
- description: group_id is the unique ID of the group.
- in: path
+ - name: body
+ description: >-
+ MsgChannelOpenInit defines a msg sent by a Relayer to try to open a
+ channel
+
+ on Chain B. The version field within the Channel field has been
+ deprecated. Its
+
+ value will be ignored by core IBC.
+ in: body
required: true
- type: string
- format: uint64
- tags:
- - Query
- /cosmos/group/v1/group_members/{group_id}:
- get:
- summary: GroupMembers queries members of a group by group id.
- operationId: CosmosGroupV1GroupMembers
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- members:
- type: array
- items:
- type: object
- properties:
- group_id:
- type: string
- format: uint64
- description: group_id is the unique ID of the group.
- member:
- description: member is the member data.
- type: object
- properties:
- address:
- type: string
- description: address is the member's account address.
- weight:
- type: string
- description: >-
- weight is the member's voting weight that should be
- greater than 0.
- metadata:
- type: string
- description: >-
- metadata is any arbitrary metadata attached to the
- member.
- added_at:
- type: string
- format: date-time
- description: >-
- added_at is a timestamp specifying when a member was
- added.
- description: >-
- GroupMember represents the relationship between a group and
- a member.
- description: members are the members of the group with given group_id.
- pagination:
- description: pagination defines the pagination in the response.
+ port_id:
+ type: string
+ previous_channel_id:
+ type: string
+ description: >-
+ Deprecated: this field is unused. Crossing hello's are no
+ longer supported in core IBC.
+ channel:
type: object
properties:
- next_key:
+ state:
+ title: current state of the channel end
type: string
- format: byte
+ enum:
+ - STATE_UNINITIALIZED_UNSPECIFIED
+ - STATE_INIT
+ - STATE_TRYOPEN
+ - STATE_OPEN
+ - STATE_CLOSED
+ default: STATE_UNINITIALIZED_UNSPECIFIED
+ description: >-
+ State defines if a channel is in one of the following
+ states:
+
+ CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
+
+ - STATE_UNINITIALIZED_UNSPECIFIED: Default State
+ - STATE_INIT: A channel has just started the opening handshake.
+ - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
+ - STATE_OPEN: A channel has completed the handshake. Open channels are
+ ready to send and receive packets.
+ - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
+ packets.
+ ordering:
+ title: whether the channel is ordered or unordered
+ type: string
+ enum:
+ - ORDER_NONE_UNSPECIFIED
+ - ORDER_UNORDERED
+ - ORDER_ORDERED
+ default: ORDER_NONE_UNSPECIFIED
description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering
+ - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
+ which they were sent.
+ - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
+ counterparty:
+ title: counterparty channel end
+ type: object
+ properties:
+ port_id:
+ type: string
+ description: >-
+ port on the counterparty chain which owns the other
+ end of the channel.
+ channel_id:
+ type: string
+ title: channel end on the counterparty chain
+ connection_hops:
+ type: array
+ items:
+ type: string
+ title: >-
+ list of connection identifiers, in order, along which
+ packets sent on
+
+ this channel will travel
+ version:
type: string
- format: uint64
title: >-
- total is total number of results available if
- PageRequest.count_total
+ opaque channel version, which is agreed upon during the
+ handshake
+ description: >-
+ Channel defines pipeline for exactly-once packet delivery
+ between specific
+
+ modules on separate blockchains, which has at least one end
+ capable of
+
+ sending packets and one end capable of receiving packets.
+ counterparty_version:
+ type: string
+ proof_init:
+ type: string
+ format: byte
+ proof_height:
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- was set, its value is undefined otherwise
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ signer:
+ type: string
description: >-
- QueryGroupMembersResponse is the Query/GroupMembersResponse
- response type.
+ MsgChannelOpenInit defines a msg sent by a Relayer to try to open
+ a channel
+
+ on Chain B. The version field within the Channel field has been
+ deprecated. Its
+
+ value will be ignored by core IBC.
+ tags:
+ - Msg
+ /ibc.core.channel.v1.Msg/RecvPacket:
+ post:
+ summary: RecvPacket defines a rpc handler method for MsgRecvPacket.
+ operationId: IbcCoreChannelV1Msg_RecvPacket
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ result:
+ type: string
+ enum:
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED
+ - RESPONSE_RESULT_TYPE_NOOP
+ - RESPONSE_RESULT_TYPE_SUCCESS
+ default: RESPONSE_RESULT_TYPE_UNSPECIFIED
+ description: >-
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value
+ enumeration
+ - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed)
+ - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully
+ title: >-
+ ResponseResultType defines the possible outcomes of the
+ execution of a message
+ description: MsgRecvPacketResponse defines the Msg/RecvPacket response type.
default:
description: An unexpected error response.
schema:
@@ -18589,8 +13491,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -18600,7 +13506,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -18628,10 +13534,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -18669,212 +13573,151 @@ paths:
"value": "1.212s"
}
parameters:
- - name: group_id
- description: group_id is the unique ID of the group.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- format: uint64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/group/v1/group_policies_by_admin/{admin}:
- get:
- summary: GroupPoliciesByAdmin queries group policies by admin address.
- operationId: CosmosGroupV1GroupPoliciesByAdmin
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- group_policies:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- description: address is the account address of group policy.
- group_id:
- type: string
- format: uint64
- description: group_id is the unique ID of the group.
- admin:
- type: string
- description: admin is the account address of the group admin.
- metadata:
- type: string
- title: >-
- metadata is any arbitrary metadata attached to the group
- policy.
-
- the recommended format of the metadata is to be found
- here:
-
- https://docs.cosmos.network/v0.47/modules/group#decision-policy-1
- version:
- type: string
- format: uint64
- description: >-
- version is used to track changes to a group's
- GroupPolicyInfo structure that
-
- would create a different result on a running proposal.
- decision_policy:
- description: >-
- decision_policy specifies the group policy's decision
- policy.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
+ packet:
+ type: object
+ properties:
+ sequence:
+ type: string
+ format: uint64
+ description: >-
+ number corresponds to the order of sends and receives,
+ where a Packet
+ with an earlier sequence number must be sent and received
+ before a Packet
- In practice, teams usually precompile into the
- binary all types that they
+ with a later sequence number.
+ source_port:
+ type: string
+ description: identifies the port on the sending chain.
+ source_channel:
+ type: string
+ description: identifies the channel end on the sending chain.
+ destination_port:
+ type: string
+ description: identifies the port on the receiving chain.
+ destination_channel:
+ type: string
+ description: identifies the channel end on the receiving chain.
+ data:
+ type: string
+ format: byte
+ title: >-
+ actual opaque bytes transferred directly to the
+ application module
+ timeout_height:
+ title: block height after which the packet times out
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- expect it to use in the context of Any. However, for
- URLs which use the
+ RevisionNumber the same. However some consensus algorithms
+ may choose to
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- server that maps type URLs to message definitions as
- follows:
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+ height continues to be monitonically increasing even as
+ the RevisionHeight
- * If no scheme is provided, `https` is assumed.
+ gets reset
+ timeout_timestamp:
+ type: string
+ format: uint64
+ title: >-
+ block timestamp (in nanoseconds) after which the packet
+ times out
+ title: >-
+ Packet defines a type that carries data across different
+ chains through IBC
+ proof_commitment:
+ type: string
+ format: byte
+ proof_height:
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
- Note: this functionality is not currently available
- in the official
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- protobuf release, and it is not used for type URLs
- beginning with
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
- type.googleapis.com.
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
- Schemes other than `http`, `https` (or the empty
- scheme) might be
+ that can be compared against another Height for the purposes
+ of updating and
- used with implementation specific semantics.
- additionalProperties: {}
- created_at:
- type: string
- format: date-time
- description: >-
- created_at is a timestamp specifying when a group policy
- was created.
- description: >-
- GroupPolicyInfo represents the high-level on-chain
- information for a group policy.
+ freezing clients
+ signer:
+ type: string
+ title: MsgRecvPacket receives incoming IBC packet
+ tags:
+ - Msg
+ /ibc.core.channel.v1.Msg/Timeout:
+ post:
+ summary: Timeout defines a rpc handler method for MsgTimeout.
+ operationId: IbcCoreChannelV1Msg_Timeout
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ result:
+ type: string
+ enum:
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED
+ - RESPONSE_RESULT_TYPE_NOOP
+ - RESPONSE_RESULT_TYPE_SUCCESS
+ default: RESPONSE_RESULT_TYPE_UNSPECIFIED
description: >-
- group_policies are the group policies info with provided
- admin.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryGroupPoliciesByAdminResponse is the
- Query/GroupPoliciesByAdmin response type.
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value
+ enumeration
+ - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed)
+ - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully
+ title: >-
+ ResponseResultType defines the possible outcomes of the
+ execution of a message
+ description: MsgTimeoutResponse defines the Msg/Timeout response type.
default:
description: An unexpected error response.
schema:
@@ -18981,8 +13824,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -18992,7 +13839,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -19020,10 +13867,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -19061,227 +13906,172 @@ paths:
"value": "1.212s"
}
parameters:
- - name: admin
- description: admin is the admin address of the group policy.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ schema:
+ type: object
+ properties:
+ packet:
+ type: object
+ properties:
+ sequence:
+ type: string
+ format: uint64
+ description: >-
+ number corresponds to the order of sends and receives,
+ where a Packet
- It is less efficient than using key. Only one of offset or key
- should
+ with an earlier sequence number must be sent and received
+ before a Packet
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ with a later sequence number.
+ source_port:
+ type: string
+ description: identifies the port on the sending chain.
+ source_channel:
+ type: string
+ description: identifies the channel end on the sending chain.
+ destination_port:
+ type: string
+ description: identifies the port on the receiving chain.
+ destination_channel:
+ type: string
+ description: identifies the channel end on the receiving chain.
+ data:
+ type: string
+ format: byte
+ title: >-
+ actual opaque bytes transferred directly to the
+ application module
+ timeout_height:
+ title: block height after which the packet times out
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ RevisionNumber the same. However some consensus algorithms
+ may choose to
- a count of the total number of items available for pagination in
- UIs.
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- count_total is only respected when offset is used. It is ignored
- when key
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ height continues to be monitonically increasing even as
+ the RevisionHeight
+
+ gets reset
+ timeout_timestamp:
+ type: string
+ format: uint64
+ title: >-
+ block timestamp (in nanoseconds) after which the packet
+ times out
+ title: >-
+ Packet defines a type that carries data across different
+ chains through IBC
+ proof_unreceived:
+ type: string
+ format: byte
+ proof_height:
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ next_sequence_recv:
+ type: string
+ format: uint64
+ signer:
+ type: string
+ title: MsgTimeout receives timed-out packet
tags:
- - Query
- /cosmos/group/v1/group_policies_by_group/{group_id}:
- get:
- summary: GroupPoliciesByGroup queries group policies by group id.
- operationId: CosmosGroupV1GroupPoliciesByGroup
+ - Msg
+ /ibc.core.channel.v1.Msg/TimeoutOnClose:
+ post:
+ summary: TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose.
+ operationId: IbcCoreChannelV1Msg_TimeoutOnClose
responses:
'200':
description: A successful response.
schema:
type: object
properties:
- group_policies:
+ result:
+ type: string
+ enum:
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED
+ - RESPONSE_RESULT_TYPE_NOOP
+ - RESPONSE_RESULT_TYPE_SUCCESS
+ default: RESPONSE_RESULT_TYPE_UNSPECIFIED
+ description: >-
+ - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value
+ enumeration
+ - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed)
+ - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully
+ title: >-
+ ResponseResultType defines the possible outcomes of the
+ execution of a message
+ description: >-
+ MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response
+ type.
+ default:
+ description: An unexpected error response.
+ schema:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
type: array
items:
type: object
properties:
- address:
- type: string
- description: address is the account address of group policy.
- group_id:
- type: string
- format: uint64
- description: group_id is the unique ID of the group.
- admin:
- type: string
- description: admin is the account address of the group admin.
- metadata:
- type: string
- title: >-
- metadata is any arbitrary metadata attached to the group
- policy.
-
- the recommended format of the metadata is to be found
- here:
-
- https://docs.cosmos.network/v0.47/modules/group#decision-policy-1
- version:
- type: string
- format: uint64
- description: >-
- version is used to track changes to a group's
- GroupPolicyInfo structure that
-
- would create a different result on a running proposal.
- decision_policy:
- description: >-
- decision_policy specifies the group policy's decision
- policy.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- created_at:
- type: string
- format: date-time
- description: >-
- created_at is a timestamp specifying when a group policy
- was created.
- description: >-
- GroupPolicyInfo represents the high-level on-chain
- information for a group policy.
- description: >-
- group_policies are the group policies info associated with the
- provided group.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryGroupPoliciesByGroupResponse is the
- Query/GroupPoliciesByGroup response type.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
+ '@type':
type: string
description: >-
A URL/resource name that uniquely identifies the type of
@@ -19372,8 +14162,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -19383,7 +14177,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -19411,10 +14205,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -19452,187 +14244,147 @@ paths:
"value": "1.212s"
}
parameters:
- - name: group_id
- description: group_id is the unique ID of the group policy's group.
- in: path
- required: true
- type: string
- format: uint64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
+ - name: body
description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/group/v1/group_policy_info/{address}:
- get:
- summary: >-
- GroupPolicyInfo queries group policy info based on account address of
- group policy.
- operationId: CosmosGroupV1GroupPolicyInfo
- responses:
- '200':
- description: A successful response.
+ MsgTimeoutOnClose timed-out packet upon counterparty channel
+ closure.
+ in: body
+ required: true
schema:
type: object
properties:
- info:
- description: info is the GroupPolicyInfo of the group policy.
+ packet:
type: object
properties:
- address:
- type: string
- description: address is the account address of group policy.
- group_id:
+ sequence:
type: string
format: uint64
- description: group_id is the unique ID of the group.
- admin:
- type: string
- description: admin is the account address of the group admin.
- metadata:
- type: string
- title: >-
- metadata is any arbitrary metadata attached to the group
- policy.
+ description: >-
+ number corresponds to the order of sends and receives,
+ where a Packet
- the recommended format of the metadata is to be found
- here:
+ with an earlier sequence number must be sent and received
+ before a Packet
- https://docs.cosmos.network/v0.47/modules/group#decision-policy-1
- version:
+ with a later sequence number.
+ source_port:
type: string
- format: uint64
- description: >-
- version is used to track changes to a group's
- GroupPolicyInfo structure that
-
- would create a different result on a running proposal.
- decision_policy:
- description: >-
- decision_policy specifies the group policy's decision
- policy.
+ description: identifies the port on the sending chain.
+ source_channel:
+ type: string
+ description: identifies the channel end on the sending chain.
+ destination_port:
+ type: string
+ description: identifies the port on the receiving chain.
+ destination_channel:
+ type: string
+ description: identifies the channel end on the receiving chain.
+ data:
+ type: string
+ format: byte
+ title: >-
+ actual opaque bytes transferred directly to the
+ application module
+ timeout_height:
+ title: block height after which the packet times out
type: object
properties:
- '@type':
+ revision_number:
type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- expect it to use in the context of Any. However, for
- URLs which use the
+ RevisionNumber the same. However some consensus algorithms
+ may choose to
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- server that maps type URLs to message definitions as
- follows:
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+ height continues to be monitonically increasing even as
+ the RevisionHeight
- * If no scheme is provided, `https` is assumed.
+ gets reset
+ timeout_timestamp:
+ type: string
+ format: uint64
+ title: >-
+ block timestamp (in nanoseconds) after which the packet
+ times out
+ title: >-
+ Packet defines a type that carries data across different
+ chains through IBC
+ proof_unreceived:
+ type: string
+ format: byte
+ proof_close:
+ type: string
+ format: byte
+ proof_height:
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
- Note: this functionality is not currently available in
- the official
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- protobuf release, and it is not used for type URLs
- beginning with
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
- type.googleapis.com.
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
- Schemes other than `http`, `https` (or the empty
- scheme) might be
+ that can be compared against another Height for the purposes
+ of updating and
- used with implementation specific semantics.
- additionalProperties: {}
- created_at:
- type: string
- format: date-time
- description: >-
- created_at is a timestamp specifying when a group policy
- was created.
+ freezing clients
+ next_sequence_recv:
+ type: string
+ format: uint64
+ signer:
+ type: string
description: >-
- QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response
+ MsgTimeoutOnClose timed-out packet upon counterparty channel
+ closure.
+ tags:
+ - Msg
+ /ibc.core.client.v1.Msg/CreateClient:
+ post:
+ summary: CreateClient defines a rpc handler method for MsgCreateClient.
+ operationId: IbcCoreClientV1Msg_CreateClient
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgCreateClientResponse defines the Msg/CreateClient response
type.
default:
description: An unexpected error response.
@@ -19740,8 +14492,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -19751,7 +14507,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -19779,10 +14535,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -19820,92 +14574,270 @@ paths:
"value": "1.212s"
}
parameters:
- - name: address
- description: address is the account address of the group policy.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/group/v1/groups:
- get:
- summary: Groups queries all groups in state.
- description: 'Since: cosmos-sdk 0.47.1'
- operationId: CosmosGroupV1Groups
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- groups:
- type: array
- items:
- type: object
- properties:
- id:
- type: string
- format: uint64
- description: id is the unique ID of the group.
- admin:
- type: string
- description: admin is the account address of the group's admin.
- metadata:
- type: string
- description: >-
- metadata is any arbitrary metadata to attached to the
- group.
- version:
- type: string
- format: uint64
- title: >-
- version is used to track changes to a group's membership
- structure that
+ client_state:
+ title: light client state
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at least
- would break existing proposals. Whenever any members
- weight is changed,
+ one "/" character. The last segment of the URL's path must
+ represent
- or any member is added or removed this version is
- incremented and will
+ the fully qualified name of the type (as in
- cause proposals based on older versions of this group to
- fail
- total_weight:
- type: string
- description: total_weight is the sum of the group members' weights.
- created_at:
- type: string
- format: date-time
- description: >-
- created_at is a timestamp specifying when a group was
- created.
- description: >-
- GroupInfo represents the high-level on-chain information for
- a group.
- description: '`groups` is all the groups present in state.'
- pagination:
- description: pagination defines the pagination in the response.
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ consensus_state:
+ description: >-
+ consensus state associated with the client that corresponds to
+ a given
+
+ height.
type: object
properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ '@type':
type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- was set, its value is undefined otherwise
- description: |-
- QueryGroupsResponse is the Query/Groups response type.
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- Since: cosmos-sdk 0.47.1
+ used with implementation specific semantics.
+ additionalProperties: {}
+ signer:
+ type: string
+ title: signer address
+ title: MsgCreateClient defines a message to create an IBC client
+ tags:
+ - Msg
+ /ibc.core.client.v1.Msg/IBCSoftwareUpgrade:
+ post:
+ summary: >-
+ IBCSoftwareUpgrade defines a rpc handler method for
+ MsgIBCSoftwareUpgrade.
+ operationId: IbcCoreClientV1Msg_IBCSoftwareUpgrade
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgIBCSoftwareUpgradeResponse defines the Msg/IBCSoftwareUpgrade
+ response type.
default:
description: An unexpected error response.
schema:
@@ -20012,8 +14944,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -20023,7 +14959,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -20051,10 +14987,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -20092,141 +15026,235 @@ paths:
"value": "1.212s"
}
parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ - name: body
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ plan:
+ type: object
+ properties:
+ name:
+ type: string
+ description: >-
+ Sets the name for the upgrade. This name will be used by
+ the upgraded
- It is less efficient than using key. Only one of offset or key
- should
+ version of the software to apply any special "on-upgrade"
+ commands during
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ the first BeginBlock method after the upgrade is applied.
+ It is also used
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ to detect whether a software version can handle a given
+ upgrade. If no
- a count of the total number of items available for pagination in
- UIs.
+ upgrade handler with this name has been set in the
+ software, it will be
- count_total is only respected when offset is used. It is ignored
- when key
+ assumed that the software is out-of-date when the upgrade
+ Time or Height is
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ reached and the software will exit.
+ time:
+ type: string
+ format: date-time
+ description: >-
+ Deprecated: Time based upgrades have been deprecated. Time
+ based upgrade logic
+ has been removed from the SDK.
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/group/v1/groups_by_admin/{admin}:
- get:
- summary: GroupsByAdmin queries groups by admin address.
- operationId: CosmosGroupV1GroupsByAdmin
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- groups:
- type: array
- items:
- type: object
- properties:
- id:
- type: string
- format: uint64
- description: id is the unique ID of the group.
- admin:
- type: string
- description: admin is the account address of the group's admin.
- metadata:
- type: string
- description: >-
- metadata is any arbitrary metadata to attached to the
- group.
- version:
- type: string
- format: uint64
- title: >-
- version is used to track changes to a group's membership
- structure that
+ If this field is not empty, an error will be thrown.
+ height:
+ type: string
+ format: int64
+ description: The height at which the upgrade must be performed.
+ info:
+ type: string
+ title: >-
+ Any application specific upgrade info to be included
+ on-chain
- would break existing proposals. Whenever any members
- weight is changed,
+ such as a git commit that validators could automatically
+ upgrade to
+ upgraded_client_state:
+ description: >-
+ Deprecated: UpgradedClientState field has been deprecated.
+ IBC upgrade logic has been
- or any member is added or removed this version is
- incremented and will
+ moved to the IBC module in the sub module 02-client.
- cause proposals based on older versions of this group to
- fail
- total_weight:
- type: string
- description: total_weight is the sum of the group members' weights.
- created_at:
- type: string
- format: date-time
- description: >-
- created_at is a timestamp specifying when a group was
- created.
- description: >-
- GroupInfo represents the high-level on-chain information for
- a group.
- description: groups are the groups info with the provided admin.
- pagination:
- description: pagination defines the pagination in the response.
+ If this field is not empty, an error will be thrown.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type
+ of the serialized
+
+ protocol buffer message. This string must contain at
+ least
+
+ one "/" character. The last segment of the URL's path
+ must represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be
+ in a canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary
+ all types that they
+
+ expect it to use in the context of Any. However, for
+ URLs which use the
+
+ scheme `http`, `https`, or no scheme, one can
+ optionally set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results
+ based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in
+ the official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty
+ scheme) might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ Plan specifies information about a planned upgrade and when it
+ should occur.
+ upgraded_client_state:
+ description: >-
+ An UpgradedClientState must be provided to perform an IBC
+ breaking upgrade.
+
+ This will make the chain commit to the correct upgraded (self)
+ client state
+
+ before the upgrade occurs, so that connecting chains can
+ verify that the
+
+ new upgraded client is valid by verifying a proof on the
+ previous version
+
+ of the chain. This will allow IBC connections to persist
+ smoothly across
+
+ planned chain upgrades. Correspondingly, the
+ UpgradedClientState field has been
+
+ deprecated in the Cosmos SDK to allow for this logic to exist
+ solely in
+
+ the 02-client module.
type: object
properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ '@type':
type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
+
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- was set, its value is undefined otherwise
+ used with implementation specific semantics.
+ additionalProperties: {}
+ signer:
+ type: string
+ title: signer address
+ title: >-
+ MsgIBCSoftwareUpgrade defines the message used to schedule an
+ upgrade of an IBC client using a v1 governance proposal
+ tags:
+ - Msg
+ /ibc.core.client.v1.Msg/RecoverClient:
+ post:
+ summary: RecoverClient defines a rpc handler method for MsgRecoverClient.
+ operationId: IbcCoreClientV1Msg_RecoverClient
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
description: >-
- QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse
- response type.
+ MsgRecoverClientResponse defines the Msg/RecoverClient response
+ type.
default:
description: An unexpected error response.
schema:
@@ -20333,8 +15361,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -20344,7 +15376,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -20372,10 +15404,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -20413,145 +15443,50 @@ paths:
"value": "1.212s"
}
parameters:
- - name: admin
- description: admin is the account address of a group's admin.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
+ - name: body
description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
+ MsgRecoverClient defines the message used to recover a frozen or
+ expired client.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ subject_client_id:
+ type: string
+ title: >-
+ the client identifier for the client to be updated if the
+ proposal passes
+ substitute_client_id:
+ type: string
+ title: >-
+ the substitute client identifier for the client which will
+ replace the subject
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ client
+ signer:
+ type: string
+ title: signer address
+ description: >-
+ MsgRecoverClient defines the message used to recover a frozen or
+ expired client.
tags:
- - Query
- /cosmos/group/v1/groups_by_member/{address}:
- get:
- summary: GroupsByMember queries groups by member address.
- operationId: CosmosGroupV1GroupsByMember
+ - Msg
+ /ibc.core.client.v1.Msg/SubmitMisbehaviour:
+ post:
+ summary: >-
+ SubmitMisbehaviour defines a rpc handler method for
+ MsgSubmitMisbehaviour.
+ operationId: IbcCoreClientV1Msg_SubmitMisbehaviour
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- groups:
- type: array
- items:
- type: object
- properties:
- id:
- type: string
- format: uint64
- description: id is the unique ID of the group.
- admin:
- type: string
- description: admin is the account address of the group's admin.
- metadata:
- type: string
- description: >-
- metadata is any arbitrary metadata to attached to the
- group.
- version:
- type: string
- format: uint64
- title: >-
- version is used to track changes to a group's membership
- structure that
-
- would break existing proposals. Whenever any members
- weight is changed,
-
- or any member is added or removed this version is
- incremented and will
-
- cause proposals based on older versions of this group to
- fail
- total_weight:
- type: string
- description: total_weight is the sum of the group members' weights.
- created_at:
- type: string
- format: date-time
- description: >-
- created_at is a timestamp specifying when a group was
- created.
- description: >-
- GroupInfo represents the high-level on-chain information for
- a group.
- description: groups are the groups info with the provided group member.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
description: >-
- QueryGroupsByMemberResponse is the Query/GroupsByMember response
+ MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour
+ response
+
type.
default:
description: An unexpected error response.
@@ -20659,8 +15594,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -20670,7 +15609,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -20698,10 +15637,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -20739,390 +15676,218 @@ paths:
"value": "1.212s"
}
parameters:
- - name: address
- description: address is the group member address.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
+ - name: body
description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence
+ for
+ light client misbehaviour.
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/group/v1/proposal/{proposal_id}:
- get:
- summary: Proposal queries a proposal based on proposal id.
- operationId: CosmosGroupV1Proposal
- responses:
- '200':
- description: A successful response.
+ This message has been deprecated. Use MsgUpdateClient instead.
+ in: body
+ required: true
schema:
type: object
properties:
- proposal:
- description: proposal is the proposal info.
+ client_id:
+ type: string
+ title: client unique identifier
+ misbehaviour:
+ title: misbehaviour used for freezing the light client
type: object
properties:
- id:
- type: string
- format: uint64
- description: id is the unique id of the proposal.
- group_policy_address:
- type: string
- description: >-
- group_policy_address is the account address of group
- policy.
- metadata:
- type: string
- title: >-
- metadata is any arbitrary metadata attached to the
- proposal.
-
- the recommended format of the metadata is to be found
- here:
-
- https://docs.cosmos.network/v0.47/modules/group#proposal-4
- proposers:
- type: array
- items:
- type: string
- description: proposers are the account addresses of the proposers.
- submit_time:
- type: string
- format: date-time
- description: >-
- submit_time is a timestamp specifying when a proposal was
- submitted.
- group_version:
- type: string
- format: uint64
- description: >-
- group_version tracks the version of the group at proposal
- submission.
-
- This field is here for informational purposes only.
- group_policy_version:
- type: string
- format: uint64
- description: >-
- group_policy_version tracks the version of the group
- policy at proposal submission.
-
- When a decision policy is changed, existing proposals from
- previous policy
-
- versions will become invalid with the `ABORTED` status.
-
- This field is here for informational purposes only.
- status:
- description: >-
- status represents the high level position in the life
- cycle of the proposal. Initial value is Submitted.
- type: string
- enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_SUBMITTED
- - PROPOSAL_STATUS_ACCEPTED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_ABORTED
- - PROPOSAL_STATUS_WITHDRAWN
- default: PROPOSAL_STATUS_UNSPECIFIED
- final_tally_result:
- description: >-
- final_tally_result contains the sums of all weighted votes
- for this
-
- proposal for each vote option. It is empty at submission,
- and only
-
- populated after tallying, at voting period end or at
- proposal execution,
-
- whichever happens first.
- type: object
- properties:
- yes_count:
- type: string
- description: yes_count is the weighted sum of yes votes.
- abstain_count:
- type: string
- description: abstain_count is the weighted sum of abstainers.
- no_count:
- type: string
- description: no_count is the weighted sum of no votes.
- no_with_veto_count:
- type: string
- description: no_with_veto_count is the weighted sum of veto.
- voting_period_end:
+ '@type':
type: string
- format: date-time
description: >-
- voting_period_end is the timestamp before which voting
- must be done.
-
- Unless a successful MsgExec is called before (to execute a
- proposal whose
-
- tally is successful before the voting period ends),
- tallying will be done
-
- at this point, and the `final_tally_result`and `status`
- fields will be
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- accordingly updated.
- executor_result:
- description: >-
- executor_result is the final result of the proposal
- execution. Initial value is NotRun.
- type: string
- enum:
- - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED
- - PROPOSAL_EXECUTOR_RESULT_NOT_RUN
- - PROPOSAL_EXECUTOR_RESULT_SUCCESS
- - PROPOSAL_EXECUTOR_RESULT_FAILURE
- default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED
- messages:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
+ protocol buffer message. This string must contain at least
- protocol buffer message. This string must contain at
- least
+ one "/" character. The last segment of the URL's path must
+ represent
- one "/" character. The last segment of the URL's
- path must represent
+ the fully qualified name of the type (as in
- the fully qualified name of the type (as in
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
+ (e.g., leading "." is not accepted).
- (e.g., leading "." is not accepted).
+ In practice, teams usually precompile into the binary all
+ types that they
- In practice, teams usually precompile into the
- binary all types that they
+ expect it to use in the context of Any. However, for URLs
+ which use the
- expect it to use in the context of Any. However, for
- URLs which use the
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
+ server that maps type URLs to message definitions as
+ follows:
- server that maps type URLs to message definitions as
- follows:
+ * If no scheme is provided, `https` is assumed.
- * If no scheme is provided, `https` is assumed.
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ Note: this functionality is not currently available in the
+ official
- Note: this functionality is not currently available
- in the official
+ protobuf release, and it is not used for type URLs
+ beginning with
- protobuf release, and it is not used for type URLs
- beginning with
+ type.googleapis.com.
- type.googleapis.com.
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- Schemes other than `http`, `https` (or the empty
- scheme) might be
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ URL that describes the type of the serialized message.
- URL that describes the type of the serialized message.
+ Protobuf library provides support to pack/unpack Any values in
+ the form
- Protobuf library provides support to pack/unpack Any
- values in the form
+ of utility functions or additional generated methods of the
+ Any type.
- of utility functions or additional generated methods of
- the Any type.
+ Example 1: Pack and unpack a message in C++.
- Example 1: Pack and unpack a message in C++.
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ Example 2: Pack and unpack a message in Java.
- Example 2: Pack and unpack a message in Java.
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ Example 3: Pack and unpack a message in Python.
- Example 3: Pack and unpack a message in Python.
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ Example 4: Pack and unpack a message in Go
- Example 4: Pack and unpack a message in Go
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ The pack methods provided by protobuf library will by default
+ use
- The pack methods provided by protobuf library will by
- default use
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
+ methods only use the fully qualified type name after the last
+ '/'
- methods only use the fully qualified type name after the
- last '/'
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
+ name "y.z".
- name "y.z".
+ JSON
- JSON
+ The JSON representation of an `Any` value uses the regular
- ====
+ representation of the deserialized, embedded message, with an
- The JSON representation of an `Any` value uses the
- regular
+ additional field `@type` which contains the type URL. Example:
- representation of the deserialized, embedded message,
- with an
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- additional field `@type` which contains the type URL.
- Example:
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ If the embedded message type is well-known and has a custom
+ JSON
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ representation, that representation will be embedded adding a
+ field
- If the embedded message type is well-known and has a
- custom JSON
+ `value` which holds the custom JSON in addition to the `@type`
- representation, that representation will be embedded
- adding a field
+ field. Example (for message [google.protobuf.Duration][]):
- `value` which holds the custom JSON in addition to the
- `@type`
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ signer:
+ type: string
+ title: signer address
+ description: >-
+ MsgSubmitMisbehaviour defines an sdk.Msg type that submits
+ Evidence for
- field. Example (for message
- [google.protobuf.Duration][]):
+ light client misbehaviour.
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- messages is a list of `sdk.Msg`s that will be executed if
- the proposal passes.
- title:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: title is the title of the proposal
- summary:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: summary is a short summary of the proposal
- description: QueryProposalResponse is the Query/Proposal response type.
+ This message has been deprecated. Use MsgUpdateClient instead.
+ tags:
+ - Msg
+ /ibc.core.client.v1.Msg/UpdateClient:
+ post:
+ summary: UpdateClient defines a rpc handler method for MsgUpdateClient.
+ operationId: IbcCoreClientV1Msg_UpdateClient
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgUpdateClientResponse defines the Msg/UpdateClient response
+ type.
default:
description: An unexpected error response.
schema:
@@ -21229,8 +15994,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -21240,7 +16009,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -21268,10 +16037,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -21309,602 +16076,212 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id is the unique ID of a proposal.
- in: path
- required: true
- type: string
- format: uint64
- tags:
- - Query
- /cosmos/group/v1/proposals/{proposal_id}/tally:
- get:
- summary: >-
- TallyResult returns the tally result of a proposal. If the proposal is
-
- still in voting period, then this query computes the current tally
- state,
-
- which might not be final. On the other hand, if the proposal is final,
-
- then it simply returns the `final_tally_result` state stored in the
+ - name: body
+ description: >-
+ MsgUpdateClient defines an sdk.Msg to update a IBC client state
+ using
- proposal itself.
- operationId: CosmosGroupV1TallyResult
- responses:
- '200':
- description: A successful response.
+ the given client message.
+ in: body
+ required: true
schema:
type: object
properties:
- tally:
- description: tally defines the requested tally.
+ client_id:
+ type: string
+ title: client unique identifier
+ client_message:
+ title: client message to update the light client
type: object
properties:
- yes_count:
- type: string
- description: yes_count is the weighted sum of yes votes.
- abstain_count:
- type: string
- description: abstain_count is the weighted sum of abstainers.
- no_count:
- type: string
- description: no_count is the weighted sum of no votes.
- no_with_veto_count:
+ '@type':
type: string
- description: no_with_veto_count is the weighted sum of veto.
- description: QueryTallyResultResponse is the Query/TallyResult response type.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- protocol buffer message. This string must contain at
- least
+ protocol buffer message. This string must contain at least
- one "/" character. The last segment of the URL's path
- must represent
+ one "/" character. The last segment of the URL's path must
+ represent
- the fully qualified name of the type (as in
+ the fully qualified name of the type (as in
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- (e.g., leading "." is not accepted).
+ (e.g., leading "." is not accepted).
- In practice, teams usually precompile into the binary
- all types that they
+ In practice, teams usually precompile into the binary all
+ types that they
- expect it to use in the context of Any. However, for
- URLs which use the
+ expect it to use in the context of Any. However, for URLs
+ which use the
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- server that maps type URLs to message definitions as
- follows:
+ server that maps type URLs to message definitions as
+ follows:
- * If no scheme is provided, `https` is assumed.
+ * If no scheme is provided, `https` is assumed.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- Note: this functionality is not currently available in
- the official
+ Note: this functionality is not currently available in the
+ official
- protobuf release, and it is not used for type URLs
- beginning with
+ protobuf release, and it is not used for type URLs
+ beginning with
- type.googleapis.com.
+ type.googleapis.com.
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
- URL that describes the type of the serialized message.
+ URL that describes the type of the serialized message.
- Protobuf library provides support to pack/unpack Any values
- in the form
+ Protobuf library provides support to pack/unpack Any values in
+ the form
- of utility functions or additional generated methods of the
- Any type.
+ of utility functions or additional generated methods of the
+ Any type.
- Example 1: Pack and unpack a message in C++.
+ Example 1: Pack and unpack a message in C++.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ }
- Example 2: Pack and unpack a message in Java.
+ Example 2: Pack and unpack a message in Java.
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- The pack methods provided by protobuf library will by
- default use
+ The pack methods provided by protobuf library will by default
+ use
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- methods only use the fully qualified type name after the
- last '/'
+ methods only use the fully qualified type name after the last
+ '/'
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
- name "y.z".
+ name "y.z".
+ JSON
- JSON
- ====
+ The JSON representation of an `Any` value uses the regular
- The JSON representation of an `Any` value uses the regular
+ representation of the deserialized, embedded message, with an
- representation of the deserialized, embedded message, with
- an
+ additional field `@type` which contains the type URL. Example:
- additional field `@type` which contains the type URL.
- Example:
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ If the embedded message type is well-known and has a custom
+ JSON
- If the embedded message type is well-known and has a custom
- JSON
+ representation, that representation will be embedded adding a
+ field
- representation, that representation will be embedded adding
- a field
+ `value` which holds the custom JSON in addition to the `@type`
- `value` which holds the custom JSON in addition to the
- `@type`
+ field. Example (for message [google.protobuf.Duration][]):
- field. Example (for message [google.protobuf.Duration][]):
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ signer:
+ type: string
+ title: signer address
+ description: >-
+ MsgUpdateClient defines an sdk.Msg to update a IBC client state
+ using
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: proposal_id
- description: proposal_id is the unique id of a proposal.
- in: path
- required: true
- type: string
- format: uint64
+ the given client message.
tags:
- - Query
- /cosmos/group/v1/proposals_by_group_policy/{address}:
- get:
- summary: >-
- ProposalsByGroupPolicy queries proposals based on account address of
- group policy.
- operationId: CosmosGroupV1ProposalsByGroupPolicy
+ - Msg
+ /ibc.core.client.v1.Msg/UpdateClientParams:
+ post:
+ summary: UpdateClientParams defines a rpc handler method for MsgUpdateParams.
+ operationId: IbcCoreClientV1Msg_UpdateClientParams
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- proposals:
- type: array
- items:
- type: object
- properties:
- id:
- type: string
- format: uint64
- description: id is the unique id of the proposal.
- group_policy_address:
- type: string
- description: >-
- group_policy_address is the account address of group
- policy.
- metadata:
- type: string
- title: >-
- metadata is any arbitrary metadata attached to the
- proposal.
-
- the recommended format of the metadata is to be found
- here:
-
- https://docs.cosmos.network/v0.47/modules/group#proposal-4
- proposers:
- type: array
- items:
- type: string
- description: proposers are the account addresses of the proposers.
- submit_time:
- type: string
- format: date-time
- description: >-
- submit_time is a timestamp specifying when a proposal
- was submitted.
- group_version:
- type: string
- format: uint64
- description: >-
- group_version tracks the version of the group at
- proposal submission.
-
- This field is here for informational purposes only.
- group_policy_version:
- type: string
- format: uint64
- description: >-
- group_policy_version tracks the version of the group
- policy at proposal submission.
-
- When a decision policy is changed, existing proposals
- from previous policy
-
- versions will become invalid with the `ABORTED` status.
-
- This field is here for informational purposes only.
- status:
- description: >-
- status represents the high level position in the life
- cycle of the proposal. Initial value is Submitted.
- type: string
- enum:
- - PROPOSAL_STATUS_UNSPECIFIED
- - PROPOSAL_STATUS_SUBMITTED
- - PROPOSAL_STATUS_ACCEPTED
- - PROPOSAL_STATUS_REJECTED
- - PROPOSAL_STATUS_ABORTED
- - PROPOSAL_STATUS_WITHDRAWN
- default: PROPOSAL_STATUS_UNSPECIFIED
- final_tally_result:
- description: >-
- final_tally_result contains the sums of all weighted
- votes for this
-
- proposal for each vote option. It is empty at
- submission, and only
-
- populated after tallying, at voting period end or at
- proposal execution,
-
- whichever happens first.
- type: object
- properties:
- yes_count:
- type: string
- description: yes_count is the weighted sum of yes votes.
- abstain_count:
- type: string
- description: abstain_count is the weighted sum of abstainers.
- no_count:
- type: string
- description: no_count is the weighted sum of no votes.
- no_with_veto_count:
- type: string
- description: no_with_veto_count is the weighted sum of veto.
- voting_period_end:
- type: string
- format: date-time
- description: >-
- voting_period_end is the timestamp before which voting
- must be done.
-
- Unless a successful MsgExec is called before (to execute
- a proposal whose
-
- tally is successful before the voting period ends),
- tallying will be done
-
- at this point, and the `final_tally_result`and `status`
- fields will be
-
- accordingly updated.
- executor_result:
- description: >-
- executor_result is the final result of the proposal
- execution. Initial value is NotRun.
- type: string
- enum:
- - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED
- - PROPOSAL_EXECUTOR_RESULT_NOT_RUN
- - PROPOSAL_EXECUTOR_RESULT_SUCCESS
- - PROPOSAL_EXECUTOR_RESULT_FAILURE
- default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED
- messages:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain
- at least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should
- be in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However,
- for URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions
- as follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently
- available in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods
- of the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL
- and the unpack
-
- methods only use the fully qualified type name after
- the last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message
- [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- messages is a list of `sdk.Msg`s that will be executed
- if the proposal passes.
- title:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: title is the title of the proposal
- summary:
- type: string
- description: 'Since: cosmos-sdk 0.47'
- title: summary is a short summary of the proposal
- description: >-
- Proposal defines a group proposal. Any member of a group can
- submit a proposal
-
- for a group policy to decide upon.
-
- A proposal consists of a set of `sdk.Msg`s that will be
- executed if the proposal
-
- passes as well as some optional metadata associated with the
- proposal.
- description: proposals are the proposals with given group policy.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryProposalsByGroupPolicyResponse is the
- Query/ProposalByGroupPolicy response type.
+ description: MsgUpdateParamsResponse defines the MsgUpdateParams response type.
default:
description: An unexpected error response.
schema:
@@ -22011,8 +16388,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -22022,7 +16403,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -22050,10 +16431,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -22091,112 +16470,55 @@ paths:
"value": "1.212s"
}
parameters:
- - name: address
+ - name: body
description: >-
- address is the account address of the group policy related to
- proposals.
- in: path
+ MsgUpdateParams defines the sdk.Msg type to update the client
+ parameters.
+ in: body
required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
+ schema:
+ type: object
+ properties:
+ signer:
+ type: string
+ title: signer address
+ params:
+ description: |-
+ params defines the client parameters to update.
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ allowed_clients:
+ type: array
+ items:
+ type: string
+ description: >-
+ allowed_clients defines the list of allowed client state
+ types which can be created
+ and interacted with. If a client type is removed from the
+ allowed clients list, usage
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ of this client will be disabled until it is added again to
+ the list.
+ description: >-
+ MsgUpdateParams defines the sdk.Msg type to update the client
+ parameters.
tags:
- - Query
- /cosmos/group/v1/vote_by_proposal_voter/{proposal_id}/{voter}:
- get:
- summary: VoteByProposalVoter queries a vote by proposal id and voter.
- operationId: CosmosGroupV1VoteByProposalVoter
+ - Msg
+ /ibc.core.client.v1.Msg/UpgradeClient:
+ post:
+ summary: UpgradeClient defines a rpc handler method for MsgUpgradeClient.
+ operationId: IbcCoreClientV1Msg_UpgradeClient
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- vote:
- description: vote is the vote with given proposal_id and voter.
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal is the unique ID of the proposal.
- voter:
- type: string
- description: voter is the account address of the voter.
- option:
- description: option is the voter's choice on the proposal.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- metadata:
- type: string
- description: metadata is any arbitrary metadata attached to the vote.
- submit_time:
- type: string
- format: date-time
- description: submit_time is the timestamp when the vote was submitted.
description: >-
- QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter
- response type.
+ MsgUpgradeClientResponse defines the Msg/UpgradeClient response
+ type.
default:
description: An unexpected error response.
schema:
@@ -22303,8 +16625,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -22314,7 +16640,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -22342,10 +16668,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -22383,397 +16707,393 @@ paths:
"value": "1.212s"
}
parameters:
- - name: proposal_id
- description: proposal_id is the unique ID of a proposal.
- in: path
- required: true
- type: string
- format: uint64
- - name: voter
- description: voter is a proposal voter account address.
- in: path
+ - name: body
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/group/v1/votes_by_proposal/{proposal_id}:
- get:
- summary: VotesByProposal queries a vote by proposal id.
- operationId: CosmosGroupV1VotesByProposal
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- votes:
- type: array
- items:
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal is the unique ID of the proposal.
- voter:
- type: string
- description: voter is the account address of the voter.
- option:
- description: option is the voter's choice on the proposal.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- metadata:
- type: string
- description: metadata is any arbitrary metadata attached to the vote.
- submit_time:
- type: string
- format: date-time
- description: >-
- submit_time is the timestamp when the vote was
- submitted.
- description: Vote represents a vote for a proposal.
- description: votes are the list of votes for given proposal_id.
- pagination:
- description: pagination defines the pagination in the response.
+ client_id:
+ type: string
+ title: client unique identifier
+ client_state:
+ title: upgraded client state
type: object
properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ '@type':
type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- was set, its value is undefined otherwise
- description: >-
- QueryVotesByProposalResponse is the Query/VotesByProposal response
- type.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ protocol buffer message. This string must contain at least
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
+ one "/" character. The last segment of the URL's path must
+ represent
- the fully qualified name of the type (as in
+ the fully qualified name of the type (as in
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- (e.g., leading "." is not accepted).
+ (e.g., leading "." is not accepted).
- In practice, teams usually precompile into the binary
- all types that they
+ In practice, teams usually precompile into the binary all
+ types that they
- expect it to use in the context of Any. However, for
- URLs which use the
+ expect it to use in the context of Any. However, for URLs
+ which use the
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
- server that maps type URLs to message definitions as
- follows:
+ server that maps type URLs to message definitions as
+ follows:
- * If no scheme is provided, `https` is assumed.
+ * If no scheme is provided, `https` is assumed.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- Note: this functionality is not currently available in
- the official
+ Note: this functionality is not currently available in the
+ official
- protobuf release, and it is not used for type URLs
- beginning with
+ protobuf release, and it is not used for type URLs
+ beginning with
- type.googleapis.com.
+ type.googleapis.com.
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
- URL that describes the type of the serialized message.
+ URL that describes the type of the serialized message.
- Protobuf library provides support to pack/unpack Any values
- in the form
+ Protobuf library provides support to pack/unpack Any values in
+ the form
- of utility functions or additional generated methods of the
- Any type.
+ of utility functions or additional generated methods of the
+ Any type.
- Example 1: Pack and unpack a message in C++.
+ Example 1: Pack and unpack a message in C++.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ }
- Example 2: Pack and unpack a message in Java.
+ Example 2: Pack and unpack a message in Java.
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- The pack methods provided by protobuf library will by
- default use
+ The pack methods provided by protobuf library will by default
+ use
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- methods only use the fully qualified type name after the
- last '/'
+ methods only use the fully qualified type name after the last
+ '/'
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
- name "y.z".
+ name "y.z".
+ JSON
- JSON
- ====
+ The JSON representation of an `Any` value uses the regular
- The JSON representation of an `Any` value uses the regular
+ representation of the deserialized, embedded message, with an
- representation of the deserialized, embedded message, with
- an
+ additional field `@type` which contains the type URL. Example:
- additional field `@type` which contains the type URL.
- Example:
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ If the embedded message type is well-known and has a custom
+ JSON
- If the embedded message type is well-known and has a custom
- JSON
+ representation, that representation will be embedded adding a
+ field
- representation, that representation will be embedded adding
- a field
+ `value` which holds the custom JSON in addition to the `@type`
- `value` which holds the custom JSON in addition to the
- `@type`
+ field. Example (for message [google.protobuf.Duration][]):
- field. Example (for message [google.protobuf.Duration][]):
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ consensus_state:
+ title: >-
+ upgraded consensus state, only contains enough information to
+ serve as a
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: proposal_id
- description: proposal_id is the unique ID of a proposal.
- in: path
- required: true
- type: string
- format: uint64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ basis of trust in update logic
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- It is less efficient than using key. Only one of offset or key
- should
+ protocol buffer message. This string must contain at least
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ one "/" character. The last segment of the URL's path must
+ represent
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- a count of the total number of items available for pagination in
- UIs.
+ (e.g., leading "." is not accepted).
- count_total is only respected when offset is used. It is ignored
- when key
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ In practice, teams usually precompile into the binary all
+ types that they
+ expect it to use in the context of Any. However, for URLs
+ which use the
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ proof_upgrade_client:
+ type: string
+ format: byte
+ title: proof that old chain committed to new client
+ proof_upgrade_consensus_state:
+ type: string
+ format: byte
+ title: proof that old chain committed to new consensus state
+ signer:
+ type: string
+ title: signer address
+ title: >-
+ MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a
+ new client
+
+ state
tags:
- - Query
- /cosmos/group/v1/votes_by_voter/{voter}:
- get:
- summary: VotesByVoter queries a vote by voter.
- operationId: CosmosGroupV1VotesByVoter
+ - Msg
+ /ibc.core.connection.v1.Msg/ConnectionOpenAck:
+ post:
+ summary: ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck.
+ operationId: IbcCoreConnectionV1Msg_ConnectionOpenAck
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- votes:
- type: array
- items:
- type: object
- properties:
- proposal_id:
- type: string
- format: uint64
- description: proposal is the unique ID of the proposal.
- voter:
- type: string
- description: voter is the account address of the voter.
- option:
- description: option is the voter's choice on the proposal.
- type: string
- enum:
- - VOTE_OPTION_UNSPECIFIED
- - VOTE_OPTION_YES
- - VOTE_OPTION_ABSTAIN
- - VOTE_OPTION_NO
- - VOTE_OPTION_NO_WITH_VETO
- default: VOTE_OPTION_UNSPECIFIED
- metadata:
- type: string
- description: metadata is any arbitrary metadata attached to the vote.
- submit_time:
- type: string
- format: date-time
- description: >-
- submit_time is the timestamp when the vote was
- submitted.
- description: Vote represents a vote for a proposal.
- description: votes are the list of votes by given voter.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: QueryVotesByVoterResponse is the Query/VotesByVoter response type.
+ description: >-
+ MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck
+ response type.
default:
description: An unexpected error response.
schema:
@@ -22880,8 +17200,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -22891,7 +17215,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -22919,10 +17243,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -22960,224 +17282,321 @@ paths:
"value": "1.212s"
}
parameters:
- - name: voter
- description: voter is a proposal voter account address.
- in: path
- required: true
- type: string
- - name: pagination.key
+ - name: body
description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to
+ acknowledge the change of connection state to TRYOPEN on Chain B.
+ in: body
+ required: true
+ schema:
+ type: object
+ properties:
+ connection_id:
+ type: string
+ counterparty_connection_id:
+ type: string
+ version:
+ type: object
+ properties:
+ identifier:
+ type: string
+ title: unique version identifier
+ features:
+ type: array
+ items:
+ type: string
+ title: list of features compatible with the specified identifier
+ description: >-
+ Version defines the versioning scheme used to negotiate the
+ IBC verison in
- It is less efficient than using key. Only one of offset or key
- should
+ the connection handshake.
+ client_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ protocol buffer message. This string must contain at least
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ one "/" character. The last segment of the URL's path must
+ represent
- a count of the total number of items available for pagination in
- UIs.
+ the fully qualified name of the type (as in
- count_total is only respected when offset is used. It is ignored
- when key
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ (e.g., leading "." is not accepted).
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/mint/v1beta1/annual_provisions:
- get:
- summary: AnnualProvisions current minting annual provisions value.
- operationId: CosmosMintV1Beta1AnnualProvisions
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- annual_provisions:
- type: string
- format: byte
- description: >-
- annual_provisions is the current minting annual provisions
- value.
- description: |-
- QueryAnnualProvisionsResponse is the response type for the
- Query/AnnualProvisions RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Query
- /cosmos/mint/v1beta1/inflation:
- get:
- summary: Inflation returns the current minting inflation value.
- operationId: CosmosMintV1Beta1Inflation
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- inflation:
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
+
+ Note: this functionality is not currently available in the
+ official
+
+ protobuf release, and it is not used for type URLs
+ beginning with
+
+ type.googleapis.com.
+
+
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
+
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
+
+ URL that describes the type of the serialized message.
+
+
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+
+ of utility functions or additional generated methods of the
+ Any type.
+
+
+ Example 1: Pack and unpack a message in C++.
+
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
+
+ Example 2: Pack and unpack a message in Java.
+
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+
+ Example 3: Pack and unpack a message in Python.
+
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
+
+ Example 4: Pack and unpack a message in Go
+
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+
+ The pack methods provided by protobuf library will by default
+ use
+
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
+
+ methods only use the fully qualified type name after the last
+ '/'
+
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
+
+ name "y.z".
+
+
+ JSON
+
+
+ The JSON representation of an `Any` value uses the regular
+
+ representation of the deserialized, embedded message, with an
+
+ additional field `@type` which contains the type URL. Example:
+
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
+
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
+
+ If the embedded message type is well-known and has a custom
+ JSON
+
+ representation, that representation will be embedded adding a
+ field
+
+ `value` which holds the custom JSON in addition to the `@type`
+
+ field. Example (for message [google.protobuf.Duration][]):
+
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ proof_height:
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ proof_try:
type: string
format: byte
- description: inflation is the current minting inflation value.
- description: >-
- QueryInflationResponse is the response type for the
- Query/Inflation RPC
+ title: >-
+ proof of the initialization the connection on Chain B:
+ `UNITIALIZED ->
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
+ TRYOPEN`
+ proof_client:
type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Query
- /cosmos/mint/v1beta1/params:
- get:
- summary: Params returns the total set of minting parameters.
- operationId: CosmosMintV1Beta1Params
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params defines the parameters of the module.
+ format: byte
+ title: proof of client state included in message
+ proof_consensus:
+ type: string
+ format: byte
+ title: proof of client consensus state
+ consensus_height:
type: object
properties:
- mint_denom:
- type: string
- title: type of coin to mint
- inflation_rate_change:
- type: string
- title: maximum annual change in inflation rate
- inflation_max:
- type: string
- title: maximum inflation rate
- inflation_min:
- type: string
- title: minimum inflation rate
- goal_bonded:
+ revision_number:
type: string
- title: goal of percent bonded atoms
- blocks_per_year:
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
type: string
format: uint64
- title: expected blocks per year
- description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
+
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ signer:
type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
+ host_consensus_state_proof:
+ type: string
+ format: byte
+ title: >-
+ optional proof data for host state machines that are unable to
+ introspect their own consensus state
+ description: |-
+ MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to
+ acknowledge the change of connection state to TRYOPEN on Chain B.
tags:
- - Query
- /cosmos/nft/v1beta1/balance/{owner}/{class_id}:
- get:
- summary: >-
- Balance queries the number of NFTs of a given class owned by the owner,
- same as balanceOf in ERC721
- operationId: CosmosNftV1Beta1Balance
+ - Msg
+ /ibc.core.connection.v1.Msg/ConnectionOpenConfirm:
+ post:
+ summary: |-
+ ConnectionOpenConfirm defines a rpc handler method for
+ MsgConnectionOpenConfirm.
+ operationId: IbcCoreConnectionV1Msg_ConnectionOpenConfirm
responses:
'200':
description: A successful response.
schema:
type: object
- properties:
- amount:
- type: string
- format: uint64
- title: >-
- amount is the number of all NFTs of a given class owned by the
- owner
- title: >-
- QueryBalanceResponse is the response type for the Query/Balance
- RPC method
+ description: >-
+ MsgConnectionOpenConfirmResponse defines the
+ Msg/ConnectionOpenConfirm
+
+ response type.
default:
description: An unexpected error response.
schema:
@@ -23284,8 +17703,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -23295,7 +17718,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -23323,10 +17746,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -23364,267 +17785,85 @@ paths:
"value": "1.212s"
}
parameters:
- - name: owner
- description: owner is the owner address of the nft
- in: path
- required: true
- type: string
- - name: class_id
- description: class_id associated with the nft
- in: path
+ - name: body
+ description: >-
+ MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B
+ to
+
+ acknowledge the change of connection state to OPEN on Chain A.
+ in: body
required: true
- type: string
- tags:
- - Query
- /cosmos/nft/v1beta1/classes:
- get:
- summary: Classes queries all NFT classes
- operationId: CosmosNftV1Beta1Classes
- responses:
- '200':
- description: A successful response.
schema:
type: object
properties:
- classes:
- type: array
- items:
- type: object
- properties:
- id:
- type: string
- title: >-
- id defines the unique identifier of the NFT
- classification, similar to the contract address of
- ERC721
- name:
- type: string
- title: >-
- name defines the human-readable name of the NFT
- classification. Optional
- symbol:
- type: string
- title: >-
- symbol is an abbreviated name for nft classification.
- Optional
- description:
- type: string
- title: >-
- description is a brief description of nft
- classification. Optional
- uri:
- type: string
- title: >-
- uri for the class metadata stored off chain. It can
- define schema for Class and NFT `Data` attributes.
- Optional
- uri_hash:
- type: string
- title: >-
- uri_hash is a hash of the document pointed by uri.
- Optional
- data:
- title: >-
- data is the app specific metadata of the NFT class.
- Optional
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
+ connection_id:
+ type: string
+ proof_ack:
+ type: string
+ format: byte
+ title: >-
+ proof for the change of the connection state on Chain A: `INIT
+ -> OPEN`
+ proof_height:
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- additional field `@type` which contains the type URL.
- Example:
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
- If the embedded message type is well-known and has a
- custom JSON
+ height continues to be monitonically increasing even as the
+ RevisionHeight
- representation, that representation will be embedded
- adding a field
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
- `value` which holds the custom JSON in addition to the
- `@type`
+ that can be compared against another Height for the purposes
+ of updating and
- field. Example (for message
- [google.protobuf.Duration][]):
+ freezing clients
+ signer:
+ type: string
+ description: >-
+ MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain
+ B to
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: Class defines the class of the nft type.
- description: class defines the class of the nft type.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ acknowledge the change of connection state to OPEN on Chain A.
+ tags:
+ - Msg
+ /ibc.core.connection.v1.Msg/ConnectionOpenInit:
+ post:
+ summary: >-
+ ConnectionOpenInit defines a rpc handler method for
+ MsgConnectionOpenInit.
+ operationId: IbcCoreConnectionV1Msg_ConnectionOpenInit
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit
+ response
- was set, its value is undefined otherwise
- title: >-
- QueryClassesResponse is the response type for the Query/Classes
- RPC method
+ type.
default:
description: An unexpected error response.
schema:
@@ -23731,8 +17970,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -23742,7 +17985,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -23770,10 +18013,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -23811,287 +18052,93 @@ paths:
"value": "1.212s"
}
parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
+ - name: body
description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
+ MsgConnectionOpenInit defines the msg sent by an account on Chain A
+ to
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/nft/v1beta1/classes/{class_id}:
- get:
- summary: Class queries an NFT class based on its id
- operationId: CosmosNftV1Beta1Class
- responses:
- '200':
- description: A successful response.
+ initialize a connection with Chain B.
+ in: body
+ required: true
schema:
type: object
properties:
- class:
- description: class defines the class of the nft type.
+ client_id:
+ type: string
+ counterparty:
type: object
properties:
- id:
- type: string
- title: >-
- id defines the unique identifier of the NFT
- classification, similar to the contract address of ERC721
- name:
- type: string
- title: >-
- name defines the human-readable name of the NFT
- classification. Optional
- symbol:
- type: string
- title: >-
- symbol is an abbreviated name for nft classification.
- Optional
- description:
- type: string
- title: >-
- description is a brief description of nft classification.
- Optional
- uri:
+ client_id:
type: string
- title: >-
- uri for the class metadata stored off chain. It can define
- schema for Class and NFT `Data` attributes. Optional
- uri_hash:
+ description: >-
+ identifies the client on the counterparty chain associated
+ with a given
+
+ connection.
+ connection_id:
type: string
- title: >-
- uri_hash is a hash of the document pointed by uri.
- Optional
- data:
- title: >-
- data is the app specific metadata of the NFT class.
- Optional
+ description: >-
+ identifies the connection end on the counterparty chain
+ associated with a
+
+ given connection.
+ prefix:
+ description: commitment merkle prefix of the counterparty chain.
type: object
properties:
- '@type':
+ key_prefix:
type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
+ format: byte
+ title: >-
+ MerklePrefix is merkle path prefixed to the key.
- protocol buffer message. This string must contain at
- least
+ The constructed key from the Path and the key will be
+ append(Path.KeyPath,
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
+ append(Path.KeyPrefix, key...))
+ description: >-
+ Counterparty defines the counterparty chain associated with a
+ connection end.
+ version:
+ type: object
+ properties:
+ identifier:
+ type: string
+ title: unique version identifier
+ features:
+ type: array
+ items:
+ type: string
+ title: list of features compatible with the specified identifier
+ description: >-
+ Version defines the versioning scheme used to negotiate the
+ IBC verison in
- field. Example (for message [google.protobuf.Duration][]):
+ the connection handshake.
+ delay_period:
+ type: string
+ format: uint64
+ signer:
+ type: string
+ description: >-
+ MsgConnectionOpenInit defines the msg sent by an account on Chain
+ A to
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- title: >-
- QueryClassResponse is the response type for the Query/Class RPC
- method
+ initialize a connection with Chain B.
+ tags:
+ - Msg
+ /ibc.core.connection.v1.Msg/ConnectionOpenTry:
+ post:
+ summary: ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry.
+ operationId: IbcCoreConnectionV1Msg_ConnectionOpenTry
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: >-
+ MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry
+ response type.
default:
description: An unexpected error response.
schema:
@@ -24198,8 +18245,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -24209,7 +18260,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -24237,10 +18288,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -24278,246 +18327,365 @@ paths:
"value": "1.212s"
}
parameters:
- - name: class_id
- description: class_id associated with the nft
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/nft/v1beta1/nfts:
- get:
- summary: >-
- NFTs queries all NFTs of a given class or owner,choose at least one of
- the two, similar to tokenByIndex in
+ - name: body
+ description: >-
+ MsgConnectionOpenTry defines a msg sent by a Relayer to try to open
+ a
- ERC721Enumerable
- operationId: CosmosNftV1Beta1NFTs
- responses:
- '200':
- description: A successful response.
+ connection on Chain B.
+ in: body
+ required: true
schema:
type: object
properties:
- nfts:
- type: array
- items:
- type: object
- properties:
- class_id:
- type: string
- title: >-
- class_id associated with the NFT, similar to the
- contract address of ERC721
- id:
- type: string
- title: id is a unique identifier of the NFT
- uri:
- type: string
- title: uri for the NFT metadata stored off chain
- uri_hash:
- type: string
- title: uri_hash is a hash of the document pointed by uri
- data:
- title: data is an app specific data of the NFT. Optional
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
+ client_id:
+ type: string
+ previous_connection_id:
+ type: string
+ description: >-
+ Deprecated: this field is unused. Crossing hellos are no
+ longer supported in core IBC.
+ client_state:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of
+ the serialized
- protocol buffer message. This string must contain at
- least
+ protocol buffer message. This string must contain at least
+
+ one "/" character. The last segment of the URL's path must
+ represent
+
+ the fully qualified name of the type (as in
+
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+
+ (e.g., leading "." is not accepted).
+
+
+ In practice, teams usually precompile into the binary all
+ types that they
+
+ expect it to use in the context of Any. However, for URLs
+ which use the
+
+ scheme `http`, `https`, or no scheme, one can optionally
+ set up a type
+
+ server that maps type URLs to message definitions as
+ follows:
+
+
+ * If no scheme is provided, `https` is assumed.
+
+ * An HTTP GET on the URL must yield a
+ [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based
+ on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- one "/" character. The last segment of the URL's
- path must represent
+ Note: this functionality is not currently available in the
+ official
- the fully qualified name of the type (as in
+ protobuf release, and it is not used for type URLs
+ beginning with
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
+ type.googleapis.com.
- (e.g., leading "." is not accepted).
+ Schemes other than `http`, `https` (or the empty scheme)
+ might be
- In practice, teams usually precompile into the
- binary all types that they
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
- expect it to use in the context of Any. However, for
- URLs which use the
+ URL that describes the type of the serialized message.
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
- server that maps type URLs to message definitions as
- follows:
+ Protobuf library provides support to pack/unpack Any values in
+ the form
+ of utility functions or additional generated methods of the
+ Any type.
- * If no scheme is provided, `https` is assumed.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ Example 1: Pack and unpack a message in C++.
- Note: this functionality is not currently available
- in the official
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- protobuf release, and it is not used for type URLs
- beginning with
+ Example 2: Pack and unpack a message in Java.
- type.googleapis.com.
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
+ Example 3: Pack and unpack a message in Python.
- Schemes other than `http`, `https` (or the empty
- scheme) might be
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ Example 4: Pack and unpack a message in Go
- URL that describes the type of the serialized message.
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+ The pack methods provided by protobuf library will by default
+ use
- Protobuf library provides support to pack/unpack Any
- values in the form
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- of utility functions or additional generated methods of
- the Any type.
+ methods only use the fully qualified type name after the last
+ '/'
+ in the type URL, for example "foo.bar.com/x/y.z" will yield
+ type
- Example 1: Pack and unpack a message in C++.
+ name "y.z".
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
- Example 2: Pack and unpack a message in Java.
+ JSON
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
- Example 3: Pack and unpack a message in Python.
+ The JSON representation of an `Any` value uses the regular
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ representation of the deserialized, embedded message, with an
- Example 4: Pack and unpack a message in Go
+ additional field `@type` which contains the type URL. Example:
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- The pack methods provided by protobuf library will by
- default use
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
+ If the embedded message type is well-known and has a custom
+ JSON
- methods only use the fully qualified type name after the
- last '/'
+ representation, that representation will be embedded adding a
+ field
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
+ `value` which holds the custom JSON in addition to the `@type`
- name "y.z".
+ field. Example (for message [google.protobuf.Duration][]):
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ counterparty:
+ type: object
+ properties:
+ client_id:
+ type: string
+ description: >-
+ identifies the client on the counterparty chain associated
+ with a given
+ connection.
+ connection_id:
+ type: string
+ description: >-
+ identifies the connection end on the counterparty chain
+ associated with a
- JSON
+ given connection.
+ prefix:
+ description: commitment merkle prefix of the counterparty chain.
+ type: object
+ properties:
+ key_prefix:
+ type: string
+ format: byte
+ title: >-
+ MerklePrefix is merkle path prefixed to the key.
- ====
+ The constructed key from the Path and the key will be
+ append(Path.KeyPath,
- The JSON representation of an `Any` value uses the
- regular
+ append(Path.KeyPrefix, key...))
+ description: >-
+ Counterparty defines the counterparty chain associated with a
+ connection end.
+ delay_period:
+ type: string
+ format: uint64
+ counterparty_versions:
+ type: array
+ items:
+ type: object
+ properties:
+ identifier:
+ type: string
+ title: unique version identifier
+ features:
+ type: array
+ items:
+ type: string
+ title: >-
+ list of features compatible with the specified
+ identifier
+ description: >-
+ Version defines the versioning scheme used to negotiate the
+ IBC verison in
- representation of the deserialized, embedded message,
- with an
+ the connection handshake.
+ proof_height:
+ type: object
+ properties:
+ revision_number:
+ type: string
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
+ type: string
+ format: uint64
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- additional field `@type` which contains the type URL.
- Example:
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
- If the embedded message type is well-known and has a
- custom JSON
+ height continues to be monitonically increasing even as the
+ RevisionHeight
- representation, that representation will be embedded
- adding a field
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
- `value` which holds the custom JSON in addition to the
- `@type`
+ that can be compared against another Height for the purposes
+ of updating and
- field. Example (for message
- [google.protobuf.Duration][]):
+ freezing clients
+ proof_init:
+ type: string
+ format: byte
+ title: >-
+ proof of the initialization the connection on Chain A:
+ `UNITIALIZED ->
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: NFT defines the NFT.
- title: NFT defines the NFT
- pagination:
- description: pagination defines the pagination in the response.
+ INIT`
+ proof_client:
+ type: string
+ format: byte
+ title: proof of client state included in message
+ proof_consensus:
+ type: string
+ format: byte
+ title: proof of client consensus state
+ consensus_height:
type: object
properties:
- next_key:
+ revision_number:
type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
+ format: uint64
+ title: the revision that the client is currently on
+ revision_height:
type: string
format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ title: the height within the given revision
+ description: >-
+ Normally the RevisionHeight is incremented at each height
+ while keeping
- was set, its value is undefined otherwise
- title: >-
- QueryNFTsResponse is the response type for the Query/NFTs RPC
- methods
+ RevisionNumber the same. However some consensus algorithms may
+ choose to
+
+ reset the height in certain conditions e.g. hard forks,
+ state-machine
+
+ breaking changes In these cases, the RevisionNumber is
+ incremented so that
+
+ height continues to be monitonically increasing even as the
+ RevisionHeight
+
+ gets reset
+ title: >-
+ Height is a monotonically increasing data type
+
+ that can be compared against another Height for the purposes
+ of updating and
+
+ freezing clients
+ signer:
+ type: string
+ host_consensus_state_proof:
+ type: string
+ format: byte
+ title: >-
+ optional proof data for host state machines that are unable to
+ introspect their own consensus state
+ description: >-
+ MsgConnectionOpenTry defines a msg sent by a Relayer to try to
+ open a
+
+ connection on Chain B.
+ tags:
+ - Msg
+ /ibc.core.connection.v1.Msg/UpdateConnectionParams:
+ post:
+ summary: |-
+ UpdateConnectionParams defines a rpc handler method for
+ MsgUpdateParams.
+ operationId: IbcCoreConnectionV1Msg_UpdateConnectionParams
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ description: MsgUpdateParamsResponse defines the MsgUpdateParams response type.
default:
description: An unexpected error response.
schema:
@@ -24624,8 +18792,12 @@ paths:
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- Example 3: Pack and unpack a message in Python.
+ Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
@@ -24635,7 +18807,7 @@ paths:
any.Unpack(foo)
...
- Example 4: Pack and unpack a message in Go
+ Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
@@ -24663,10 +18835,8 @@ paths:
name "y.z".
-
JSON
- ====
The JSON representation of an `Any` value uses the regular
@@ -24704,47147 +18874,2293 @@ paths:
"value": "1.212s"
}
parameters:
- - name: class_id
- description: class_id associated with the nft
- in: query
- required: false
- type: string
- - name: owner
- description: owner is the owner address of the nft
- in: query
- required: false
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
+ - name: body
description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/nft/v1beta1/nfts/{class_id}/{id}:
- get:
- summary: NFT queries an NFT based on its class and id.
- operationId: CosmosNftV1Beta1NFT
- responses:
- '200':
- description: A successful response.
+ MsgUpdateParams defines the sdk.Msg type to update the connection
+ parameters.
+ in: body
+ required: true
schema:
type: object
properties:
- nft:
- title: owner is the owner address of the nft
+ signer:
+ type: string
+ title: signer address
+ params:
+ description: |-
+ params defines the connection parameters to update.
+
+ NOTE: All parameters must be supplied.
type: object
properties:
- class_id:
- type: string
- title: >-
- class_id associated with the NFT, similar to the contract
- address of ERC721
- id:
- type: string
- title: id is a unique identifier of the NFT
- uri:
- type: string
- title: uri for the NFT metadata stored off chain
- uri_hash:
+ max_expected_time_per_block:
type: string
- title: uri_hash is a hash of the document pointed by uri
- data:
- title: data is an app specific data of the NFT. Optional
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
+ format: uint64
+ description: >-
+ maximum expected time per block (in nanoseconds), used to
+ enforce block delay. This parameter should reflect the
- protocol buffer message. This string must contain at
- least
+ largest amount of time that the chain might reasonably
+ take to produce the next block under normal operating
- one "/" character. The last segment of the URL's path
- must represent
+ conditions. A safe choice is 3-5x the expected time per
+ block.
+ description: >-
+ MsgUpdateParams defines the sdk.Msg type to update the connection
+ parameters.
+ tags:
+ - Msg
+definitions:
+ cosmos.auth.v1beta1.MsgUpdateParams:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to x/gov
+ unless overwritten).
+ params:
+ description: |-
+ params defines the x/auth parameters to update.
- the fully qualified name of the type (as in
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ max_memo_characters:
+ type: string
+ format: uint64
+ tx_sig_limit:
+ type: string
+ format: uint64
+ tx_size_cost_per_byte:
+ type: string
+ format: uint64
+ sig_verify_cost_ed25519:
+ type: string
+ format: uint64
+ sig_verify_cost_secp256k1:
+ type: string
+ format: uint64
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
+ Since: cosmos-sdk 0.47
+ cosmos.auth.v1beta1.MsgUpdateParamsResponse:
+ type: object
+ description: |-
+ MsgUpdateParamsResponse defines the response structure for executing a
+ MsgUpdateParams message.
- (e.g., leading "." is not accepted).
+ Since: cosmos-sdk 0.47
+ cosmos.auth.v1beta1.Params:
+ type: object
+ properties:
+ max_memo_characters:
+ type: string
+ format: uint64
+ tx_sig_limit:
+ type: string
+ format: uint64
+ tx_size_cost_per_byte:
+ type: string
+ format: uint64
+ sig_verify_cost_ed25519:
+ type: string
+ format: uint64
+ sig_verify_cost_secp256k1:
+ type: string
+ format: uint64
+ description: Params defines the parameters for the auth module.
+ google.protobuf.Any:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+ protocol buffer message. This string must contain at least
- In practice, teams usually precompile into the binary
- all types that they
+ one "/" character. The last segment of the URL's path must represent
- expect it to use in the context of Any. However, for
- URLs which use the
+ the fully qualified name of the type (as in
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
+ `path/google.protobuf.Duration`). The name should be in a canonical
+ form
- server that maps type URLs to message definitions as
- follows:
+ (e.g., leading "." is not accepted).
- * If no scheme is provided, `https` is assumed.
+ In practice, teams usually precompile into the binary all types that
+ they
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ expect it to use in the context of Any. However, for URLs which use
+ the
- Note: this functionality is not currently available in
- the official
+ scheme `http`, `https`, or no scheme, one can optionally set up a type
- protobuf release, and it is not used for type URLs
- beginning with
+ server that maps type URLs to message definitions as follows:
- type.googleapis.com.
+ * If no scheme is provided, `https` is assumed.
- Schemes other than `http`, `https` (or the empty
- scheme) might be
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ Note: this functionality is not currently available in the official
- URL that describes the type of the serialized message.
+ protobuf release, and it is not used for type URLs beginning with
+ type.googleapis.com.
- Protobuf library provides support to pack/unpack Any
- values in the form
- of utility functions or additional generated methods of
- the Any type.
+ Schemes other than `http`, `https` (or the empty scheme) might be
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along with
+ a
- Example 1: Pack and unpack a message in C++.
+ URL that describes the type of the serialized message.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
- Example 2: Pack and unpack a message in Java.
+ Protobuf library provides support to pack/unpack Any values in the form
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ of utility functions or additional generated methods of the Any type.
- Example 3: Pack and unpack a message in Python.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ Example 1: Pack and unpack a message in C++.
- Example 4: Pack and unpack a message in Go
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Example 2: Pack and unpack a message in Java.
- The pack methods provided by protobuf library will by
- default use
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
+ Example 3: Pack and unpack a message in Python.
- methods only use the fully qualified type name after the
- last '/'
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
+ Example 4: Pack and unpack a message in Go
- name "y.z".
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+ The pack methods provided by protobuf library will by default use
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
- JSON
+ methods only use the fully qualified type name after the last '/'
- ====
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
- The JSON representation of an `Any` value uses the regular
+ name "y.z".
- representation of the deserialized, embedded message, with
- an
- additional field `@type` which contains the type URL.
- Example:
+ JSON
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ The JSON representation of an `Any` value uses the regular
- If the embedded message type is well-known and has a
- custom JSON
+ representation of the deserialized, embedded message, with an
- representation, that representation will be embedded
- adding a field
+ additional field `@type` which contains the type URL. Example:
- `value` which holds the custom JSON in addition to the
- `@type`
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- field. Example (for message [google.protobuf.Duration][]):
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: NFT defines the NFT.
- title: QueryNFTResponse is the response type for the Query/NFT RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ If the embedded message type is well-known and has a custom JSON
- protocol buffer message. This string must contain at
- least
+ representation, that representation will be embedded adding a field
- one "/" character. The last segment of the URL's path
- must represent
+ `value` which holds the custom JSON in addition to the `@type`
- the fully qualified name of the type (as in
+ field. Example (for message [google.protobuf.Duration][]):
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ google.rpc.Status:
+ type: object
+ properties:
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
- (e.g., leading "." is not accepted).
+ protocol buffer message. This string must contain at least
+ one "/" character. The last segment of the URL's path must
+ represent
- In practice, teams usually precompile into the binary
- all types that they
+ the fully qualified name of the type (as in
- expect it to use in the context of Any. However, for
- URLs which use the
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ (e.g., leading "." is not accepted).
- server that maps type URLs to message definitions as
- follows:
+ In practice, teams usually precompile into the binary all types
+ that they
- * If no scheme is provided, `https` is assumed.
+ expect it to use in the context of Any. However, for URLs which
+ use the
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ scheme `http`, `https`, or no scheme, one can optionally set up
+ a type
- Note: this functionality is not currently available in
- the official
+ server that maps type URLs to message definitions as follows:
- protobuf release, and it is not used for type URLs
- beginning with
- type.googleapis.com.
+ * If no scheme is provided, `https` is assumed.
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ Note: this functionality is not currently available in the
+ official
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ protobuf release, and it is not used for type URLs beginning
+ with
- URL that describes the type of the serialized message.
+ type.googleapis.com.
- Protobuf library provides support to pack/unpack Any values
- in the form
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
- of utility functions or additional generated methods of the
- Any type.
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+ URL that describes the type of the serialized message.
- Example 1: Pack and unpack a message in C++.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ Protobuf library provides support to pack/unpack Any values in the
+ form
- Example 2: Pack and unpack a message in Java.
+ of utility functions or additional generated methods of the Any
+ type.
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
- Example 3: Pack and unpack a message in Python.
+ Example 1: Pack and unpack a message in C++.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- Example 4: Pack and unpack a message in Go
+ Example 2: Pack and unpack a message in Java.
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- The pack methods provided by protobuf library will by
- default use
+ Example 3: Pack and unpack a message in Python.
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- methods only use the fully qualified type name after the
- last '/'
+ Example 4: Pack and unpack a message in Go
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- name "y.z".
+ The pack methods provided by protobuf library will by default use
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+ methods only use the fully qualified type name after the last '/'
- JSON
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
- ====
+ name "y.z".
- The JSON representation of an `Any` value uses the regular
- representation of the deserialized, embedded message, with
- an
+ JSON
- additional field `@type` which contains the type URL.
- Example:
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ The JSON representation of an `Any` value uses the regular
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ representation of the deserialized, embedded message, with an
- If the embedded message type is well-known and has a custom
- JSON
+ additional field `@type` which contains the type URL. Example:
- representation, that representation will be embedded adding
- a field
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- `value` which holds the custom JSON in addition to the
- `@type`
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- field. Example (for message [google.protobuf.Duration][]):
+ If the embedded message type is well-known and has a custom JSON
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: class_id
- description: class_id associated with the nft
- in: path
- required: true
- type: string
- - name: id
- description: id is a unique identifier of the NFT
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/nft/v1beta1/owner/{class_id}/{id}:
- get:
- summary: >-
- Owner queries the owner of the NFT based on its class and id, same as
- ownerOf in ERC721
- operationId: CosmosNftV1Beta1Owner
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- owner:
- type: string
- title: owner is the owner address of the nft
- title: >-
- QueryOwnerResponse is the response type for the Query/Owner RPC
- method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
+ representation, that representation will be embedded adding a field
- one "/" character. The last segment of the URL's path
- must represent
+ `value` which holds the custom JSON in addition to the `@type`
- the fully qualified name of the type (as in
+ field. Example (for message [google.protobuf.Duration][]):
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ cosmos.authz.v1beta1.Grant:
+ type: object
+ properties:
+ authorization:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
- (e.g., leading "." is not accepted).
+ protocol buffer message. This string must contain at least
+ one "/" character. The last segment of the URL's path must
+ represent
- In practice, teams usually precompile into the binary
- all types that they
+ the fully qualified name of the type (as in
- expect it to use in the context of Any. However, for
- URLs which use the
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ (e.g., leading "." is not accepted).
- server that maps type URLs to message definitions as
- follows:
+ In practice, teams usually precompile into the binary all types
+ that they
- * If no scheme is provided, `https` is assumed.
+ expect it to use in the context of Any. However, for URLs which
+ use the
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
- Note: this functionality is not currently available in
- the official
+ server that maps type URLs to message definitions as follows:
- protobuf release, and it is not used for type URLs
- beginning with
- type.googleapis.com.
+ * If no scheme is provided, `https` is assumed.
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ Note: this functionality is not currently available in the
+ official
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ protobuf release, and it is not used for type URLs beginning with
- URL that describes the type of the serialized message.
+ type.googleapis.com.
- Protobuf library provides support to pack/unpack Any values
- in the form
+ Schemes other than `http`, `https` (or the empty scheme) might be
- of utility functions or additional generated methods of the
- Any type.
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
+ URL that describes the type of the serialized message.
- Example 1: Pack and unpack a message in C++.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ Protobuf library provides support to pack/unpack Any values in the
+ form
- Example 2: Pack and unpack a message in Java.
+ of utility functions or additional generated methods of the Any type.
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
- Example 3: Pack and unpack a message in Python.
+ Example 1: Pack and unpack a message in C++.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- Example 4: Pack and unpack a message in Go
+ Example 2: Pack and unpack a message in Java.
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- The pack methods provided by protobuf library will by
- default use
+ Example 3: Pack and unpack a message in Python.
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- methods only use the fully qualified type name after the
- last '/'
+ Example 4: Pack and unpack a message in Go
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- name "y.z".
+ The pack methods provided by protobuf library will by default use
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
+ methods only use the fully qualified type name after the last '/'
- JSON
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
- ====
+ name "y.z".
- The JSON representation of an `Any` value uses the regular
- representation of the deserialized, embedded message, with
- an
+ JSON
- additional field `@type` which contains the type URL.
- Example:
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ The JSON representation of an `Any` value uses the regular
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ representation of the deserialized, embedded message, with an
- If the embedded message type is well-known and has a custom
- JSON
+ additional field `@type` which contains the type URL. Example:
- representation, that representation will be embedded adding
- a field
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- `value` which holds the custom JSON in addition to the
- `@type`
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- field. Example (for message [google.protobuf.Duration][]):
+ If the embedded message type is well-known and has a custom JSON
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: class_id
- description: class_id associated with the nft
- in: path
- required: true
- type: string
- - name: id
- description: id is a unique identifier of the NFT
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/nft/v1beta1/supply/{class_id}:
- get:
- summary: >-
- Supply queries the number of NFTs from the given class, same as
- totalSupply of ERC721.
- operationId: CosmosNftV1Beta1Supply
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- amount:
- type: string
- format: uint64
- title: amount is the number of all NFTs from the given class
- title: >-
- QuerySupplyResponse is the response type for the Query/Supply RPC
- method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ representation, that representation will be embedded adding a field
- protocol buffer message. This string must contain at
- least
+ `value` which holds the custom JSON in addition to the `@type`
- one "/" character. The last segment of the URL's path
- must represent
+ field. Example (for message [google.protobuf.Duration][]):
- the fully qualified name of the type (as in
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ expiration:
+ type: string
+ format: date-time
+ title: >-
+ time when the grant will expire and will be pruned. If null, then the
+ grant
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ doesn't have a time expiration (other conditions in `authorization`
- (e.g., leading "." is not accepted).
+ may apply to invalidate the grant)
+ description: |-
+ Grant gives permissions to execute
+ the provide method with expiration time.
+ cosmos.authz.v1beta1.MsgExec:
+ type: object
+ properties:
+ grantee:
+ type: string
+ msgs:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
+ protocol buffer message. This string must contain at least
- In practice, teams usually precompile into the binary
- all types that they
+ one "/" character. The last segment of the URL's path must
+ represent
- expect it to use in the context of Any. However, for
- URLs which use the
+ the fully qualified name of the type (as in
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- server that maps type URLs to message definitions as
- follows:
+ (e.g., leading "." is not accepted).
- * If no scheme is provided, `https` is assumed.
+ In practice, teams usually precompile into the binary all types
+ that they
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ expect it to use in the context of Any. However, for URLs which
+ use the
- Note: this functionality is not currently available in
- the official
+ scheme `http`, `https`, or no scheme, one can optionally set up
+ a type
- protobuf release, and it is not used for type URLs
- beginning with
+ server that maps type URLs to message definitions as follows:
- type.googleapis.com.
+ * If no scheme is provided, `https` is assumed.
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ Note: this functionality is not currently available in the
+ official
- URL that describes the type of the serialized message.
+ protobuf release, and it is not used for type URLs beginning
+ with
+ type.googleapis.com.
- Protobuf library provides support to pack/unpack Any values
- in the form
- of utility functions or additional generated methods of the
- Any type.
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
- Example 1: Pack and unpack a message in C++.
+ URL that describes the type of the serialized message.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
- Example 2: Pack and unpack a message in Java.
+ Protobuf library provides support to pack/unpack Any values in the
+ form
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ of utility functions or additional generated methods of the Any
+ type.
- Example 3: Pack and unpack a message in Python.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ Example 1: Pack and unpack a message in C++.
- Example 4: Pack and unpack a message in Go
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Example 2: Pack and unpack a message in Java.
- The pack methods provided by protobuf library will by
- default use
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ Example 3: Pack and unpack a message in Python.
- methods only use the fully qualified type name after the
- last '/'
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ Example 4: Pack and unpack a message in Go
- name "y.z".
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
+ The pack methods provided by protobuf library will by default use
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
- JSON
+ methods only use the fully qualified type name after the last '/'
- ====
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
- The JSON representation of an `Any` value uses the regular
+ name "y.z".
- representation of the deserialized, embedded message, with
- an
- additional field `@type` which contains the type URL.
- Example:
+ JSON
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ The JSON representation of an `Any` value uses the regular
- If the embedded message type is well-known and has a custom
- JSON
+ representation of the deserialized, embedded message, with an
- representation, that representation will be embedded adding
- a field
+ additional field `@type` which contains the type URL. Example:
- `value` which holds the custom JSON in addition to the
- `@type`
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- field. Example (for message [google.protobuf.Duration][]):
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: class_id
- description: class_id associated with the nft
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/params/v1beta1/params:
- get:
- summary: |-
- Params queries a specific parameter of a module, given its subspace and
- key.
- operationId: CosmosParamsV1Beta1Params
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- param:
- description: param defines the queried parameter.
- type: object
- properties:
- subspace:
- type: string
- key:
- type: string
- value:
- type: string
- description: >-
- QueryParamsResponse is response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: subspace
- description: subspace defines the module to query the parameter for.
- in: query
- required: false
- type: string
- - name: key
- description: key defines the key of the parameter in the subspace.
- in: query
- required: false
- type: string
- tags:
- - Query
- /cosmos/params/v1beta1/subspaces:
- get:
- summary: >-
- Subspaces queries for all registered subspaces and all keys for a
- subspace.
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosParamsV1Beta1Subspaces
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- subspaces:
- type: array
- items:
- type: object
- properties:
- subspace:
- type: string
- keys:
- type: array
- items:
- type: string
- description: >-
- Subspace defines a parameter subspace name and all the keys
- that exist for
+ If the embedded message type is well-known and has a custom JSON
- the subspace.
+ representation, that representation will be embedded adding a field
+ `value` which holds the custom JSON in addition to the `@type`
- Since: cosmos-sdk 0.46
- description: >-
- QuerySubspacesResponse defines the response types for querying for
- all
+ field. Example (for message [google.protobuf.Duration][]):
- registered subspaces and all keys for a subspace.
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ description: >-
+ Execute Msg.
+ The x/authz will try to find a grant matching (msg.signers[0],
+ grantee, MsgTypeURL(msg))
- Since: cosmos-sdk 0.46
- default:
- description: An unexpected error response.
- schema:
+ triple and validate it.
+ description: |-
+ MsgExec attempts to execute the provided messages using
+ authorizations granted to the grantee. Each message should have only
+ one signer corresponding to the granter of the authorization.
+ cosmos.authz.v1beta1.MsgExecResponse:
+ type: object
+ properties:
+ results:
+ type: array
+ items:
+ type: string
+ format: byte
+ description: MsgExecResponse defines the Msg/MsgExecResponse response type.
+ cosmos.authz.v1beta1.MsgGrant:
+ type: object
+ properties:
+ granter:
+ type: string
+ grantee:
+ type: string
+ grant:
+ type: object
+ properties:
+ authorization:
type: object
properties:
- code:
- type: integer
- format: int32
- message:
+ '@type':
type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Query
- /cosmos/slashing/v1beta1/params:
- get:
- summary: Params queries the parameters of slashing module
- operationId: CosmosSlashingV1Beta1Params
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- type: object
- properties:
- signed_blocks_window:
- type: string
- format: int64
- min_signed_per_window:
- type: string
- format: byte
- downtime_jail_duration:
- type: string
- slash_fraction_double_sign:
- type: string
- format: byte
- slash_fraction_downtime:
- type: string
- format: byte
description: >-
- Params represents the parameters used for by the slashing
- module.
- title: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Query
- /cosmos/slashing/v1beta1/signing_infos:
- get:
- summary: SigningInfos queries signing info of all validators
- operationId: CosmosSlashingV1Beta1SigningInfos
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- info:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- start_height:
- type: string
- format: int64
- title: >-
- Height at which validator was first a candidate OR was
- unjailed
- index_offset:
- type: string
- format: int64
- description: >-
- Index which is incremented each time the validator was a
- bonded
+ A URL/resource name that uniquely identifies the type of the
+ serialized
- in a block and may have signed a precommit or not. This
- in conjunction with the
+ protocol buffer message. This string must contain at least
- `SignedBlocksWindow` param determines the index in the
- `MissedBlocksBitArray`.
- jailed_until:
- type: string
- format: date-time
- description: >-
- Timestamp until which the validator is jailed due to
- liveness downtime.
- tombstoned:
- type: boolean
- description: >-
- Whether or not a validator has been tombstoned (killed
- out of validator set). It is set
+ one "/" character. The last segment of the URL's path must
+ represent
- once the validator commits an equivocation or for any
- other configured misbehiavor.
- missed_blocks_counter:
- type: string
- format: int64
- description: >-
- A counter kept to avoid unnecessary array reads.
+ the fully qualified name of the type (as in
- Note that `Sum(MissedBlocksBitArray)` always equals
- `MissedBlocksCounter`.
- description: >-
- ValidatorSigningInfo defines a validator's signing info for
- monitoring their
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- liveness activity.
- title: info is the signing info of all validators
- pagination:
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ (e.g., leading "." is not accepted).
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
- corresponding request message has used PageRequest.
+ In practice, teams usually precompile into the binary all
+ types that they
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- title: >-
- QuerySigningInfosResponse is the response type for the
- Query/SigningInfos RPC
+ expect it to use in the context of Any. However, for URLs
+ which use the
- method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ scheme `http`, `https`, or no scheme, one can optionally set
+ up a type
- It is less efficient than using key. Only one of offset or key
- should
+ server that maps type URLs to message definitions as follows:
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ * If no scheme is provided, `https` is assumed.
- a count of the total number of items available for pagination in
- UIs.
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on
+ the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- count_total is only respected when offset is used. It is ignored
- when key
+ Note: this functionality is not currently available in the
+ official
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ protobuf release, and it is not used for type URLs beginning
+ with
+ type.googleapis.com.
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/slashing/v1beta1/signing_infos/{cons_address}:
- get:
- summary: SigningInfo queries the signing info of given cons address
- operationId: CosmosSlashingV1Beta1SigningInfo
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- val_signing_info:
- title: >-
- val_signing_info is the signing info of requested val cons
- address
- type: object
- properties:
- address:
- type: string
- start_height:
- type: string
- format: int64
- title: >-
- Height at which validator was first a candidate OR was
- unjailed
- index_offset:
- type: string
- format: int64
- description: >-
- Index which is incremented each time the validator was a
- bonded
- in a block and may have signed a precommit or not. This in
- conjunction with the
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
- `SignedBlocksWindow` param determines the index in the
- `MissedBlocksBitArray`.
- jailed_until:
- type: string
- format: date-time
- description: >-
- Timestamp until which the validator is jailed due to
- liveness downtime.
- tombstoned:
- type: boolean
- description: >-
- Whether or not a validator has been tombstoned (killed out
- of validator set). It is set
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message
+ along with a
- once the validator commits an equivocation or for any
- other configured misbehiavor.
- missed_blocks_counter:
- type: string
- format: int64
- description: >-
- A counter kept to avoid unnecessary array reads.
+ URL that describes the type of the serialized message.
- Note that `Sum(MissedBlocksBitArray)` always equals
- `MissedBlocksCounter`.
- description: >-
- ValidatorSigningInfo defines a validator's signing info for
- monitoring their
- liveness activity.
- title: >-
- QuerySigningInfoResponse is the response type for the
- Query/SigningInfo RPC
+ Protobuf library provides support to pack/unpack Any values in the
+ form
- method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: cons_address
- description: cons_address is the address to query signing info of
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/staking/v1beta1/delegations/{delegator_addr}:
- get:
- summary: >-
- DelegatorDelegations queries all delegations of a given delegator
- address.
- description: >-
- When called from another module, this query might consume a high amount
- of
-
- gas if the pagination field is incorrectly set.
- operationId: CosmosStakingV1Beta1DelegatorDelegations
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- delegation_responses:
- type: array
- items:
- type: object
- properties:
- delegation:
- type: object
- properties:
- delegator_address:
- type: string
- description: >-
- delegator_address is the bech32-encoded address of
- the delegator.
- validator_address:
- type: string
- description: >-
- validator_address is the bech32-encoded address of
- the validator.
- shares:
- type: string
- description: shares define the delegation shares received.
- description: >-
- Delegation represents the bond with tokens held by an
- account. It is
+ of utility functions or additional generated methods of the Any
+ type.
- owned by one delegator, and is associated with the
- voting power of one
- validator.
- balance:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
+ Example 1: Pack and unpack a message in C++.
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- NOTE: The amount field is an Int which implements the
- custom method
+ Example 2: Pack and unpack a message in Java.
- signatures required by gogoproto.
- description: >-
- DelegationResponse is equivalent to Delegation except that
- it contains a
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- balance in addition to shares which is more suitable for
- client responses.
- description: >-
- delegation_responses defines all the delegations' info of a
- delegator.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ Example 3: Pack and unpack a message in Python.
- was set, its value is undefined otherwise
- description: |-
- QueryDelegatorDelegationsResponse is response type for the
- Query/DelegatorDelegations RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- protocol buffer message. This string must contain at
- least
+ Example 4: Pack and unpack a message in Go
- one "/" character. The last segment of the URL's path
- must represent
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- the fully qualified name of the type (as in
+ The pack methods provided by protobuf library will by default use
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ 'type.googleapis.com/full.type.name' as the type URL and the
+ unpack
- (e.g., leading "." is not accepted).
+ methods only use the fully qualified type name after the last '/'
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
- In practice, teams usually precompile into the binary
- all types that they
+ name "y.z".
- expect it to use in the context of Any. However, for
- URLs which use the
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ JSON
- server that maps type URLs to message definitions as
- follows:
+ The JSON representation of an `Any` value uses the regular
- * If no scheme is provided, `https` is assumed.
+ representation of the deserialized, embedded message, with an
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ additional field `@type` which contains the type URL. Example:
- Note: this functionality is not currently available in
- the official
+ package google.profile;
+ message Person {
+ string first_name = 1;
+ string last_name = 2;
+ }
- protobuf release, and it is not used for type URLs
- beginning with
+ {
+ "@type": "type.googleapis.com/google.profile.Person",
+ "firstName": ,
+ "lastName":
+ }
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
+ If the embedded message type is well-known and has a custom JSON
+ representation, that representation will be embedded adding a
+ field
- Protobuf library provides support to pack/unpack Any values
- in the form
+ `value` which holds the custom JSON in addition to the `@type`
- of utility functions or additional generated methods of the
- Any type.
+ field. Example (for message [google.protobuf.Duration][]):
+ {
+ "@type": "type.googleapis.com/google.protobuf.Duration",
+ "value": "1.212s"
+ }
+ expiration:
+ type: string
+ format: date-time
+ title: >-
+ time when the grant will expire and will be pruned. If null, then
+ the grant
- Example 1: Pack and unpack a message in C++.
+ doesn't have a time expiration (other conditions in
+ `authorization`
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ may apply to invalidate the grant)
+ description: |-
+ Grant gives permissions to execute
+ the provide method with expiration time.
+ description: >-
+ MsgGrant is a request type for Grant method. It declares authorization to
+ the grantee
- Example 2: Pack and unpack a message in Java.
+ on behalf of the granter with the provided expiration time.
+ cosmos.authz.v1beta1.MsgGrantResponse:
+ type: object
+ description: MsgGrantResponse defines the Msg/MsgGrant response type.
+ cosmos.authz.v1beta1.MsgRevoke:
+ type: object
+ properties:
+ granter:
+ type: string
+ grantee:
+ type: string
+ msg_type_url:
+ type: string
+ description: |-
+ MsgRevoke revokes any authorization with the provided sdk.Msg type on the
+ granter's account with that has been granted to the grantee.
+ cosmos.authz.v1beta1.MsgRevokeResponse:
+ type: object
+ description: MsgRevokeResponse defines the Msg/MsgRevokeResponse response type.
+ cosmos.bank.v1beta1.Input:
+ type: object
+ properties:
+ address:
+ type: string
+ coins:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: Input models transaction input.
+ cosmos.bank.v1beta1.MsgMultiSend:
+ type: object
+ properties:
+ inputs:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ coins:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- Example 3: Pack and unpack a message in Python.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ NOTE: The amount field is an Int which implements the custom
+ method
- Example 4: Pack and unpack a message in Go
+ signatures required by gogoproto.
+ description: Input models transaction input.
+ description: >-
+ Inputs, despite being `repeated`, only allows one sender input. This
+ is
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ checked in MsgMultiSend's ValidateBasic.
+ outputs:
+ type: array
+ items:
+ type: object
+ properties:
+ address:
+ type: string
+ coins:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: >-
+ Coin defines a token with a denomination and an amount.
- The pack methods provided by protobuf library will by
- default use
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ NOTE: The amount field is an Int which implements the custom
+ method
- methods only use the fully qualified type name after the
- last '/'
+ signatures required by gogoproto.
+ description: Output models transaction outputs.
+ description: MsgMultiSend represents an arbitrary multi-in, multi-out send message.
+ cosmos.bank.v1beta1.MsgMultiSendResponse:
+ type: object
+ description: MsgMultiSendResponse defines the Msg/MultiSend response type.
+ cosmos.bank.v1beta1.MsgSend:
+ type: object
+ properties:
+ from_address:
+ type: string
+ to_address:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: MsgSend represents a message to send coins from one account to another.
+ cosmos.bank.v1beta1.MsgSendResponse:
+ type: object
+ description: MsgSendResponse defines the Msg/Send response type.
+ cosmos.bank.v1beta1.MsgSetSendEnabled:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: authority is the address that controls the module.
+ send_enabled:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
+ description: >-
+ SendEnabled maps coin denom to a send_enabled status (whether a
+ denom is
- name "y.z".
+ sendable).
+ description: send_enabled is the list of entries to add or update.
+ use_default_for:
+ type: array
+ items:
+ type: string
+ description: >-
+ use_default_for is a list of denoms that should use the
+ params.default_send_enabled value.
+ Denoms listed here will have their SendEnabled entries deleted.
+ If a denom is included that doesn't have a SendEnabled entry,
- JSON
+ it will be ignored.
+ description: |-
+ MsgSetSendEnabled is the Msg/SetSendEnabled request type.
- ====
+ Only entries to add/update/delete need to be included.
+ Existing SendEnabled entries that are not included in this
+ message are left unchanged.
- The JSON representation of an `Any` value uses the regular
+ Since: cosmos-sdk 0.47
+ cosmos.bank.v1beta1.MsgSetSendEnabledResponse:
+ type: object
+ description: |-
+ MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type.
- representation of the deserialized, embedded message, with
- an
+ Since: cosmos-sdk 0.47
+ cosmos.bank.v1beta1.MsgUpdateParams:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to x/gov
+ unless overwritten).
+ params:
+ description: |-
+ params defines the x/bank parameters to update.
- additional field `@type` which contains the type URL.
- Example:
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ send_enabled:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
+ description: >-
+ SendEnabled maps coin denom to a send_enabled status (whether a
+ denom is
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ sendable).
+ description: >-
+ Deprecated: Use of SendEnabled in params is deprecated.
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ For genesis, use the newly added send_enabled field in the genesis
+ object.
- If the embedded message type is well-known and has a custom
- JSON
+ Storage, lookup, and manipulation of this information is now in
+ the keeper.
- representation, that representation will be embedded adding
- a field
- `value` which holds the custom JSON in addition to the
- `@type`
+ As of cosmos-sdk 0.47, this only exists for backwards
+ compatibility of genesis files.
+ default_send_enabled:
+ type: boolean
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- field. Example (for message [google.protobuf.Duration][]):
+ Since: cosmos-sdk 0.47
+ cosmos.bank.v1beta1.MsgUpdateParamsResponse:
+ type: object
+ description: |-
+ MsgUpdateParamsResponse defines the response structure for executing a
+ MsgUpdateParams message.
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: delegator_addr
- description: delegator_addr defines the delegator address to query for.
- in: path
- required: true
- type: string
- - name: pagination.key
+ Since: cosmos-sdk 0.47
+ cosmos.bank.v1beta1.Output:
+ type: object
+ properties:
+ address:
+ type: string
+ coins:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ Coin defines a token with a denomination and an amount.
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: Output models transaction outputs.
+ cosmos.bank.v1beta1.Params:
+ type: object
+ properties:
+ send_enabled:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
+ SendEnabled maps coin denom to a send_enabled status (whether a
+ denom is
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ sendable).
+ description: >-
+ Deprecated: Use of SendEnabled in params is deprecated.
+ For genesis, use the newly added send_enabled field in the genesis
+ object.
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations:
- get:
- summary: Redelegations queries redelegations of given address.
- description: >-
- When called from another module, this query might consume a high amount
- of
+ Storage, lookup, and manipulation of this information is now in the
+ keeper.
- gas if the pagination field is incorrectly set.
- operationId: CosmosStakingV1Beta1Redelegations
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- redelegation_responses:
- type: array
- items:
- type: object
- properties:
- redelegation:
- type: object
- properties:
- delegator_address:
- type: string
- description: >-
- delegator_address is the bech32-encoded address of
- the delegator.
- validator_src_address:
- type: string
- description: >-
- validator_src_address is the validator redelegation
- source operator address.
- validator_dst_address:
- type: string
- description: >-
- validator_dst_address is the validator redelegation
- destination operator address.
- entries:
- type: array
- items:
- type: object
- properties:
- creation_height:
- type: string
- format: int64
- description: >-
- creation_height defines the height which the
- redelegation took place.
- completion_time:
- type: string
- format: date-time
- description: >-
- completion_time defines the unix time for
- redelegation completion.
- initial_balance:
- type: string
- description: >-
- initial_balance defines the initial balance
- when redelegation started.
- shares_dst:
- type: string
- description: >-
- shares_dst is the amount of
- destination-validator shares created by
- redelegation.
- unbonding_id:
- type: string
- format: uint64
- title: >-
- Incrementing id that uniquely identifies this
- entry
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- Strictly positive if this entry's unbonding
- has been stopped by external modules
- description: >-
- RedelegationEntry defines a redelegation object
- with relevant metadata.
- description: |-
- entries are the redelegation entries.
-
- redelegation entries
- description: >-
- Redelegation contains the list of a particular
- delegator's redelegating bonds
- from a particular source validator to a particular
- destination validator.
- entries:
- type: array
- items:
- type: object
- properties:
- redelegation_entry:
- type: object
- properties:
- creation_height:
- type: string
- format: int64
- description: >-
- creation_height defines the height which the
- redelegation took place.
- completion_time:
- type: string
- format: date-time
- description: >-
- completion_time defines the unix time for
- redelegation completion.
- initial_balance:
- type: string
- description: >-
- initial_balance defines the initial balance
- when redelegation started.
- shares_dst:
- type: string
- description: >-
- shares_dst is the amount of
- destination-validator shares created by
- redelegation.
- unbonding_id:
- type: string
- format: uint64
- title: >-
- Incrementing id that uniquely identifies this
- entry
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- Strictly positive if this entry's unbonding
- has been stopped by external modules
- description: >-
- RedelegationEntry defines a redelegation object
- with relevant metadata.
- balance:
- type: string
- description: >-
- RedelegationEntryResponse is equivalent to a
- RedelegationEntry except that it
+ As of cosmos-sdk 0.47, this only exists for backwards compatibility of
+ genesis files.
+ default_send_enabled:
+ type: boolean
+ description: Params defines the parameters for the bank module.
+ cosmos.bank.v1beta1.SendEnabled:
+ type: object
+ properties:
+ denom:
+ type: string
+ enabled:
+ type: boolean
+ description: |-
+ SendEnabled maps coin denom to a send_enabled status (whether a denom is
+ sendable).
+ cosmos.base.v1beta1.Coin:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- contains a balance in addition to shares which is more
- suitable for client
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ cosmos.base.node.v1beta1.ConfigResponse:
+ type: object
+ properties:
+ minimum_gas_price:
+ type: string
+ pruning_keep_recent:
+ type: string
+ title: pruning settings
+ pruning_interval:
+ type: string
+ description: ConfigResponse defines the response structure for the Config gRPC query.
+ cosmos.base.node.v1beta1.StatusResponse:
+ type: object
+ properties:
+ earliest_store_height:
+ type: string
+ format: uint64
+ title: earliest block height available in the store
+ height:
+ type: string
+ format: uint64
+ title: current block height
+ timestamp:
+ type: string
+ format: date-time
+ title: block height timestamp
+ app_hash:
+ type: string
+ format: byte
+ title: app hash of the current block
+ validator_hash:
+ type: string
+ format: byte
+ title: validator hash provided by the consensus header
+ description: StateResponse defines the response structure for the status of a node.
+ cosmos.consensus.v1.MsgUpdateParams:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to x/gov
+ unless overwritten).
+ block:
+ description: |-
+ params defines the x/consensus parameters to update.
+ VersionsParams is not included in this Msg because it is tracked
+ separarately in x/upgrade.
- responses.
- description: >-
- RedelegationResponse is equivalent to a Redelegation except
- that its entries
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ max_bytes:
+ type: string
+ format: int64
+ title: |-
+ Max block size, in bytes.
+ Note: must be greater than 0
+ max_gas:
+ type: string
+ format: int64
+ title: |-
+ Max gas per block.
+ Note: must be greater or equal to -1
+ evidence:
+ type: object
+ properties:
+ max_age_num_blocks:
+ type: string
+ format: int64
+ description: >-
+ Max age of evidence, in blocks.
- contain a balance in addition to shares which is more
- suitable for client
- responses.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ The basic formula for calculating this is: MaxAgeDuration /
+ {average block
- was set, its value is undefined otherwise
+ time}.
+ max_age_duration:
+ type: string
description: >-
- QueryRedelegationsResponse is response type for the
- Query/Redelegations RPC
+ Max age of evidence, in time.
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
- protocol buffer message. This string must contain at
- least
+ It should correspond with an app's "unbonding period" or other
+ similar
- one "/" character. The last segment of the URL's path
- must represent
+ mechanism for handling [Nothing-At-Stake
- the fully qualified name of the type (as in
+ attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
+ max_bytes:
+ type: string
+ format: int64
+ title: >-
+ This sets the maximum size of total evidence in bytes that can be
+ committed in a single block.
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ and should fall comfortably under the max block bytes.
- (e.g., leading "." is not accepted).
+ Default is 1048576 or 1MB
+ description: EvidenceParams determine how we handle evidence of malfeasance.
+ validator:
+ type: object
+ properties:
+ pub_key_types:
+ type: array
+ items:
+ type: string
+ description: |-
+ ValidatorParams restrict the public key types validators can use.
+ NOTE: uses ABCI pubkey naming, not Amino names.
+ abci:
+ title: 'Since: cosmos-sdk 0.50'
+ type: object
+ properties:
+ vote_extensions_enable_height:
+ type: string
+ format: int64
+ description: >-
+ vote_extensions_enable_height configures the first height during
+ which
+ vote extensions will be enabled. During this specified height, and
+ for all
- In practice, teams usually precompile into the binary
- all types that they
+ subsequent heights, precommit messages that do not contain valid
+ extension data
- expect it to use in the context of Any. However, for
- URLs which use the
+ will be considered invalid. Prior to this height, vote extensions
+ will not
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ be used or accepted by validators on the network.
- server that maps type URLs to message definitions as
- follows:
+ Once enabled, vote extensions will be created by the application
+ in ExtendVote,
- * If no scheme is provided, `https` is assumed.
+ passed to the application for validation in VerifyVoteExtension
+ and given
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
+ to the application to use when proposing a block during
+ PrepareProposal.
+ description: >-
+ ABCIParams configure functionality specific to the Application
+ Blockchain Interface.
+ description: MsgUpdateParams is the Msg/UpdateParams request type.
+ cosmos.consensus.v1.MsgUpdateParamsResponse:
+ type: object
+ description: |-
+ MsgUpdateParamsResponse defines the response structure for executing a
+ MsgUpdateParams message.
+ tendermint.types.ABCIParams:
+ type: object
+ properties:
+ vote_extensions_enable_height:
+ type: string
+ format: int64
+ description: >-
+ vote_extensions_enable_height configures the first height during which
- type.googleapis.com.
+ vote extensions will be enabled. During this specified height, and for
+ all
+ subsequent heights, precommit messages that do not contain valid
+ extension data
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ will be considered invalid. Prior to this height, vote extensions will
+ not
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ be used or accepted by validators on the network.
- URL that describes the type of the serialized message.
+ Once enabled, vote extensions will be created by the application in
+ ExtendVote,
- Protobuf library provides support to pack/unpack Any values
- in the form
+ passed to the application for validation in VerifyVoteExtension and
+ given
- of utility functions or additional generated methods of the
- Any type.
+ to the application to use when proposing a block during
+ PrepareProposal.
+ description: >-
+ ABCIParams configure functionality specific to the Application Blockchain
+ Interface.
+ tendermint.types.BlockParams:
+ type: object
+ properties:
+ max_bytes:
+ type: string
+ format: int64
+ title: |-
+ Max block size, in bytes.
+ Note: must be greater than 0
+ max_gas:
+ type: string
+ format: int64
+ title: |-
+ Max gas per block.
+ Note: must be greater or equal to -1
+ description: BlockParams contains limits on the block size.
+ tendermint.types.EvidenceParams:
+ type: object
+ properties:
+ max_age_num_blocks:
+ type: string
+ format: int64
+ description: >-
+ Max age of evidence, in blocks.
- Example 1: Pack and unpack a message in C++.
+ The basic formula for calculating this is: MaxAgeDuration / {average
+ block
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
+ time}.
+ max_age_duration:
+ type: string
+ description: >-
+ Max age of evidence, in time.
- Example 2: Pack and unpack a message in Java.
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ It should correspond with an app's "unbonding period" or other similar
- Example 3: Pack and unpack a message in Python.
+ mechanism for handling [Nothing-At-Stake
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
+ attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
+ max_bytes:
+ type: string
+ format: int64
+ title: >-
+ This sets the maximum size of total evidence in bytes that can be
+ committed in a single block.
- Example 4: Pack and unpack a message in Go
+ and should fall comfortably under the max block bytes.
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Default is 1048576 or 1MB
+ description: EvidenceParams determine how we handle evidence of malfeasance.
+ tendermint.types.ValidatorParams:
+ type: object
+ properties:
+ pub_key_types:
+ type: array
+ items:
+ type: string
+ description: |-
+ ValidatorParams restrict the public key types validators can use.
+ NOTE: uses ABCI pubkey naming, not Amino names.
+ cosmos.crisis.v1beta1.MsgUpdateParams:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to x/gov
+ unless overwritten).
+ constant_fee:
+ description: constant_fee defines the x/crisis parameter.
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- The pack methods provided by protobuf library will by
- default use
+ Since: cosmos-sdk 0.47
+ cosmos.crisis.v1beta1.MsgUpdateParamsResponse:
+ type: object
+ description: |-
+ MsgUpdateParamsResponse defines the response structure for executing a
+ MsgUpdateParams message.
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ Since: cosmos-sdk 0.47
+ cosmos.crisis.v1beta1.MsgVerifyInvariant:
+ type: object
+ properties:
+ sender:
+ type: string
+ description: >-
+ sender is the account address of private key to send coins to fee
+ collector account.
+ invariant_module_name:
+ type: string
+ description: name of the invariant module.
+ invariant_route:
+ type: string
+ description: invariant_route is the msg's invariant route.
+ description: MsgVerifyInvariant represents a message to verify a particular invariance.
+ cosmos.crisis.v1beta1.MsgVerifyInvariantResponse:
+ type: object
+ description: MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type.
+ cosmos.distribution.v1beta1.MsgCommunityPoolSpend:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to x/gov
+ unless overwritten).
+ recipient:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- methods only use the fully qualified type name after the
- last '/'
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: >-
+ MsgCommunityPoolSpend defines a message for sending tokens from the
+ community
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ pool to another account. This message is typically executed via a
+ governance
- name "y.z".
+ proposal with the governance module being the executing authority.
+ Since: cosmos-sdk 0.47
+ cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse:
+ type: object
+ description: |-
+ MsgCommunityPoolSpendResponse defines the response to executing a
+ MsgCommunityPoolSpend message.
- JSON
+ Since: cosmos-sdk 0.47
+ cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool:
+ type: object
+ properties:
+ depositor:
+ type: string
+ validator_address:
+ type: string
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- ====
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: |-
+ DepositValidatorRewardsPool defines the request structure to provide
+ additional rewards to delegators from a specific validator.
- The JSON representation of an `Any` value uses the regular
+ Since: cosmos-sdk 0.50
+ cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse:
+ type: object
+ description: |-
+ MsgDepositValidatorRewardsPoolResponse defines the response to executing a
+ MsgDepositValidatorRewardsPool message.
- representation of the deserialized, embedded message, with
- an
+ Since: cosmos-sdk 0.50
+ cosmos.distribution.v1beta1.MsgFundCommunityPool:
+ type: object
+ properties:
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- additional field `@type` which contains the type URL.
- Example:
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ depositor:
+ type: string
+ description: |-
+ MsgFundCommunityPool allows an account to directly
+ fund the community pool.
+ cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse:
+ type: object
+ description: >-
+ MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response
+ type.
+ cosmos.distribution.v1beta1.MsgSetWithdrawAddress:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ withdraw_address:
+ type: string
+ description: |-
+ MsgSetWithdrawAddress sets the withdraw address for
+ a delegator (or validator self-delegation).
+ cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse:
+ type: object
+ description: |-
+ MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response
+ type.
+ cosmos.distribution.v1beta1.MsgUpdateParams:
+ type: object
+ properties:
+ authority:
+ type: string
+ description: >-
+ authority is the address that controls the module (defaults to x/gov
+ unless overwritten).
+ params:
+ description: |-
+ params defines the x/distribution parameters to update.
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
+ NOTE: All parameters must be supplied.
+ type: object
+ properties:
+ community_tax:
+ type: string
+ base_proposer_reward:
+ type: string
+ description: >-
+ Deprecated: The base_proposer_reward field is deprecated and is no
+ longer used
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ in the x/distribution module's reward mechanism.
+ bonus_proposer_reward:
+ type: string
+ description: >-
+ Deprecated: The bonus_proposer_reward field is deprecated and is
+ no longer used
- If the embedded message type is well-known and has a custom
- JSON
+ in the x/distribution module's reward mechanism.
+ withdraw_addr_enabled:
+ type: boolean
+ description: |-
+ MsgUpdateParams is the Msg/UpdateParams request type.
- representation, that representation will be embedded adding
- a field
+ Since: cosmos-sdk 0.47
+ cosmos.distribution.v1beta1.MsgUpdateParamsResponse:
+ type: object
+ description: |-
+ MsgUpdateParamsResponse defines the response structure for executing a
+ MsgUpdateParams message.
- `value` which holds the custom JSON in addition to the
- `@type`
+ Since: cosmos-sdk 0.47
+ cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward:
+ type: object
+ properties:
+ delegator_address:
+ type: string
+ validator_address:
+ type: string
+ description: |-
+ MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
+ from a single validator.
+ cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse:
+ type: object
+ properties:
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- field. Example (for message [google.protobuf.Duration][]):
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ title: 'Since: cosmos-sdk 0.46'
+ description: |-
+ MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward
+ response type.
+ cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission:
+ type: object
+ properties:
+ validator_address:
+ type: string
+ description: >-
+ MsgWithdrawValidatorCommission withdraws the full commission to the
+ validator
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: delegator_addr
- description: delegator_addr defines the delegator address to query for.
- in: path
- required: true
- type: string
- - name: src_validator_addr
- description: src_validator_addr defines the validator address to redelegate from.
- in: query
- required: false
- type: string
- - name: dst_validator_addr
- description: dst_validator_addr defines the validator address to redelegate to.
- in: query
- required: false
- type: string
- - name: pagination.key
+ address.
+ cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse:
+ type: object
+ properties:
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
+ Coin defines a token with a denomination and an amount.
- It is less efficient than using key. Only one of offset or key
- should
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ title: 'Since: cosmos-sdk 0.46'
+ description: |-
+ MsgWithdrawValidatorCommissionResponse defines the
+ Msg/WithdrawValidatorCommission response type.
+ cosmos.distribution.v1beta1.Params:
+ type: object
+ properties:
+ community_tax:
+ type: string
+ base_proposer_reward:
+ type: string
+ description: >-
+ Deprecated: The base_proposer_reward field is deprecated and is no
+ longer used
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ in the x/distribution module's reward mechanism.
+ bonus_proposer_reward:
+ type: string
+ description: >-
+ Deprecated: The bonus_proposer_reward field is deprecated and is no
+ longer used
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ in the x/distribution module's reward mechanism.
+ withdraw_addr_enabled:
+ type: boolean
+ description: Params defines the set of params for the distribution module.
+ cosmos.evidence.v1beta1.MsgSubmitEvidence:
+ type: object
+ properties:
+ submitter:
+ type: string
+ description: submitter is the signer account address of evidence.
+ evidence:
+ description: evidence defines the evidence of misbehavior.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
- a count of the total number of items available for pagination in
- UIs.
+ protocol buffer message. This string must contain at least
- count_total is only respected when offset is used. It is ignored
- when key
+ one "/" character. The last segment of the URL's path must
+ represent
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ the fully qualified name of the type (as in
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations:
- get:
- summary: >-
- DelegatorUnbondingDelegations queries all unbonding delegations of a
- given
+ (e.g., leading "." is not accepted).
- delegator address.
- description: >-
- When called from another module, this query might consume a high amount
- of
- gas if the pagination field is incorrectly set.
- operationId: CosmosStakingV1Beta1DelegatorUnbondingDelegations
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- unbonding_responses:
- type: array
- items:
- type: object
- properties:
- delegator_address:
- type: string
- description: >-
- delegator_address is the bech32-encoded address of the
- delegator.
- validator_address:
- type: string
- description: >-
- validator_address is the bech32-encoded address of the
- validator.
- entries:
- type: array
- items:
- type: object
- properties:
- creation_height:
- type: string
- format: int64
- description: >-
- creation_height is the height which the unbonding
- took place.
- completion_time:
- type: string
- format: date-time
- description: >-
- completion_time is the unix time for unbonding
- completion.
- initial_balance:
- type: string
- description: >-
- initial_balance defines the tokens initially
- scheduled to receive at completion.
- balance:
- type: string
- description: >-
- balance defines the tokens to receive at
- completion.
- unbonding_id:
- type: string
- format: uint64
- title: >-
- Incrementing id that uniquely identifies this
- entry
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- Strictly positive if this entry's unbonding has
- been stopped by external modules
- description: >-
- UnbondingDelegationEntry defines an unbonding object
- with relevant metadata.
- description: |-
- entries are the unbonding delegation entries.
+ In practice, teams usually precompile into the binary all types
+ that they
- unbonding delegation entries
- description: >-
- UnbondingDelegation stores all of a single delegator's
- unbonding bonds
+ expect it to use in the context of Any. However, for URLs which
+ use the
- for a single validator in an time-ordered list.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
- was set, its value is undefined otherwise
- description: >-
- QueryUnbondingDelegatorDelegationsResponse is response type for
- the
+ server that maps type URLs to message definitions as follows:
- Query/UnbondingDelegatorDelegations RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
- protocol buffer message. This string must contain at
- least
+ * If no scheme is provided, `https` is assumed.
- one "/" character. The last segment of the URL's path
- must represent
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- the fully qualified name of the type (as in
+ Note: this functionality is not currently available in the
+ official
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
+ protobuf release, and it is not used for type URLs beginning with
- (e.g., leading "." is not accepted).
+ type.googleapis.com.
- In practice, teams usually precompile into the binary
- all types that they
+ Schemes other than `http`, `https` (or the empty scheme) might be
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: |-
+ MsgSubmitEvidence represents a message that supports submitting arbitrary
+ Evidence of misbehavior such as equivocation or counterfactual signing.
+ cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse:
+ type: object
+ properties:
+ hash:
+ type: string
+ format: byte
+ description: hash defines the hash of the evidence.
+ description: MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type.
+ cosmos.feegrant.v1beta1.MsgGrantAllowance:
+ type: object
+ properties:
+ granter:
+ type: string
+ description: >-
+ granter is the address of the user granting an allowance of their
+ funds.
+ grantee:
+ type: string
+ description: >-
+ grantee is the address of the user being granted an allowance of
+ another user's funds.
+ allowance:
+ description: allowance can be any of basic, periodic, allowed fee allowance.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
- server that maps type URLs to message definitions as
- follows:
+ protocol buffer message. This string must contain at least
+ one "/" character. The last segment of the URL's path must
+ represent
- * If no scheme is provided, `https` is assumed.
+ the fully qualified name of the type (as in
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- Note: this functionality is not currently available in
- the official
+ (e.g., leading "." is not accepted).
- protobuf release, and it is not used for type URLs
- beginning with
- type.googleapis.com.
+ In practice, teams usually precompile into the binary all types
+ that they
+ expect it to use in the context of Any. However, for URLs which
+ use the
- Schemes other than `http`, `https` (or the empty scheme)
- might be
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
+ server that maps type URLs to message definitions as follows:
- URL that describes the type of the serialized message.
+ * If no scheme is provided, `https` is assumed.
- Protobuf library provides support to pack/unpack Any values
- in the form
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- of utility functions or additional generated methods of the
- Any type.
+ Note: this functionality is not currently available in the
+ official
+ protobuf release, and it is not used for type URLs beginning with
- Example 1: Pack and unpack a message in C++.
+ type.googleapis.com.
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
- Example 2: Pack and unpack a message in Java.
+ Schemes other than `http`, `https` (or the empty scheme) might be
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: |-
+ MsgGrantAllowance adds permission for Grantee to spend up to Allowance
+ of fees from the account of Granter.
+ cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse:
+ type: object
+ description: >-
+ MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response
+ type.
+ cosmos.feegrant.v1beta1.MsgPruneAllowances:
+ type: object
+ properties:
+ pruner:
+ type: string
+ description: pruner is the address of the user pruning expired allowances.
+ description: |-
+ MsgPruneAllowances prunes expired fee allowances.
- Example 3: Pack and unpack a message in Python.
+ Since cosmos-sdk 0.50
+ cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse:
+ type: object
+ description: >-
+ MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse
+ response type.
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
- Example 4: Pack and unpack a message in Go
+ Since cosmos-sdk 0.50
+ cosmos.feegrant.v1beta1.MsgRevokeAllowance:
+ type: object
+ properties:
+ granter:
+ type: string
+ description: >-
+ granter is the address of the user granting an allowance of their
+ funds.
+ grantee:
+ type: string
+ description: >-
+ grantee is the address of the user being granted an allowance of
+ another user's funds.
+ description: MsgRevokeAllowance removes any existing Allowance from Granter to Grantee.
+ cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse:
+ type: object
+ description: >-
+ MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse
+ response type.
+ cosmos.gov.v1.MsgCancelProposal:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ proposer:
+ type: string
+ description: proposer is the account address of the proposer.
+ description: |-
+ MsgCancelProposal is the Msg/CancelProposal request type.
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
+ Since: cosmos-sdk 0.50
+ cosmos.gov.v1.MsgCancelProposalResponse:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ canceled_time:
+ type: string
+ format: date-time
+ description: canceled_time is the time when proposal is canceled.
+ canceled_height:
+ type: string
+ format: uint64
+ description: >-
+ canceled_height defines the block height at which the proposal is
+ canceled.
+ description: |-
+ MsgCancelProposalResponse defines the response structure for executing a
+ MsgCancelProposal message.
- The pack methods provided by protobuf library will by
- default use
+ Since: cosmos-sdk 0.50
+ cosmos.gov.v1.MsgDeposit:
+ type: object
+ properties:
+ proposal_id:
+ type: string
+ format: uint64
+ description: proposal_id defines the unique id of the proposal.
+ depositor:
+ type: string
+ description: depositor defines the deposit addresses from the proposals.
+ amount:
+ type: array
+ items:
+ type: object
+ properties:
+ denom:
+ type: string
+ amount:
+ type: string
+ description: |-
+ Coin defines a token with a denomination and an amount.
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
+ NOTE: The amount field is an Int which implements the custom method
+ signatures required by gogoproto.
+ description: amount to be deposited by depositor.
+ description: MsgDeposit defines a message to submit a deposit to an existing proposal.
+ cosmos.gov.v1.MsgDepositResponse:
+ type: object
+ description: MsgDepositResponse defines the Msg/Deposit response type.
+ cosmos.gov.v1.MsgExecLegacyContent:
+ type: object
+ properties:
+ content:
+ description: content is the proposal's content.
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
- methods only use the fully qualified type name after the
- last '/'
+ protocol buffer message. This string must contain at least
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
+ one "/" character. The last segment of the URL's path must
+ represent
- name "y.z".
+ the fully qualified name of the type (as in
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
+ (e.g., leading "." is not accepted).
- JSON
- ====
+ In practice, teams usually precompile into the binary all types
+ that they
- The JSON representation of an `Any` value uses the regular
+ expect it to use in the context of Any. However, for URLs which
+ use the
- representation of the deserialized, embedded message, with
- an
+ scheme `http`, `https`, or no scheme, one can optionally set up a
+ type
- additional field `@type` which contains the type URL.
- Example:
+ server that maps type URLs to message definitions as follows:
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
+ * If no scheme is provided, `https` is assumed.
- If the embedded message type is well-known and has a custom
- JSON
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- representation, that representation will be embedded adding
- a field
+ Note: this functionality is not currently available in the
+ official
- `value` which holds the custom JSON in addition to the
- `@type`
+ protobuf release, and it is not used for type URLs beginning with
- field. Example (for message [google.protobuf.Duration][]):
+ type.googleapis.com.
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: delegator_addr
- description: delegator_addr defines the delegator address to query for.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
- It is less efficient than using key. Only one of offset or key
- should
+ Schemes other than `http`, `https` (or the empty scheme) might be
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
+ used with implementation specific semantics.
+ additionalProperties: {}
+ authority:
+ type: string
+ description: authority must be the gov module address.
+ description: >-
+ MsgExecLegacyContent is used to wrap the legacy content field into a
+ message.
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
+ This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
+ cosmos.gov.v1.MsgExecLegacyContentResponse:
+ type: object
+ description: >-
+ MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response
+ type.
+ cosmos.gov.v1.MsgSubmitProposal:
+ type: object
+ properties:
+ messages:
+ type: array
+ items:
+ type: object
+ properties:
+ '@type':
+ type: string
+ description: >-
+ A URL/resource name that uniquely identifies the type of the
+ serialized
- a count of the total number of items available for pagination in
- UIs.
+ protocol buffer message. This string must contain at least
- count_total is only respected when offset is used. It is ignored
- when key
+ one "/" character. The last segment of the URL's path must
+ represent
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
+ the fully qualified name of the type (as in
+ `path/google.protobuf.Duration`). The name should be in a
+ canonical form
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/staking/v1beta1/delegators/{delegator_addr}/validators:
- get:
- summary: |-
- DelegatorValidators queries all validators info for given delegator
- address.
- description: >-
- When called from another module, this query might consume a high amount
- of
-
- gas if the pagination field is incorrectly set.
- operationId: CosmosStakingV1Beta1DelegatorValidators
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- validators:
- type: array
- items:
- type: object
- properties:
- operator_address:
- type: string
- description: >-
- operator_address defines the address of the validator's
- operator; bech encoded in JSON.
- consensus_pubkey:
- description: >-
- consensus_pubkey is the consensus public key of the
- validator, as a Protobuf Any.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
+ (e.g., leading "." is not accepted).
- protocol buffer message. This string must contain at
- least
- one "/" character. The last segment of the URL's
- path must represent
+ In practice, teams usually precompile into the binary all types
+ that they
- the fully qualified name of the type (as in
+ expect it to use in the context of Any. However, for URLs which
+ use the
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
+ scheme `http`, `https`, or no scheme, one can optionally set up
+ a type
- (e.g., leading "." is not accepted).
+ server that maps type URLs to message definitions as follows:
- In practice, teams usually precompile into the
- binary all types that they
+ * If no scheme is provided, `https` is assumed.
- expect it to use in the context of Any. However, for
- URLs which use the
+ * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ value in binary format, or produce an error.
+ * Applications are allowed to cache lookup results based on the
+ URL, or have them precompiled into a binary to avoid any
+ lookup. Therefore, binary compatibility needs to be preserved
+ on changes to types. (Use versioned type names to manage
+ breaking changes.)
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
+ Note: this functionality is not currently available in the
+ official
- server that maps type URLs to message definitions as
- follows:
+ protobuf release, and it is not used for type URLs beginning
+ with
+ type.googleapis.com.
- * If no scheme is provided, `https` is assumed.
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
+ Schemes other than `http`, `https` (or the empty scheme) might
+ be
- Note: this functionality is not currently available
- in the official
+ used with implementation specific semantics.
+ additionalProperties: {}
+ description: >-
+ `Any` contains an arbitrary serialized protocol buffer message along
+ with a
- protobuf release, and it is not used for type URLs
- beginning with
+ URL that describes the type of the serialized message.
- type.googleapis.com.
+ Protobuf library provides support to pack/unpack Any values in the
+ form
- Schemes other than `http`, `https` (or the empty
- scheme) might be
+ of utility functions or additional generated methods of the Any
+ type.
- used with implementation specific semantics.
- additionalProperties: {}
- jailed:
- type: boolean
- description: >-
- jailed defined whether the validator has been jailed
- from bonded status or not.
- status:
- description: >-
- status is the validator status
- (bonded/unbonding/unbonded).
- type: string
- enum:
- - BOND_STATUS_UNSPECIFIED
- - BOND_STATUS_UNBONDED
- - BOND_STATUS_UNBONDING
- - BOND_STATUS_BONDED
- default: BOND_STATUS_UNSPECIFIED
- tokens:
- type: string
- description: >-
- tokens define the delegated tokens (incl.
- self-delegation).
- delegator_shares:
- type: string
- description: >-
- delegator_shares defines total shares issued to a
- validator's delegators.
- description:
- description: >-
- description defines the description terms for the
- validator.
- type: object
- properties:
- moniker:
- type: string
- description: >-
- moniker defines a human-readable name for the
- validator.
- identity:
- type: string
- description: >-
- identity defines an optional identity signature (ex.
- UPort or Keybase).
- website:
- type: string
- description: website defines an optional website link.
- security_contact:
- type: string
- description: >-
- security_contact defines an optional email for
- security contact.
- details:
- type: string
- description: details define other optional details.
- unbonding_height:
- type: string
- format: int64
- description: >-
- unbonding_height defines, if unbonding, the height at
- which this validator has begun unbonding.
- unbonding_time:
- type: string
- format: date-time
- description: >-
- unbonding_time defines, if unbonding, the min time for
- the validator to complete unbonding.
- commission:
- description: commission defines the commission parameters.
- type: object
- properties:
- commission_rates:
- description: >-
- commission_rates defines the initial commission
- rates to be used for creating a validator.
- type: object
- properties:
- rate:
- type: string
- description: >-
- rate is the commission rate charged to
- delegators, as a fraction.
- max_rate:
- type: string
- description: >-
- max_rate defines the maximum commission rate
- which validator can ever charge, as a fraction.
- max_change_rate:
- type: string
- description: >-
- max_change_rate defines the maximum daily
- increase of the validator commission, as a
- fraction.
- update_time:
- type: string
- format: date-time
- description: >-
- update_time is the last time the commission rate was
- changed.
- min_self_delegation:
- type: string
- description: >-
- min_self_delegation is the validator's self declared
- minimum self delegation.
+ Example 1: Pack and unpack a message in C++.
- Since: cosmos-sdk 0.46
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- strictly positive if this validator's unbonding has been
- stopped by external modules
- unbonding_ids:
- type: array
- items:
- type: string
- format: uint64
- title: >-
- list of unbonding ids, each uniquely identifing an
- unbonding of this validator
- description: >-
- Validator defines a validator, together with the total
- amount of the
+ Foo foo = ...;
+ Any any;
+ any.PackFrom(foo);
+ ...
+ if (any.UnpackTo(&foo)) {
+ ...
+ }
- Validator's bond shares and their exchange rate to coins.
- Slashing results in
+ Example 2: Pack and unpack a message in Java.
- a decrease in the exchange rate, allowing correct
- calculation of future
+ Foo foo = ...;
+ Any any = Any.pack(foo);
+ ...
+ if (any.is(Foo.class)) {
+ foo = any.unpack(Foo.class);
+ }
+ // or ...
+ if (any.isSameTypeAs(Foo.getDefaultInstance())) {
+ foo = any.unpack(Foo.getDefaultInstance());
+ }
- undelegations without iterating over delegators. When coins
- are delegated to
+ Example 3: Pack and unpack a message in Python.
- this validator, the validator is credited with a delegation
- whose number of
+ foo = Foo(...)
+ any = Any()
+ any.Pack(foo)
+ ...
+ if any.Is(Foo.DESCRIPTOR):
+ any.Unpack(foo)
+ ...
- bond shares is based on the amount of coins delegated
- divided by the current
+ Example 4: Pack and unpack a message in Go
- exchange rate. Voting power can be calculated as total
- bonded shares
+ foo := &pb.Foo{...}
+ any, err := anypb.New(foo)
+ if err != nil {
+ ...
+ }
+ ...
+ foo := &pb.Foo{}
+ if err := any.UnmarshalTo(foo); err != nil {
+ ...
+ }
- multiplied by exchange rate.
- description: validators defines the validators' info of a delegator.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
+ The pack methods provided by protobuf library will by default use
- was set, its value is undefined otherwise
- description: |-
- QueryDelegatorValidatorsResponse is response type for the
- Query/DelegatorValidators RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
+ 'type.googleapis.com/full.type.name' as the type URL and the unpack
- protocol buffer message. This string must contain at
- least
+ methods only use the fully qualified type name after the last '/'
- one "/" character. The last segment of the URL's path
- must represent
+ in the type URL, for example "foo.bar.com/x/y.z" will yield type
- the fully qualified name of the type (as in
+ name "y.z".
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
- (e.g., leading "." is not accepted).
+ JSON
- In practice, teams usually precompile into the binary
- all types that they
+ The JSON representation of an `Any` value uses the regular
- expect it to use in the context of Any. However, for
- URLs which use the
+ representation of the deserialized, embedded message, with an
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: delegator_addr
- description: delegator_addr defines the delegator address to query for.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/{validator_addr}:
- get:
- summary: |-
- DelegatorValidator queries validator info for given delegator validator
- pair.
- operationId: CosmosStakingV1Beta1DelegatorValidator
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- validator:
- description: validator defines the validator info.
- type: object
- properties:
- operator_address:
- type: string
- description: >-
- operator_address defines the address of the validator's
- operator; bech encoded in JSON.
- consensus_pubkey:
- description: >-
- consensus_pubkey is the consensus public key of the
- validator, as a Protobuf Any.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- jailed:
- type: boolean
- description: >-
- jailed defined whether the validator has been jailed from
- bonded status or not.
- status:
- description: >-
- status is the validator status
- (bonded/unbonding/unbonded).
- type: string
- enum:
- - BOND_STATUS_UNSPECIFIED
- - BOND_STATUS_UNBONDED
- - BOND_STATUS_UNBONDING
- - BOND_STATUS_BONDED
- default: BOND_STATUS_UNSPECIFIED
- tokens:
- type: string
- description: >-
- tokens define the delegated tokens (incl.
- self-delegation).
- delegator_shares:
- type: string
- description: >-
- delegator_shares defines total shares issued to a
- validator's delegators.
- description:
- description: >-
- description defines the description terms for the
- validator.
- type: object
- properties:
- moniker:
- type: string
- description: >-
- moniker defines a human-readable name for the
- validator.
- identity:
- type: string
- description: >-
- identity defines an optional identity signature (ex.
- UPort or Keybase).
- website:
- type: string
- description: website defines an optional website link.
- security_contact:
- type: string
- description: >-
- security_contact defines an optional email for
- security contact.
- details:
- type: string
- description: details define other optional details.
- unbonding_height:
- type: string
- format: int64
- description: >-
- unbonding_height defines, if unbonding, the height at
- which this validator has begun unbonding.
- unbonding_time:
- type: string
- format: date-time
- description: >-
- unbonding_time defines, if unbonding, the min time for the
- validator to complete unbonding.
- commission:
- description: commission defines the commission parameters.
- type: object
- properties:
- commission_rates:
- description: >-
- commission_rates defines the initial commission rates
- to be used for creating a validator.
- type: object
- properties:
- rate:
- type: string
- description: >-
- rate is the commission rate charged to delegators,
- as a fraction.
- max_rate:
- type: string
- description: >-
- max_rate defines the maximum commission rate which
- validator can ever charge, as a fraction.
- max_change_rate:
- type: string
- description: >-
- max_change_rate defines the maximum daily increase
- of the validator commission, as a fraction.
- update_time:
- type: string
- format: date-time
- description: >-
- update_time is the last time the commission rate was
- changed.
- min_self_delegation:
- type: string
- description: >-
- min_self_delegation is the validator's self declared
- minimum self delegation.
-
-
- Since: cosmos-sdk 0.46
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- strictly positive if this validator's unbonding has been
- stopped by external modules
- unbonding_ids:
- type: array
- items:
- type: string
- format: uint64
- title: >-
- list of unbonding ids, each uniquely identifing an
- unbonding of this validator
- description: |-
- QueryDelegatorValidatorResponse response type for the
- Query/DelegatorValidator RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: delegator_addr
- description: delegator_addr defines the delegator address to query for.
- in: path
- required: true
- type: string
- - name: validator_addr
- description: validator_addr defines the validator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/staking/v1beta1/historical_info/{height}:
- get:
- summary: HistoricalInfo queries the historical info for given height.
- operationId: CosmosStakingV1Beta1HistoricalInfo
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- hist:
- description: hist defines the historical info at the given height.
- type: object
- properties:
- header:
- type: object
- properties:
- version:
- title: basic block info
- type: object
- properties:
- block:
- type: string
- format: uint64
- app:
- type: string
- format: uint64
- description: >-
- Consensus captures the consensus rules for processing
- a block in the blockchain,
-
- including all blockchain data structures and the rules
- of the application's
-
- state transition machine.
- chain_id:
- type: string
- height:
- type: string
- format: int64
- time:
- type: string
- format: date-time
- last_block_id:
- title: prev block info
- type: object
- properties:
- hash:
- type: string
- format: byte
- part_set_header:
- type: object
- properties:
- total:
- type: integer
- format: int64
- hash:
- type: string
- format: byte
- title: PartsetHeader
- last_commit_hash:
- type: string
- format: byte
- description: commit from validators from the last block
- title: hashes of block data
- data_hash:
- type: string
- format: byte
- title: transactions
- validators_hash:
- type: string
- format: byte
- description: validators for the current block
- title: hashes from the app output from the prev block
- next_validators_hash:
- type: string
- format: byte
- title: validators for the next block
- consensus_hash:
- type: string
- format: byte
- title: consensus params for current block
- app_hash:
- type: string
- format: byte
- title: state after txs from the previous block
- last_results_hash:
- type: string
- format: byte
- title: >-
- root hash of all results from the txs from the
- previous block
- evidence_hash:
- type: string
- format: byte
- description: evidence included in the block
- title: consensus info
- proposer_address:
- type: string
- format: byte
- title: original proposer of the block
- description: Header defines the structure of a block header.
- valset:
- type: array
- items:
- type: object
- properties:
- operator_address:
- type: string
- description: >-
- operator_address defines the address of the
- validator's operator; bech encoded in JSON.
- consensus_pubkey:
- description: >-
- consensus_pubkey is the consensus public key of the
- validator, as a Protobuf Any.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must
- contain at least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name
- should be in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However,
- for URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message
- definitions as follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup
- results based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently
- available in the official
-
- protobuf release, and it is not used for type
- URLs beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- jailed:
- type: boolean
- description: >-
- jailed defined whether the validator has been jailed
- from bonded status or not.
- status:
- description: >-
- status is the validator status
- (bonded/unbonding/unbonded).
- type: string
- enum:
- - BOND_STATUS_UNSPECIFIED
- - BOND_STATUS_UNBONDED
- - BOND_STATUS_UNBONDING
- - BOND_STATUS_BONDED
- default: BOND_STATUS_UNSPECIFIED
- tokens:
- type: string
- description: >-
- tokens define the delegated tokens (incl.
- self-delegation).
- delegator_shares:
- type: string
- description: >-
- delegator_shares defines total shares issued to a
- validator's delegators.
- description:
- description: >-
- description defines the description terms for the
- validator.
- type: object
- properties:
- moniker:
- type: string
- description: >-
- moniker defines a human-readable name for the
- validator.
- identity:
- type: string
- description: >-
- identity defines an optional identity signature
- (ex. UPort or Keybase).
- website:
- type: string
- description: website defines an optional website link.
- security_contact:
- type: string
- description: >-
- security_contact defines an optional email for
- security contact.
- details:
- type: string
- description: details define other optional details.
- unbonding_height:
- type: string
- format: int64
- description: >-
- unbonding_height defines, if unbonding, the height
- at which this validator has begun unbonding.
- unbonding_time:
- type: string
- format: date-time
- description: >-
- unbonding_time defines, if unbonding, the min time
- for the validator to complete unbonding.
- commission:
- description: commission defines the commission parameters.
- type: object
- properties:
- commission_rates:
- description: >-
- commission_rates defines the initial commission
- rates to be used for creating a validator.
- type: object
- properties:
- rate:
- type: string
- description: >-
- rate is the commission rate charged to
- delegators, as a fraction.
- max_rate:
- type: string
- description: >-
- max_rate defines the maximum commission rate
- which validator can ever charge, as a
- fraction.
- max_change_rate:
- type: string
- description: >-
- max_change_rate defines the maximum daily
- increase of the validator commission, as a
- fraction.
- update_time:
- type: string
- format: date-time
- description: >-
- update_time is the last time the commission rate
- was changed.
- min_self_delegation:
- type: string
- description: >-
- min_self_delegation is the validator's self declared
- minimum self delegation.
-
-
- Since: cosmos-sdk 0.46
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- strictly positive if this validator's unbonding has
- been stopped by external modules
- unbonding_ids:
- type: array
- items:
- type: string
- format: uint64
- title: >-
- list of unbonding ids, each uniquely identifing an
- unbonding of this validator
- description: >-
- Validator defines a validator, together with the total
- amount of the
-
- Validator's bond shares and their exchange rate to
- coins. Slashing results in
-
- a decrease in the exchange rate, allowing correct
- calculation of future
-
- undelegations without iterating over delegators. When
- coins are delegated to
-
- this validator, the validator is credited with a
- delegation whose number of
-
- bond shares is based on the amount of coins delegated
- divided by the current
-
- exchange rate. Voting power can be calculated as total
- bonded shares
-
- multiplied by exchange rate.
- description: >-
- QueryHistoricalInfoResponse is response type for the
- Query/HistoricalInfo RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: height
- description: height defines at which height to query the historical info.
- in: path
- required: true
- type: string
- format: int64
- tags:
- - Query
- /cosmos/staking/v1beta1/params:
- get:
- summary: Parameters queries the staking parameters.
- operationId: CosmosStakingV1Beta1Params
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params holds all the parameters of this module.
- type: object
- properties:
- unbonding_time:
- type: string
- description: unbonding_time is the time duration of unbonding.
- max_validators:
- type: integer
- format: int64
- description: max_validators is the maximum number of validators.
- max_entries:
- type: integer
- format: int64
- description: >-
- max_entries is the max entries for either unbonding
- delegation or redelegation (per pair/trio).
- historical_entries:
- type: integer
- format: int64
- description: >-
- historical_entries is the number of historical entries to
- persist.
- bond_denom:
- type: string
- description: bond_denom defines the bondable coin denomination.
- min_commission_rate:
- type: string
- title: >-
- min_commission_rate is the chain-wide minimum commission
- rate that a validator can charge their delegators
- description: >-
- QueryParamsResponse is response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /cosmos/staking/v1beta1/pool:
- get:
- summary: Pool queries the pool info.
- operationId: CosmosStakingV1Beta1Pool
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- pool:
- description: pool defines the pool info.
- type: object
- properties:
- not_bonded_tokens:
- type: string
- bonded_tokens:
- type: string
- description: QueryPoolResponse is response type for the Query/Pool RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /cosmos/staking/v1beta1/validators:
- get:
- summary: Validators queries all validators that match the given status.
- description: >-
- When called from another module, this query might consume a high amount
- of
-
- gas if the pagination field is incorrectly set.
- operationId: CosmosStakingV1Beta1Validators
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- validators:
- type: array
- items:
- type: object
- properties:
- operator_address:
- type: string
- description: >-
- operator_address defines the address of the validator's
- operator; bech encoded in JSON.
- consensus_pubkey:
- description: >-
- consensus_pubkey is the consensus public key of the
- validator, as a Protobuf Any.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- jailed:
- type: boolean
- description: >-
- jailed defined whether the validator has been jailed
- from bonded status or not.
- status:
- description: >-
- status is the validator status
- (bonded/unbonding/unbonded).
- type: string
- enum:
- - BOND_STATUS_UNSPECIFIED
- - BOND_STATUS_UNBONDED
- - BOND_STATUS_UNBONDING
- - BOND_STATUS_BONDED
- default: BOND_STATUS_UNSPECIFIED
- tokens:
- type: string
- description: >-
- tokens define the delegated tokens (incl.
- self-delegation).
- delegator_shares:
- type: string
- description: >-
- delegator_shares defines total shares issued to a
- validator's delegators.
- description:
- description: >-
- description defines the description terms for the
- validator.
- type: object
- properties:
- moniker:
- type: string
- description: >-
- moniker defines a human-readable name for the
- validator.
- identity:
- type: string
- description: >-
- identity defines an optional identity signature (ex.
- UPort or Keybase).
- website:
- type: string
- description: website defines an optional website link.
- security_contact:
- type: string
- description: >-
- security_contact defines an optional email for
- security contact.
- details:
- type: string
- description: details define other optional details.
- unbonding_height:
- type: string
- format: int64
- description: >-
- unbonding_height defines, if unbonding, the height at
- which this validator has begun unbonding.
- unbonding_time:
- type: string
- format: date-time
- description: >-
- unbonding_time defines, if unbonding, the min time for
- the validator to complete unbonding.
- commission:
- description: commission defines the commission parameters.
- type: object
- properties:
- commission_rates:
- description: >-
- commission_rates defines the initial commission
- rates to be used for creating a validator.
- type: object
- properties:
- rate:
- type: string
- description: >-
- rate is the commission rate charged to
- delegators, as a fraction.
- max_rate:
- type: string
- description: >-
- max_rate defines the maximum commission rate
- which validator can ever charge, as a fraction.
- max_change_rate:
- type: string
- description: >-
- max_change_rate defines the maximum daily
- increase of the validator commission, as a
- fraction.
- update_time:
- type: string
- format: date-time
- description: >-
- update_time is the last time the commission rate was
- changed.
- min_self_delegation:
- type: string
- description: >-
- min_self_delegation is the validator's self declared
- minimum self delegation.
-
-
- Since: cosmos-sdk 0.46
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- strictly positive if this validator's unbonding has been
- stopped by external modules
- unbonding_ids:
- type: array
- items:
- type: string
- format: uint64
- title: >-
- list of unbonding ids, each uniquely identifing an
- unbonding of this validator
- description: >-
- Validator defines a validator, together with the total
- amount of the
-
- Validator's bond shares and their exchange rate to coins.
- Slashing results in
-
- a decrease in the exchange rate, allowing correct
- calculation of future
-
- undelegations without iterating over delegators. When coins
- are delegated to
-
- this validator, the validator is credited with a delegation
- whose number of
-
- bond shares is based on the amount of coins delegated
- divided by the current
-
- exchange rate. Voting power can be calculated as total
- bonded shares
-
- multiplied by exchange rate.
- description: validators contains all the queried validators.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- title: >-
- QueryValidatorsResponse is response type for the Query/Validators
- RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: status
- description: status enables to query for validators matching a given status.
- in: query
- required: false
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/staking/v1beta1/validators/{validator_addr}:
- get:
- summary: Validator queries validator info for given validator address.
- operationId: CosmosStakingV1Beta1Validator
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- validator:
- description: validator defines the validator info.
- type: object
- properties:
- operator_address:
- type: string
- description: >-
- operator_address defines the address of the validator's
- operator; bech encoded in JSON.
- consensus_pubkey:
- description: >-
- consensus_pubkey is the consensus public key of the
- validator, as a Protobuf Any.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- jailed:
- type: boolean
- description: >-
- jailed defined whether the validator has been jailed from
- bonded status or not.
- status:
- description: >-
- status is the validator status
- (bonded/unbonding/unbonded).
- type: string
- enum:
- - BOND_STATUS_UNSPECIFIED
- - BOND_STATUS_UNBONDED
- - BOND_STATUS_UNBONDING
- - BOND_STATUS_BONDED
- default: BOND_STATUS_UNSPECIFIED
- tokens:
- type: string
- description: >-
- tokens define the delegated tokens (incl.
- self-delegation).
- delegator_shares:
- type: string
- description: >-
- delegator_shares defines total shares issued to a
- validator's delegators.
- description:
- description: >-
- description defines the description terms for the
- validator.
- type: object
- properties:
- moniker:
- type: string
- description: >-
- moniker defines a human-readable name for the
- validator.
- identity:
- type: string
- description: >-
- identity defines an optional identity signature (ex.
- UPort or Keybase).
- website:
- type: string
- description: website defines an optional website link.
- security_contact:
- type: string
- description: >-
- security_contact defines an optional email for
- security contact.
- details:
- type: string
- description: details define other optional details.
- unbonding_height:
- type: string
- format: int64
- description: >-
- unbonding_height defines, if unbonding, the height at
- which this validator has begun unbonding.
- unbonding_time:
- type: string
- format: date-time
- description: >-
- unbonding_time defines, if unbonding, the min time for the
- validator to complete unbonding.
- commission:
- description: commission defines the commission parameters.
- type: object
- properties:
- commission_rates:
- description: >-
- commission_rates defines the initial commission rates
- to be used for creating a validator.
- type: object
- properties:
- rate:
- type: string
- description: >-
- rate is the commission rate charged to delegators,
- as a fraction.
- max_rate:
- type: string
- description: >-
- max_rate defines the maximum commission rate which
- validator can ever charge, as a fraction.
- max_change_rate:
- type: string
- description: >-
- max_change_rate defines the maximum daily increase
- of the validator commission, as a fraction.
- update_time:
- type: string
- format: date-time
- description: >-
- update_time is the last time the commission rate was
- changed.
- min_self_delegation:
- type: string
- description: >-
- min_self_delegation is the validator's self declared
- minimum self delegation.
-
-
- Since: cosmos-sdk 0.46
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- strictly positive if this validator's unbonding has been
- stopped by external modules
- unbonding_ids:
- type: array
- items:
- type: string
- format: uint64
- title: >-
- list of unbonding ids, each uniquely identifing an
- unbonding of this validator
- title: >-
- QueryValidatorResponse is response type for the Query/Validator
- RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: validator_addr
- description: validator_addr defines the validator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/staking/v1beta1/validators/{validator_addr}/delegations:
- get:
- summary: ValidatorDelegations queries delegate info for given validator.
- description: >-
- When called from another module, this query might consume a high amount
- of
-
- gas if the pagination field is incorrectly set.
- operationId: CosmosStakingV1Beta1ValidatorDelegations
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- delegation_responses:
- type: array
- items:
- type: object
- properties:
- delegation:
- type: object
- properties:
- delegator_address:
- type: string
- description: >-
- delegator_address is the bech32-encoded address of
- the delegator.
- validator_address:
- type: string
- description: >-
- validator_address is the bech32-encoded address of
- the validator.
- shares:
- type: string
- description: shares define the delegation shares received.
- description: >-
- Delegation represents the bond with tokens held by an
- account. It is
-
- owned by one delegator, and is associated with the
- voting power of one
-
- validator.
- balance:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- description: >-
- DelegationResponse is equivalent to Delegation except that
- it contains a
-
- balance in addition to shares which is more suitable for
- client responses.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- title: |-
- QueryValidatorDelegationsResponse is response type for the
- Query/ValidatorDelegations RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: validator_addr
- description: validator_addr defines the validator address to query for.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}:
- get:
- summary: Delegation queries delegate info for given validator delegator pair.
- operationId: CosmosStakingV1Beta1Delegation
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- delegation_response:
- description: >-
- delegation_responses defines the delegation info of a
- delegation.
- type: object
- properties:
- delegation:
- type: object
- properties:
- delegator_address:
- type: string
- description: >-
- delegator_address is the bech32-encoded address of the
- delegator.
- validator_address:
- type: string
- description: >-
- validator_address is the bech32-encoded address of the
- validator.
- shares:
- type: string
- description: shares define the delegation shares received.
- description: >-
- Delegation represents the bond with tokens held by an
- account. It is
-
- owned by one delegator, and is associated with the voting
- power of one
-
- validator.
- balance:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- description: >-
- QueryDelegationResponse is response type for the Query/Delegation
- RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: validator_addr
- description: validator_addr defines the validator address to query for.
- in: path
- required: true
- type: string
- - name: delegator_addr
- description: delegator_addr defines the delegator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation:
- get:
- summary: |-
- UnbondingDelegation queries unbonding info for given validator delegator
- pair.
- operationId: CosmosStakingV1Beta1UnbondingDelegation
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- unbond:
- description: unbond defines the unbonding information of a delegation.
- type: object
- properties:
- delegator_address:
- type: string
- description: >-
- delegator_address is the bech32-encoded address of the
- delegator.
- validator_address:
- type: string
- description: >-
- validator_address is the bech32-encoded address of the
- validator.
- entries:
- type: array
- items:
- type: object
- properties:
- creation_height:
- type: string
- format: int64
- description: >-
- creation_height is the height which the unbonding
- took place.
- completion_time:
- type: string
- format: date-time
- description: >-
- completion_time is the unix time for unbonding
- completion.
- initial_balance:
- type: string
- description: >-
- initial_balance defines the tokens initially
- scheduled to receive at completion.
- balance:
- type: string
- description: balance defines the tokens to receive at completion.
- unbonding_id:
- type: string
- format: uint64
- title: Incrementing id that uniquely identifies this entry
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- Strictly positive if this entry's unbonding has been
- stopped by external modules
- description: >-
- UnbondingDelegationEntry defines an unbonding object
- with relevant metadata.
- description: |-
- entries are the unbonding delegation entries.
-
- unbonding delegation entries
- description: >-
- QueryDelegationResponse is response type for the
- Query/UnbondingDelegation
-
- RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: validator_addr
- description: validator_addr defines the validator address to query for.
- in: path
- required: true
- type: string
- - name: delegator_addr
- description: delegator_addr defines the delegator address to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations:
- get:
- summary: >-
- ValidatorUnbondingDelegations queries unbonding delegations of a
- validator.
- description: >-
- When called from another module, this query might consume a high amount
- of
-
- gas if the pagination field is incorrectly set.
- operationId: CosmosStakingV1Beta1ValidatorUnbondingDelegations
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- unbonding_responses:
- type: array
- items:
- type: object
- properties:
- delegator_address:
- type: string
- description: >-
- delegator_address is the bech32-encoded address of the
- delegator.
- validator_address:
- type: string
- description: >-
- validator_address is the bech32-encoded address of the
- validator.
- entries:
- type: array
- items:
- type: object
- properties:
- creation_height:
- type: string
- format: int64
- description: >-
- creation_height is the height which the unbonding
- took place.
- completion_time:
- type: string
- format: date-time
- description: >-
- completion_time is the unix time for unbonding
- completion.
- initial_balance:
- type: string
- description: >-
- initial_balance defines the tokens initially
- scheduled to receive at completion.
- balance:
- type: string
- description: >-
- balance defines the tokens to receive at
- completion.
- unbonding_id:
- type: string
- format: uint64
- title: >-
- Incrementing id that uniquely identifies this
- entry
- unbonding_on_hold_ref_count:
- type: string
- format: int64
- title: >-
- Strictly positive if this entry's unbonding has
- been stopped by external modules
- description: >-
- UnbondingDelegationEntry defines an unbonding object
- with relevant metadata.
- description: |-
- entries are the unbonding delegation entries.
-
- unbonding delegation entries
- description: >-
- UnbondingDelegation stores all of a single delegator's
- unbonding bonds
-
- for a single validator in an time-ordered list.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryValidatorUnbondingDelegationsResponse is response type for
- the
-
- Query/ValidatorUnbondingDelegations RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: validator_addr
- description: validator_addr defines the validator address to query for.
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /cosmos/tx/v1beta1/decode:
- post:
- summary: TxDecode decodes the transaction.
- description: 'Since: cosmos-sdk 0.47'
- operationId: CosmosTxV1Beta1TxDecode
- responses:
- '200':
- description: A successful response.
- schema:
- $ref: '#/definitions/cosmos.tx.v1beta1.TxDecodeResponse'
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: body
- description: |-
- TxDecodeRequest is the request type for the Service.TxDecode
- RPC method.
-
- Since: cosmos-sdk 0.47
- in: body
- required: true
- schema:
- type: object
- properties:
- tx_bytes:
- type: string
- format: byte
- description: tx_bytes is the raw transaction.
- description: |-
- TxDecodeRequest is the request type for the Service.TxDecode
- RPC method.
-
- Since: cosmos-sdk 0.47
- tags:
- - Service
- /cosmos/tx/v1beta1/decode/amino:
- post:
- summary: TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON.
- description: 'Since: cosmos-sdk 0.47'
- operationId: CosmosTxV1Beta1TxDecodeAmino
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- amino_json:
- type: string
- description: >-
- TxDecodeAminoResponse is the response type for the
- Service.TxDecodeAmino
-
- RPC method.
-
-
- Since: cosmos-sdk 0.47
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: body
- description: >-
- TxDecodeAminoRequest is the request type for the
- Service.TxDecodeAmino
-
- RPC method.
-
-
- Since: cosmos-sdk 0.47
- in: body
- required: true
- schema:
- type: object
- properties:
- amino_binary:
- type: string
- format: byte
- description: >-
- TxDecodeAminoRequest is the request type for the
- Service.TxDecodeAmino
-
- RPC method.
-
-
- Since: cosmos-sdk 0.47
- tags:
- - Service
- /cosmos/tx/v1beta1/encode:
- post:
- summary: TxEncode encodes the transaction.
- description: 'Since: cosmos-sdk 0.47'
- operationId: CosmosTxV1Beta1TxEncode
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- tx_bytes:
- type: string
- format: byte
- description: tx_bytes is the encoded transaction bytes.
- description: |-
- TxEncodeResponse is the response type for the
- Service.TxEncode method.
-
- Since: cosmos-sdk 0.47
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: body
- description: |-
- TxEncodeRequest is the request type for the Service.TxEncode
- RPC method.
-
- Since: cosmos-sdk 0.47
- in: body
- required: true
- schema:
- $ref: '#/definitions/cosmos.tx.v1beta1.TxEncodeRequest'
- tags:
- - Service
- /cosmos/tx/v1beta1/encode/amino:
- post:
- summary: TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes.
- description: 'Since: cosmos-sdk 0.47'
- operationId: CosmosTxV1Beta1TxEncodeAmino
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- amino_binary:
- type: string
- format: byte
- description: >-
- TxEncodeAminoResponse is the response type for the
- Service.TxEncodeAmino
-
- RPC method.
-
-
- Since: cosmos-sdk 0.47
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: body
- description: >-
- TxEncodeAminoRequest is the request type for the
- Service.TxEncodeAmino
-
- RPC method.
-
-
- Since: cosmos-sdk 0.47
- in: body
- required: true
- schema:
- type: object
- properties:
- amino_json:
- type: string
- description: >-
- TxEncodeAminoRequest is the request type for the
- Service.TxEncodeAmino
-
- RPC method.
-
-
- Since: cosmos-sdk 0.47
- tags:
- - Service
- /cosmos/tx/v1beta1/simulate:
- post:
- summary: Simulate simulates executing a transaction for estimating gas usage.
- operationId: CosmosTxV1Beta1Simulate
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- gas_info:
- description: gas_info is the information about gas used in the simulation.
- type: object
- properties:
- gas_wanted:
- type: string
- format: uint64
- description: >-
- GasWanted is the maximum units of work we allow this tx to
- perform.
- gas_used:
- type: string
- format: uint64
- description: GasUsed is the amount of gas actually consumed.
- result:
- description: result is the result of the simulation.
- type: object
- properties:
- data:
- type: string
- format: byte
- description: >-
- Data is any data returned from message or handler
- execution. It MUST be
-
- length prefixed in order to separate data from multiple
- message executions.
-
- Deprecated. This field is still populated, but prefer
- msg_response instead
-
- because it also contains the Msg response typeURL.
- log:
- type: string
- description: >-
- Log contains the log information from message or handler
- execution.
- events:
- type: array
- items:
- type: object
- properties:
- type:
- type: string
- attributes:
- type: array
- items:
- type: object
- properties:
- key:
- type: string
- value:
- type: string
- index:
- type: boolean
- title: nondeterministic
- description: >-
- EventAttribute is a single key-value pair,
- associated with an event.
- description: >-
- Event allows application developers to attach additional
- information to
-
- ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx
- and ResponseDeliverTx.
-
- Later, transactions may be queried using these events.
- description: >-
- Events contains a slice of Event objects that were emitted
- during message
-
- or handler execution.
- msg_responses:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message
- [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- msg_responses contains the Msg handler responses type
- packed in Anys.
-
-
- Since: cosmos-sdk 0.46
- description: |-
- SimulateResponse is the response type for the
- Service.SimulateRPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: body
- description: |-
- SimulateRequest is the request type for the Service.Simulate
- RPC method.
- in: body
- required: true
- schema:
- $ref: '#/definitions/cosmos.tx.v1beta1.SimulateRequest'
- tags:
- - Service
- /cosmos/tx/v1beta1/txs:
- get:
- summary: GetTxsEvent fetches txs by event.
- operationId: CosmosTxV1Beta1GetTxsEvent
- responses:
- '200':
- description: A successful response.
- schema:
- $ref: '#/definitions/cosmos.tx.v1beta1.GetTxsEventResponse'
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: events
- description: events is the list of transaction event type.
- in: query
- required: false
- type: array
- items:
- type: string
- collectionFormat: multi
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- - name: order_by
- description: |2-
- - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case.
- - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order
- - ORDER_BY_DESC: ORDER_BY_DESC defines descending order
- in: query
- required: false
- type: string
- enum:
- - ORDER_BY_UNSPECIFIED
- - ORDER_BY_ASC
- - ORDER_BY_DESC
- default: ORDER_BY_UNSPECIFIED
- - name: page
- description: >-
- page is the page number to query, starts at 1. If not provided, will
- default to first page.
- in: query
- required: false
- type: string
- format: uint64
- - name: limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- tags:
- - Service
- post:
- summary: BroadcastTx broadcast transaction.
- operationId: CosmosTxV1Beta1BroadcastTx
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- tx_response:
- description: tx_response is the queried TxResponses.
- type: object
- properties:
- height:
- type: string
- format: int64
- title: The block height
- txhash:
- type: string
- description: The transaction hash.
- codespace:
- type: string
- title: Namespace for the Code
- code:
- type: integer
- format: int64
- description: Response code.
- data:
- type: string
- description: Result bytes, if any.
- raw_log:
- type: string
- description: >-
- The output of the application's logger (raw string). May
- be
-
- non-deterministic.
- logs:
- type: array
- items:
- type: object
- properties:
- msg_index:
- type: integer
- format: int64
- log:
- type: string
- events:
- type: array
- items:
- type: object
- properties:
- type:
- type: string
- attributes:
- type: array
- items:
- type: object
- properties:
- key:
- type: string
- value:
- type: string
- description: >-
- Attribute defines an attribute wrapper where
- the key and value are
-
- strings instead of raw bytes.
- description: >-
- StringEvent defines en Event object wrapper where
- all the attributes
-
- contain key/value pairs that are strings instead
- of raw bytes.
- description: >-
- Events contains a slice of Event objects that were
- emitted during some
-
- execution.
- description: >-
- ABCIMessageLog defines a structure containing an indexed
- tx ABCI message log.
- description: >-
- The output of the application's logger (typed). May be
- non-deterministic.
- info:
- type: string
- description: Additional information. May be non-deterministic.
- gas_wanted:
- type: string
- format: int64
- description: Amount of gas requested for transaction.
- gas_used:
- type: string
- format: int64
- description: Amount of gas consumed by transaction.
- tx:
- description: The request transaction bytes.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- timestamp:
- type: string
- description: >-
- Time of the previous block. For heights > 1, it's the
- weighted median of
-
- the timestamps of the valid votes in the block.LastCommit.
- For height == 1,
-
- it's genesis time.
- events:
- type: array
- items:
- type: object
- properties:
- type:
- type: string
- attributes:
- type: array
- items:
- type: object
- properties:
- key:
- type: string
- value:
- type: string
- index:
- type: boolean
- title: nondeterministic
- description: >-
- EventAttribute is a single key-value pair,
- associated with an event.
- description: >-
- Event allows application developers to attach additional
- information to
-
- ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx
- and ResponseDeliverTx.
-
- Later, transactions may be queried using these events.
- description: >-
- Events defines all the events emitted by processing a
- transaction. Note,
-
- these events include those emitted by processing all the
- messages and those
-
- emitted from the ante. Whereas Logs contains the events,
- with
-
- additional metadata, emitted only by processing the
- messages.
-
-
- Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
- description: |-
- BroadcastTxResponse is the response type for the
- Service.BroadcastTx method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: body
- description: >-
- BroadcastTxRequest is the request type for the
- Service.BroadcastTxRequest
-
- RPC method.
- in: body
- required: true
- schema:
- type: object
- properties:
- tx_bytes:
- type: string
- format: byte
- description: tx_bytes is the raw transaction.
- mode:
- type: string
- enum:
- - BROADCAST_MODE_UNSPECIFIED
- - BROADCAST_MODE_BLOCK
- - BROADCAST_MODE_SYNC
- - BROADCAST_MODE_ASYNC
- default: BROADCAST_MODE_UNSPECIFIED
- description: >-
- BroadcastMode specifies the broadcast mode for the
- TxService.Broadcast RPC method.
-
- - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering
- - BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead,
- BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x
- onwards.
- - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
- a CheckTx execution response only.
- - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
- immediately.
- description: >-
- BroadcastTxRequest is the request type for the
- Service.BroadcastTxRequest
-
- RPC method.
- tags:
- - Service
- /cosmos/tx/v1beta1/txs/block/{height}:
- get:
- summary: GetBlockWithTxs fetches a block with decoded txs.
- description: 'Since: cosmos-sdk 0.45.2'
- operationId: CosmosTxV1Beta1GetBlockWithTxs
- responses:
- '200':
- description: A successful response.
- schema:
- $ref: '#/definitions/cosmos.tx.v1beta1.GetBlockWithTxsResponse'
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: height
- description: height is the height of the block to query.
- in: path
- required: true
- type: string
- format: int64
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Service
- /cosmos/tx/v1beta1/txs/{hash}:
- get:
- summary: GetTx fetches a tx by hash.
- operationId: CosmosTxV1Beta1GetTx
- responses:
- '200':
- description: A successful response.
- schema:
- $ref: '#/definitions/cosmos.tx.v1beta1.GetTxResponse'
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: hash
- description: hash is the tx hash to query, encoded as a hex string.
- in: path
- required: true
- type: string
- tags:
- - Service
- /cosmos/upgrade/v1beta1/applied_plan/{name}:
- get:
- summary: AppliedPlan queries a previously applied upgrade plan by its name.
- operationId: CosmosUpgradeV1Beta1AppliedPlan
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- height:
- type: string
- format: int64
- description: height is the block height at which the plan was applied.
- description: >-
- QueryAppliedPlanResponse is the response type for the
- Query/AppliedPlan RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: name
- description: name is the name of the applied plan to query for.
- in: path
- required: true
- type: string
- tags:
- - Query
- /cosmos/upgrade/v1beta1/authority:
- get:
- summary: Returns the account with authority to conduct upgrades
- description: 'Since: cosmos-sdk 0.46'
- operationId: CosmosUpgradeV1Beta1Authority
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- address:
- type: string
- description: 'Since: cosmos-sdk 0.46'
- title: QueryAuthorityResponse is the response type for Query/Authority
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /cosmos/upgrade/v1beta1/current_plan:
- get:
- summary: CurrentPlan queries the current upgrade plan.
- operationId: CosmosUpgradeV1Beta1CurrentPlan
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- plan:
- description: plan is the current upgrade plan.
- type: object
- properties:
- name:
- type: string
- description: >-
- Sets the name for the upgrade. This name will be used by
- the upgraded
-
- version of the software to apply any special "on-upgrade"
- commands during
-
- the first BeginBlock method after the upgrade is applied.
- It is also used
-
- to detect whether a software version can handle a given
- upgrade. If no
-
- upgrade handler with this name has been set in the
- software, it will be
-
- assumed that the software is out-of-date when the upgrade
- Time or Height is
-
- reached and the software will exit.
- time:
- type: string
- format: date-time
- description: >-
- Deprecated: Time based upgrades have been deprecated. Time
- based upgrade logic
-
- has been removed from the SDK.
-
- If this field is not empty, an error will be thrown.
- height:
- type: string
- format: int64
- description: The height at which the upgrade must be performed.
- info:
- type: string
- title: >-
- Any application specific upgrade info to be included
- on-chain
-
- such as a git commit that validators could automatically
- upgrade to
- upgraded_client_state:
- description: >-
- Deprecated: UpgradedClientState field has been deprecated.
- IBC upgrade logic has been
-
- moved to the IBC module in the sub module 02-client.
-
- If this field is not empty, an error will be thrown.
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- QueryCurrentPlanResponse is the response type for the
- Query/CurrentPlan RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /cosmos/upgrade/v1beta1/module_versions:
- get:
- summary: ModuleVersions queries the list of module versions from state.
- description: 'Since: cosmos-sdk 0.43'
- operationId: CosmosUpgradeV1Beta1ModuleVersions
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- module_versions:
- type: array
- items:
- type: object
- properties:
- name:
- type: string
- title: name of the app module
- version:
- type: string
- format: uint64
- title: consensus version of the app module
- description: |-
- ModuleVersion specifies a module and its consensus version.
-
- Since: cosmos-sdk 0.43
- description: >-
- module_versions is a list of module names with their consensus
- versions.
- description: >-
- QueryModuleVersionsResponse is the response type for the
- Query/ModuleVersions
-
- RPC method.
-
-
- Since: cosmos-sdk 0.43
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: module_name
- description: |-
- module_name is a field to query a specific module
- consensus version from state. Leaving this empty will
- fetch the full list of module versions from state
- in: query
- required: false
- type: string
- tags:
- - Query
- /cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}:
- get:
- summary: >-
- UpgradedConsensusState queries the consensus state that will serve
-
- as a trusted kernel for the next version of this chain. It will only be
-
- stored at the last height of this chain.
-
- UpgradedConsensusState RPC not supported with legacy querier
-
- This rpc is deprecated now that IBC has its own replacement
-
- (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54)
- operationId: CosmosUpgradeV1Beta1UpgradedConsensusState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- upgraded_consensus_state:
- type: string
- format: byte
- title: 'Since: cosmos-sdk 0.43'
- description: >-
- QueryUpgradedConsensusStateResponse is the response type for the
- Query/UpgradedConsensusState
-
- RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: last_height
- description: |-
- last height of the current chain must be sent in request
- as this is the height under which next consensus state is stored
- in: path
- required: true
- type: string
- format: int64
- tags:
- - Query
- /ibc/apps/interchain_accounts/controller/v1/owners/{owner}/connections/{connection_id}:
- get:
- summary: >-
- InterchainAccount returns the interchain account address for a given
- owner address on a given connection
- operationId: IbcApplicationsInterchainAccountsControllerV1InterchainAccount
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- address:
- type: string
- description: >-
- QueryInterchainAccountResponse the response type for the
- Query/InterchainAccount RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: owner
- in: path
- required: true
- type: string
- - name: connection_id
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/apps/interchain_accounts/controller/v1/params:
- get:
- summary: Params queries all parameters of the ICA controller submodule.
- operationId: IbcApplicationsInterchainAccountsControllerV1Params
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params defines the parameters of the module.
- type: object
- properties:
- controller_enabled:
- type: boolean
- description: >-
- controller_enabled enables or disables the controller
- submodule.
- description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /ibc/apps/interchain_accounts/host/v1/params:
- get:
- summary: Params queries all parameters of the ICA host submodule.
- operationId: IbcApplicationsInterchainAccountsHostV1Params
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params defines the parameters of the module.
- type: object
- properties:
- host_enabled:
- type: boolean
- description: host_enabled enables or disables the host submodule.
- allow_messages:
- type: array
- items:
- type: string
- description: >-
- allow_messages defines a list of sdk message typeURLs
- allowed to be executed on a host chain.
- description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Query
- /ibc/apps/transfer/v1/channels/{channel_id}/ports/{port_id}/escrow_address:
- get:
- summary: >-
- EscrowAddress returns the escrow address for a particular port and
- channel id.
- operationId: IbcApplicationsTransferV1EscrowAddress
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- escrow_address:
- type: string
- title: the escrow account address
- description: >-
- QueryEscrowAddressResponse is the response type of the
- EscrowAddress RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: unique channel identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: unique port identifier
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/apps/transfer/v1/denom_hashes/{trace}:
- get:
- summary: DenomHash queries a denomination hash information.
- operationId: IbcApplicationsTransferV1DenomHash
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- hash:
- type: string
- description: hash (in hex format) of the denomination trace information.
- description: >-
- QueryDenomHashResponse is the response type for the
- Query/DenomHash RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: trace
- description: The denomination trace ([port_id]/[channel_id])+/[denom]
- in: path
- required: true
- type: string
- pattern: .+
- tags:
- - Query
- /ibc/apps/transfer/v1/denom_traces:
- get:
- summary: DenomTraces queries all denomination traces.
- operationId: IbcApplicationsTransferV1DenomTraces
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- denom_traces:
- type: array
- items:
- type: object
- properties:
- path:
- type: string
- description: >-
- path defines the chain of port/channel identifiers used
- for tracing the
-
- source of the fungible token.
- base_denom:
- type: string
- description: base denomination of the relayed fungible token.
- description: >-
- DenomTrace contains the base denomination for ICS20 fungible
- tokens and the
-
- source tracing information path.
- description: denom_traces returns all denominations trace information.
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryConnectionsResponse is the response type for the
- Query/DenomTraces RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/apps/transfer/v1/denom_traces/{hash}:
- get:
- summary: DenomTrace queries a denomination trace information.
- operationId: IbcApplicationsTransferV1DenomTrace
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- denom_trace:
- description: >-
- denom_trace returns the requested denomination trace
- information.
- type: object
- properties:
- path:
- type: string
- description: >-
- path defines the chain of port/channel identifiers used
- for tracing the
-
- source of the fungible token.
- base_denom:
- type: string
- description: base denomination of the relayed fungible token.
- description: >-
- QueryDenomTraceResponse is the response type for the
- Query/DenomTrace RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: hash
- description: >-
- hash (in hex format) or denom (full denom with ibc prefix) of the
- denomination trace information.
- in: path
- required: true
- type: string
- pattern: .+
- tags:
- - Query
- /ibc/apps/transfer/v1/denoms/{denom}/total_escrow:
- get:
- summary: >-
- TotalEscrowForDenom returns the total amount of tokens in escrow based
- on the denom.
- operationId: IbcApplicationsTransferV1TotalEscrowForDenom
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- amount:
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the custom
- method
-
- signatures required by gogoproto.
- description: >-
- QueryTotalEscrowForDenomResponse is the response type for
- TotalEscrowForDenom RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: denom
- in: path
- required: true
- type: string
- pattern: .+
- tags:
- - Query
- /ibc/apps/transfer/v1/params:
- get:
- summary: Params queries all parameters of the ibc-transfer module.
- operationId: IbcApplicationsTransferV1Params
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params defines the parameters of the module.
- type: object
- properties:
- send_enabled:
- type: boolean
- description: >-
- send_enabled enables or disables all cross-chain token
- transfers from this
-
- chain.
- receive_enabled:
- type: boolean
- description: >-
- receive_enabled enables or disables all cross-chain token
- transfers to this
-
- chain.
- description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /ibc/core/channel/v1/channels:
- get:
- summary: Channels queries all the IBC channels of a chain.
- operationId: IbcCoreChannelV1Channels
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- channels:
- type: array
- items:
- type: object
- properties:
- state:
- title: current state of the channel end
- type: string
- enum:
- - STATE_UNINITIALIZED_UNSPECIFIED
- - STATE_INIT
- - STATE_TRYOPEN
- - STATE_OPEN
- - STATE_CLOSED
- default: STATE_UNINITIALIZED_UNSPECIFIED
- description: >-
- State defines if a channel is in one of the following
- states:
-
- CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
-
- - STATE_UNINITIALIZED_UNSPECIFIED: Default State
- - STATE_INIT: A channel has just started the opening handshake.
- - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
- - STATE_OPEN: A channel has completed the handshake. Open channels are
- ready to send and receive packets.
- - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
- packets.
- ordering:
- title: whether the channel is ordered or unordered
- type: string
- enum:
- - ORDER_NONE_UNSPECIFIED
- - ORDER_UNORDERED
- - ORDER_ORDERED
- default: ORDER_NONE_UNSPECIFIED
- description: >-
- - ORDER_NONE_UNSPECIFIED: zero-value for channel
- ordering
- - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
- which they were sent.
- - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
- counterparty:
- title: counterparty channel end
- type: object
- properties:
- port_id:
- type: string
- description: >-
- port on the counterparty chain which owns the other
- end of the channel.
- channel_id:
- type: string
- title: channel end on the counterparty chain
- connection_hops:
- type: array
- items:
- type: string
- title: >-
- list of connection identifiers, in order, along which
- packets sent on
-
- this channel will travel
- version:
- type: string
- title: >-
- opaque channel version, which is agreed upon during the
- handshake
- port_id:
- type: string
- title: port identifier
- channel_id:
- type: string
- title: channel identifier
- description: >-
- IdentifiedChannel defines a channel with additional port and
- channel
-
- identifier fields.
- description: list of stored channels of the chain.
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- height:
- title: query block height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- description: >-
- QueryChannelsResponse is the response type for the Query/Channels
- RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}:
- get:
- summary: Channel queries an IBC Channel.
- operationId: IbcCoreChannelV1Channel
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- channel:
- title: channel associated with the request identifiers
- type: object
- properties:
- state:
- title: current state of the channel end
- type: string
- enum:
- - STATE_UNINITIALIZED_UNSPECIFIED
- - STATE_INIT
- - STATE_TRYOPEN
- - STATE_OPEN
- - STATE_CLOSED
- default: STATE_UNINITIALIZED_UNSPECIFIED
- description: >-
- State defines if a channel is in one of the following
- states:
-
- CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
-
- - STATE_UNINITIALIZED_UNSPECIFIED: Default State
- - STATE_INIT: A channel has just started the opening handshake.
- - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
- - STATE_OPEN: A channel has completed the handshake. Open channels are
- ready to send and receive packets.
- - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
- packets.
- ordering:
- title: whether the channel is ordered or unordered
- type: string
- enum:
- - ORDER_NONE_UNSPECIFIED
- - ORDER_UNORDERED
- - ORDER_ORDERED
- default: ORDER_NONE_UNSPECIFIED
- description: |-
- - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering
- - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
- which they were sent.
- - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
- counterparty:
- title: counterparty channel end
- type: object
- properties:
- port_id:
- type: string
- description: >-
- port on the counterparty chain which owns the other
- end of the channel.
- channel_id:
- type: string
- title: channel end on the counterparty chain
- connection_hops:
- type: array
- items:
- type: string
- title: >-
- list of connection identifiers, in order, along which
- packets sent on
-
- this channel will travel
- version:
- type: string
- title: >-
- opaque channel version, which is agreed upon during the
- handshake
- description: >-
- Channel defines pipeline for exactly-once packet delivery
- between specific
-
- modules on separate blockchains, which has at least one end
- capable of
-
- sending packets and one end capable of receiving packets.
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- description: >-
- QueryChannelResponse is the response type for the Query/Channel
- RPC method.
-
- Besides the Channel end, it includes a proof and the height from
- which the
-
- proof was retrieved.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/client_state:
- get:
- summary: >-
- ChannelClientState queries for the client state for the channel
- associated
-
- with the provided channel identifiers.
- operationId: IbcCoreChannelV1ChannelClientState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- identified_client_state:
- title: client state associated with the channel
- type: object
- properties:
- client_id:
- type: string
- title: client identifier
- client_state:
- title: client state
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- IdentifiedClientState defines a client state with an
- additional client
-
- identifier field.
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryChannelClientStateResponse is the Response type for the
- Query/QueryChannelClientState RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height}:
- get:
- summary: |-
- ChannelConsensusState queries for the consensus state for the channel
- associated with the provided channel identifiers.
- operationId: IbcCoreChannelV1ChannelConsensusState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- consensus_state:
- title: consensus state associated with the channel
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all
- types that they
-
- expect it to use in the context of Any. However, for URLs
- which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in
- the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default
- use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last
- '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- client_id:
- type: string
- title: client ID associated with the consensus state
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryChannelClientStateResponse is the Response type for the
- Query/QueryChannelClientState RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: revision_number
- description: revision number of the consensus state
- in: path
- required: true
- type: string
- format: uint64
- - name: revision_height
- description: revision height of the consensus state
- in: path
- required: true
- type: string
- format: uint64
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequence:
- get:
- summary: >-
- NextSequenceReceive returns the next receive sequence for a given
- channel.
- operationId: IbcCoreChannelV1NextSequenceReceive
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- next_sequence_receive:
- type: string
- format: uint64
- title: next sequence receive number
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QuerySequenceResponse is the request type for the
- Query/QueryNextSequenceReceiveResponse RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements:
- get:
- summary: >-
- PacketAcknowledgements returns all the packet acknowledgements
- associated
-
- with a channel.
- operationId: IbcCoreChannelV1PacketAcknowledgements
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- acknowledgements:
- type: array
- items:
- type: object
- properties:
- port_id:
- type: string
- description: channel port identifier.
- channel_id:
- type: string
- description: channel unique identifier.
- sequence:
- type: string
- format: uint64
- description: packet sequence.
- data:
- type: string
- format: byte
- description: embedded data that represents packet state.
- description: >-
- PacketState defines the generic type necessary to retrieve
- and store
-
- packet commitments, acknowledgements, and receipts.
-
- Caller is responsible for knowing the context necessary to
- interpret this
-
- state as a commitment, acknowledgement, or a receipt.
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- height:
- title: query block height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryPacketAcknowledgemetsResponse is the request type for the
- Query/QueryPacketAcknowledgements RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- - name: packet_commitment_sequences
- description: list of packet sequences
- in: query
- required: false
- type: array
- items:
- type: string
- format: uint64
- collectionFormat: multi
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence}:
- get:
- summary: PacketAcknowledgement queries a stored packet acknowledgement hash.
- operationId: IbcCoreChannelV1PacketAcknowledgement
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- acknowledgement:
- type: string
- format: byte
- title: packet associated with the request fields
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: >-
- QueryPacketAcknowledgementResponse defines the client query
- response for a
-
- packet which also includes a proof and the height from which the
-
- proof was retrieved
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: sequence
- description: packet sequence
- in: path
- required: true
- type: string
- format: uint64
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments:
- get:
- summary: |-
- PacketCommitments returns all the packet commitments hashes associated
- with a channel.
- operationId: IbcCoreChannelV1PacketCommitments
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- commitments:
- type: array
- items:
- type: object
- properties:
- port_id:
- type: string
- description: channel port identifier.
- channel_id:
- type: string
- description: channel unique identifier.
- sequence:
- type: string
- format: uint64
- description: packet sequence.
- data:
- type: string
- format: byte
- description: embedded data that represents packet state.
- description: >-
- PacketState defines the generic type necessary to retrieve
- and store
-
- packet commitments, acknowledgements, and receipts.
-
- Caller is responsible for knowing the context necessary to
- interpret this
-
- state as a commitment, acknowledgement, or a receipt.
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- height:
- title: query block height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryPacketCommitmentsResponse is the request type for the
- Query/QueryPacketCommitments RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks:
- get:
- summary: >-
- UnreceivedAcks returns all the unreceived IBC acknowledgements
- associated
-
- with a channel and sequences.
- operationId: IbcCoreChannelV1UnreceivedAcks
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- sequences:
- type: array
- items:
- type: string
- format: uint64
- title: list of unreceived acknowledgement sequences
- height:
- title: query block height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryUnreceivedAcksResponse is the response type for the
- Query/UnreceivedAcks RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: packet_ack_sequences
- description: list of acknowledgement sequences
- in: path
- required: true
- type: array
- items:
- type: string
- format: uint64
- collectionFormat: csv
- minItems: 1
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets:
- get:
- summary: >-
- UnreceivedPackets returns all the unreceived IBC packets associated with
- a
-
- channel and sequences.
- operationId: IbcCoreChannelV1UnreceivedPackets
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- sequences:
- type: array
- items:
- type: string
- format: uint64
- title: list of unreceived packet sequences
- height:
- title: query block height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryUnreceivedPacketsResponse is the response type for the
- Query/UnreceivedPacketCommitments RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: packet_commitment_sequences
- description: list of packet sequences
- in: path
- required: true
- type: array
- items:
- type: string
- format: uint64
- collectionFormat: csv
- minItems: 1
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence}:
- get:
- summary: PacketCommitment queries a stored packet commitment hash.
- operationId: IbcCoreChannelV1PacketCommitment
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- commitment:
- type: string
- format: byte
- title: packet associated with the request fields
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: >-
- QueryPacketCommitmentResponse defines the client query response
- for a packet
-
- which also includes a proof and the height from which the proof
- was
-
- retrieved
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: sequence
- description: packet sequence
- in: path
- required: true
- type: string
- format: uint64
- tags:
- - Query
- /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence}:
- get:
- summary: >-
- PacketReceipt queries if a given packet sequence has been received on
- the
-
- queried chain
- operationId: IbcCoreChannelV1PacketReceipt
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- received:
- type: boolean
- title: success flag for if receipt exists
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: >-
- QueryPacketReceiptResponse defines the client query response for a
- packet
-
- receipt which also includes a proof, and the height from which the
- proof was
-
- retrieved
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: channel_id
- description: channel unique identifier
- in: path
- required: true
- type: string
- - name: port_id
- description: port unique identifier
- in: path
- required: true
- type: string
- - name: sequence
- description: packet sequence
- in: path
- required: true
- type: string
- format: uint64
- tags:
- - Query
- /ibc/core/channel/v1/connections/{connection}/channels:
- get:
- summary: |-
- ConnectionChannels queries all the channels associated with a connection
- end.
- operationId: IbcCoreChannelV1ConnectionChannels
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- channels:
- type: array
- items:
- type: object
- properties:
- state:
- title: current state of the channel end
- type: string
- enum:
- - STATE_UNINITIALIZED_UNSPECIFIED
- - STATE_INIT
- - STATE_TRYOPEN
- - STATE_OPEN
- - STATE_CLOSED
- default: STATE_UNINITIALIZED_UNSPECIFIED
- description: >-
- State defines if a channel is in one of the following
- states:
-
- CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
-
- - STATE_UNINITIALIZED_UNSPECIFIED: Default State
- - STATE_INIT: A channel has just started the opening handshake.
- - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain.
- - STATE_OPEN: A channel has completed the handshake. Open channels are
- ready to send and receive packets.
- - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive
- packets.
- ordering:
- title: whether the channel is ordered or unordered
- type: string
- enum:
- - ORDER_NONE_UNSPECIFIED
- - ORDER_UNORDERED
- - ORDER_ORDERED
- default: ORDER_NONE_UNSPECIFIED
- description: >-
- - ORDER_NONE_UNSPECIFIED: zero-value for channel
- ordering
- - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in
- which they were sent.
- - ORDER_ORDERED: packets are delivered exactly in the order which they were sent
- counterparty:
- title: counterparty channel end
- type: object
- properties:
- port_id:
- type: string
- description: >-
- port on the counterparty chain which owns the other
- end of the channel.
- channel_id:
- type: string
- title: channel end on the counterparty chain
- connection_hops:
- type: array
- items:
- type: string
- title: >-
- list of connection identifiers, in order, along which
- packets sent on
-
- this channel will travel
- version:
- type: string
- title: >-
- opaque channel version, which is agreed upon during the
- handshake
- port_id:
- type: string
- title: port identifier
- channel_id:
- type: string
- title: channel identifier
- description: >-
- IdentifiedChannel defines a channel with additional port and
- channel
-
- identifier fields.
- description: list of channels associated with a connection.
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- height:
- title: query block height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryConnectionChannelsResponse is the Response type for the
- Query/QueryConnectionChannels RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: connection
- description: connection unique identifier
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/client/v1/client_states:
- get:
- summary: ClientStates queries all the IBC light clients of a chain.
- operationId: IbcCoreClientV1ClientStates
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- client_states:
- type: array
- items:
- type: object
- properties:
- client_id:
- type: string
- title: client identifier
- client_state:
- title: client state
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message
- [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- IdentifiedClientState defines a client state with an
- additional client
-
- identifier field.
- description: list of stored ClientStates of the chain.
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- description: >-
- QueryClientStatesResponse is the response type for the
- Query/ClientStates RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/client/v1/client_states/{client_id}:
- get:
- summary: ClientState queries an IBC light client.
- operationId: IbcCoreClientV1ClientState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- client_state:
- title: client state associated with the request identifier
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all
- types that they
-
- expect it to use in the context of Any. However, for URLs
- which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in
- the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default
- use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last
- '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- description: >-
- QueryClientStateResponse is the response type for the
- Query/ClientState RPC
-
- method. Besides the client state, it includes a proof and the
- height from
-
- which the proof was retrieved.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: client_id
- description: client state unique identifier
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/core/client/v1/client_status/{client_id}:
- get:
- summary: Status queries the status of an IBC client.
- operationId: IbcCoreClientV1ClientStatus
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- status:
- type: string
- description: >-
- QueryClientStatusResponse is the response type for the
- Query/ClientStatus RPC
-
- method. It returns the current status of the IBC client.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: client_id
- description: client unique identifier
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/core/client/v1/consensus_states/{client_id}:
- get:
- summary: |-
- ConsensusStates queries all the consensus state associated with a given
- client.
- operationId: IbcCoreClientV1ConsensusStates
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- consensus_states:
- type: array
- items:
- type: object
- properties:
- height:
- title: consensus state height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each
- height while keeping
-
- RevisionNumber the same. However some consensus
- algorithms may choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as
- the RevisionHeight
-
- gets reset
- consensus_state:
- title: consensus state
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the
- type of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's
- path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the
- binary all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available
- in the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the
- regular
-
- representation of the deserialized, embedded message,
- with an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message
- [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- ConsensusStateWithHeight defines a consensus state with an
- additional height
-
- field.
- title: consensus states associated with the identifier
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- title: |-
- QueryConsensusStatesResponse is the response type for the
- Query/ConsensusStates RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: client_id
- description: client identifier
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/client/v1/consensus_states/{client_id}/heights:
- get:
- summary: >-
- ConsensusStateHeights queries the height of every consensus states
- associated with a given client.
- operationId: IbcCoreClientV1ConsensusStateHeights
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- consensus_state_heights:
- type: array
- items:
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms
- may choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: >-
- Height is a monotonically increasing data type
-
- that can be compared against another Height for the purposes
- of updating and
-
- freezing clients
- title: consensus state heights
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- title: |-
- QueryConsensusStateHeightsResponse is the response type for the
- Query/ConsensusStateHeights RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: client_id
- description: client identifier
- in: path
- required: true
- type: string
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/client/v1/consensus_states/{client_id}/revision/{revision_number}/height/{revision_height}:
- get:
- summary: >-
- ConsensusState queries a consensus state associated with a client state
- at
-
- a given height.
- operationId: IbcCoreClientV1ConsensusState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- consensus_state:
- title: >-
- consensus state associated with the client identifier at the
- given height
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all
- types that they
-
- expect it to use in the context of Any. However, for URLs
- which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in
- the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default
- use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last
- '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: >-
- QueryConsensusStateResponse is the response type for the
- Query/ConsensusState
-
- RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: client_id
- description: client identifier
- in: path
- required: true
- type: string
- - name: revision_number
- description: consensus state revision number
- in: path
- required: true
- type: string
- format: uint64
- - name: revision_height
- description: consensus state revision height
- in: path
- required: true
- type: string
- format: uint64
- - name: latest_height
- description: >-
- latest_height overrrides the height field and queries the latest
- stored
-
- ConsensusState
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/client/v1/params:
- get:
- summary: ClientParams queries all parameters of the ibc client submodule.
- operationId: IbcCoreClientV1ClientParams
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params defines the parameters of the module.
- type: object
- properties:
- allowed_clients:
- type: array
- items:
- type: string
- description: >-
- allowed_clients defines the list of allowed client state
- types which can be created
-
- and interacted with. If a client type is removed from the
- allowed clients list, usage
-
- of this client will be disabled until it is added again to
- the list.
- description: >-
- QueryClientParamsResponse is the response type for the
- Query/ClientParams RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /ibc/core/client/v1/upgraded_client_states:
- get:
- summary: UpgradedClientState queries an Upgraded IBC light client.
- operationId: IbcCoreClientV1UpgradedClientState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- upgraded_client_state:
- title: client state associated with the request identifier
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all
- types that they
-
- expect it to use in the context of Any. However, for URLs
- which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in
- the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default
- use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last
- '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: |-
- QueryUpgradedClientStateResponse is the response type for the
- Query/UpgradedClientState RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /ibc/core/client/v1/upgraded_consensus_states:
- get:
- summary: UpgradedConsensusState queries an Upgraded IBC consensus state.
- operationId: IbcCoreClientV1UpgradedConsensusState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- upgraded_consensus_state:
- title: Consensus state associated with the request identifier
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all
- types that they
-
- expect it to use in the context of Any. However, for URLs
- which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in
- the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default
- use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last
- '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: |-
- QueryUpgradedConsensusStateResponse is the response type for the
- Query/UpgradedConsensusState RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /ibc/core/connection/v1/client_connections/{client_id}:
- get:
- summary: |-
- ClientConnections queries the connection paths associated with a client
- state.
- operationId: IbcCoreConnectionV1ClientConnections
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- connection_paths:
- type: array
- items:
- type: string
- description: slice of all the connection paths associated with a client.
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was generated
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryClientConnectionsResponse is the response type for the
- Query/ClientConnections RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: client_id
- description: client identifier associated with a connection
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/core/connection/v1/connections:
- get:
- summary: Connections queries all the IBC connections of a chain.
- operationId: IbcCoreConnectionV1Connections
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- connections:
- type: array
- items:
- type: object
- properties:
- id:
- type: string
- description: connection identifier.
- client_id:
- type: string
- description: client associated with this connection.
- versions:
- type: array
- items:
- type: object
- properties:
- identifier:
- type: string
- title: unique version identifier
- features:
- type: array
- items:
- type: string
- title: >-
- list of features compatible with the specified
- identifier
- description: >-
- Version defines the versioning scheme used to
- negotiate the IBC verison in
-
- the connection handshake.
- title: >-
- IBC version which can be utilised to determine encodings
- or protocols for
-
- channels or packets utilising this connection
- state:
- description: current state of the connection end.
- type: string
- enum:
- - STATE_UNINITIALIZED_UNSPECIFIED
- - STATE_INIT
- - STATE_TRYOPEN
- - STATE_OPEN
- default: STATE_UNINITIALIZED_UNSPECIFIED
- counterparty:
- description: counterparty chain associated with this connection.
- type: object
- properties:
- client_id:
- type: string
- description: >-
- identifies the client on the counterparty chain
- associated with a given
-
- connection.
- connection_id:
- type: string
- description: >-
- identifies the connection end on the counterparty
- chain associated with a
-
- given connection.
- prefix:
- description: commitment merkle prefix of the counterparty chain.
- type: object
- properties:
- key_prefix:
- type: string
- format: byte
- title: >-
- MerklePrefix is merkle path prefixed to the key.
-
- The constructed key from the Path and the key will
- be append(Path.KeyPath,
-
- append(Path.KeyPrefix, key...))
- delay_period:
- type: string
- format: uint64
- description: delay period associated with this connection.
- description: >-
- IdentifiedConnection defines a connection with additional
- connection
-
- identifier field.
- description: list of stored connections of the chain.
- pagination:
- title: pagination response
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- height:
- title: query block height
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- description: >-
- QueryConnectionsResponse is the response type for the
- Query/Connections RPC
-
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /ibc/core/connection/v1/connections/{connection_id}:
- get:
- summary: Connection queries an IBC connection end.
- operationId: IbcCoreConnectionV1Connection
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- connection:
- title: connection associated with the request identifier
- type: object
- properties:
- client_id:
- type: string
- description: client associated with this connection.
- versions:
- type: array
- items:
- type: object
- properties:
- identifier:
- type: string
- title: unique version identifier
- features:
- type: array
- items:
- type: string
- title: >-
- list of features compatible with the specified
- identifier
- description: >-
- Version defines the versioning scheme used to negotiate
- the IBC verison in
-
- the connection handshake.
- description: >-
- IBC version which can be utilised to determine encodings
- or protocols for
-
- channels or packets utilising this connection.
- state:
- description: current state of the connection end.
- type: string
- enum:
- - STATE_UNINITIALIZED_UNSPECIFIED
- - STATE_INIT
- - STATE_TRYOPEN
- - STATE_OPEN
- default: STATE_UNINITIALIZED_UNSPECIFIED
- counterparty:
- description: counterparty chain associated with this connection.
- type: object
- properties:
- client_id:
- type: string
- description: >-
- identifies the client on the counterparty chain
- associated with a given
-
- connection.
- connection_id:
- type: string
- description: >-
- identifies the connection end on the counterparty
- chain associated with a
-
- given connection.
- prefix:
- description: commitment merkle prefix of the counterparty chain.
- type: object
- properties:
- key_prefix:
- type: string
- format: byte
- title: >-
- MerklePrefix is merkle path prefixed to the key.
-
- The constructed key from the Path and the key will be
- append(Path.KeyPath,
-
- append(Path.KeyPrefix, key...))
- delay_period:
- type: string
- format: uint64
- description: >-
- delay period that must pass before a consensus state can
- be used for
-
- packet-verification NOTE: delay period logic is only
- implemented by some
-
- clients.
- description: >-
- ConnectionEnd defines a stateful object on a chain connected
- to another
-
- separate one.
-
- NOTE: there must only be 2 defined ConnectionEnds to establish
-
- a connection between two chains.
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- description: >-
- QueryConnectionResponse is the response type for the
- Query/Connection RPC
-
- method. Besides the connection end, it includes a proof and the
- height from
-
- which the proof was retrieved.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: connection_id
- description: connection unique identifier
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/core/connection/v1/connections/{connection_id}/client_state:
- get:
- summary: |-
- ConnectionClientState queries the client state associated with the
- connection.
- operationId: IbcCoreConnectionV1ConnectionClientState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- identified_client_state:
- title: client state associated with the channel
- type: object
- properties:
- client_id:
- type: string
- title: client identifier
- client_state:
- title: client state
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type
- of the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be
- in a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can
- optionally set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results
- based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty
- scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any
- values in the form
-
- of utility functions or additional generated methods of
- the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and
- the unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will
- yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a
- custom JSON
-
- representation, that representation will be embedded
- adding a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- IdentifiedClientState defines a client state with an
- additional client
-
- identifier field.
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryConnectionClientStateResponse is the response type for the
- Query/ConnectionClientState RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: connection_id
- description: connection identifier
- in: path
- required: true
- type: string
- tags:
- - Query
- /ibc/core/connection/v1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}:
- get:
- summary: |-
- ConnectionConsensusState queries the consensus state associated with the
- connection.
- operationId: IbcCoreConnectionV1ConnectionConsensusState
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- consensus_state:
- title: consensus state associated with the channel
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all
- types that they
-
- expect it to use in the context of Any. However, for URLs
- which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in
- the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default
- use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last
- '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- client_id:
- type: string
- title: client ID associated with the consensus state
- proof:
- type: string
- format: byte
- title: merkle proof of existence
- proof_height:
- title: height at which the proof was retrieved
- type: object
- properties:
- revision_number:
- type: string
- format: uint64
- title: the revision that the client is currently on
- revision_height:
- type: string
- format: uint64
- title: the height within the given revision
- description: >-
- Normally the RevisionHeight is incremented at each height
- while keeping
-
- RevisionNumber the same. However some consensus algorithms may
- choose to
-
- reset the height in certain conditions e.g. hard forks,
- state-machine
-
- breaking changes In these cases, the RevisionNumber is
- incremented so that
-
- height continues to be monitonically increasing even as the
- RevisionHeight
-
- gets reset
- title: |-
- QueryConnectionConsensusStateResponse is the response type for the
- Query/ConnectionConsensusState RPC method
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- parameters:
- - name: connection_id
- description: connection identifier
- in: path
- required: true
- type: string
- - name: revision_number
- in: path
- required: true
- type: string
- format: uint64
- - name: revision_height
- in: path
- required: true
- type: string
- format: uint64
- tags:
- - Query
- /ibc/core/connection/v1/params:
- get:
- summary: ConnectionParams queries all parameters of the ibc connection submodule.
- operationId: IbcCoreConnectionV1ConnectionParams
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params defines the parameters of the module.
- type: object
- properties:
- max_expected_time_per_block:
- type: string
- format: uint64
- description: >-
- maximum expected time per block (in nanoseconds), used to
- enforce block delay. This parameter should reflect the
-
- largest amount of time that the chain might reasonably
- take to produce the next block under normal operating
-
- conditions. A safe choice is 3-5x the expected time per
- block.
- description: >-
- QueryConnectionParamsResponse is the response type for the
- Query/ConnectionParams RPC method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
- /pocket/application/application:
- get:
- operationId: PocketApplicationApplicationAll
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- application:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- title: >-
- The Bech32 address of the application using cosmos'
- ScalarDescriptor to ensure deterministic encoding
- stake:
- title: The total amount of uPOKT the application has staked
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- service_configs:
- type: array
- items:
- type: object
- properties:
- service:
- title: >-
- The Service for which the application is
- configured
- type: object
- properties:
- id:
- type: string
- description: Unique identifier for the service
- title: >-
- For example, what if we want to request a
- session for a certain service but with some
- additional configs that identify it?
- name:
- type: string
- description: >-
- (Optional) Semantic human readable name for
- the service
- title: >-
- TODO_TECHDEBT: Name is currently unused but
- acts as a reminder than an optional onchain
- representation of the service is necessary
- title: >-
- ApplicationServiceConfig holds the service
- configuration the application stakes for
- title: >-
- The list of services this appliccation is configured to
- request service for
- delegatee_gateway_addresses:
- type: array
- items:
- type: string
- title: >-
- The Bech32 encoded addresses for all delegatee Gateways,
- in a non-nullable slice
- title: >-
- Application defines the type used to store an on-chain
- definition and state for an application
- pagination:
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /pocket/application/application/{address}:
- get:
- summary: Queries a list of Application items.
- operationId: PocketApplicationApplication
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- application:
- type: object
- properties:
- address:
- type: string
- title: >-
- The Bech32 address of the application using cosmos'
- ScalarDescriptor to ensure deterministic encoding
- stake:
- title: The total amount of uPOKT the application has staked
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- service_configs:
- type: array
- items:
- type: object
- properties:
- service:
- title: The Service for which the application is configured
- type: object
- properties:
- id:
- type: string
- description: Unique identifier for the service
- title: >-
- For example, what if we want to request a
- session for a certain service but with some
- additional configs that identify it?
- name:
- type: string
- description: >-
- (Optional) Semantic human readable name for the
- service
- title: >-
- TODO_TECHDEBT: Name is currently unused but acts
- as a reminder than an optional onchain
- representation of the service is necessary
- title: >-
- ApplicationServiceConfig holds the service configuration
- the application stakes for
- title: >-
- The list of services this appliccation is configured to
- request service for
- delegatee_gateway_addresses:
- type: array
- items:
- type: string
- title: >-
- The Bech32 encoded addresses for all delegatee Gateways,
- in a non-nullable slice
- title: >-
- Application defines the type used to store an on-chain
- definition and state for an application
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: address
- in: path
- required: true
- type: string
- tags:
- - Query
- /pocket/application/params:
- get:
- summary: Parameters queries the parameters of the module.
- operationId: PocketApplicationParams
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params holds all the parameters of this module.
- type: object
- properties:
- max_delegated_gateways:
- type: string
- format: int64
- title: >-
- The maximum number of gateways an application can delegate
- trust to
- description: >-
- QueryParamsResponse is response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Query
- /pocket/gateway/gateway:
- get:
- operationId: PocketGatewayGatewayAll
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- gateway:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- title: The Bech32 address of the gateway
- stake:
- title: The total amount of uPOKT the gateway has staked
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- pagination:
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /pocket/gateway/gateway/{address}:
- get:
- summary: Queries a list of Gateway items.
- operationId: PocketGatewayGateway
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- gateway:
- type: object
- properties:
- address:
- type: string
- title: The Bech32 address of the gateway
- stake:
- title: The total amount of uPOKT the gateway has staked
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: address
- in: path
- required: true
- type: string
- tags:
- - Query
- /pocket/gateway/params:
- get:
- summary: Parameters queries the parameters of the module.
- operationId: PocketGatewayParams
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params holds all the parameters of this module.
- type: object
- description: >-
- QueryParamsResponse is response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Query
- /pocket/pocket/params:
- get:
- summary: Parameters queries the parameters of the module.
- operationId: PocketPocketParams
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params holds all the parameters of this module.
- type: object
- description: >-
- QueryParamsResponse is response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Query
- /pocket/service/params:
- get:
- summary: Parameters queries the parameters of the module.
- operationId: PocketServiceParams
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params holds all the parameters of this module.
- type: object
- properties:
- add_service_fee:
- type: string
- format: uint64
- title: The amount of uPOKT required to add a new service
- description: >-
- QueryParamsResponse is response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Query
- /pocket/session/get_session:
- get:
- summary: Queries a list of GetSession items.
- operationId: PocketSessionGetSession
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- session:
- type: object
- properties:
- header:
- title: The header of the session containing lightweight data
- type: object
- properties:
- application_address:
- type: string
- title: >-
- The Bech32 address of the application using cosmos'
- ScalarDescriptor to ensure deterministic encoding
- service:
- title: The service this session is for
- type: object
- properties:
- id:
- type: string
- description: Unique identifier for the service
- title: >-
- For example, what if we want to request a session
- for a certain service but with some additional
- configs that identify it?
- name:
- type: string
- description: >-
- (Optional) Semantic human readable name for the
- service
- title: >-
- TODO_TECHDEBT: Name is currently unused but acts
- as a reminder than an optional onchain
- representation of the service is necessary
- session_start_block_height:
- type: string
- format: int64
- title: The height at which this session started
- session_id:
- type: string
- description: A unique pseudoranom ID for this session
- title: >-
- NOTE: session_id can be derived from the above values
- using on-chain but is included in the header for
- convenience
- session_end_block_height:
- type: string
- format: int64
- title: >-
- The height at which this session ended, this is the
- last block of the session
- description: >-
- SessionHeader is a lightweight header for a session that
- can be passed around.
-
- It is the minimal amount of data required to hydrate &
- retrieve all data relevant to the session.
- session_id:
- type: string
- title: A unique pseudoranom ID for this session
- session_number:
- type: string
- format: int64
- title: The session number since genesis
- num_blocks_per_session:
- type: string
- format: int64
- title: The number of blocks per session when this session started
- application:
- title: A fully hydrated application object this session is for
- type: object
- properties:
- address:
- type: string
- title: >-
- The Bech32 address of the application using cosmos'
- ScalarDescriptor to ensure deterministic encoding
- stake:
- title: The total amount of uPOKT the application has staked
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an
- amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- service_configs:
- type: array
- items:
- type: object
- properties:
- service:
- title: >-
- The Service for which the application is
- configured for
- type: object
- properties:
- id:
- type: string
- description: Unique identifier for the service
- title: >-
- For example, what if we want to request a
- session for a certain service but with some
- additional configs that identify it?
- name:
- type: string
- description: >-
- (Optional) Semantic human readable name for
- the service
- title: >-
- TODO_TECHDEBT: Name is currently unused but
- acts as a reminder than an optional onchain
- representation of the service is necessary
- title: >-
- ApplicationServiceConfig holds the service
- configuration the application stakes for
- title: >-
- The list of services this appliccation is configured
- to request service for
- delegatee_gateway_addresses:
- type: array
- items:
- type: string
- title: >-
- The Bech32 encoded addresses for all delegatee
- Gateways, in a non-nullable slice
- suppliers:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- title: >-
- The Bech32 address of the supplier using cosmos'
- ScalarDescriptor to ensure deterministic encoding
- stake:
- title: The total amount of uPOKT the supplier has staked
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an
- amount.
-
-
- NOTE: The amount field is an Int which implements
- the custom method
-
- signatures required by gogoproto.
- services:
- type: array
- items:
- type: object
- properties:
- service:
- title: >-
- The Service for which the supplier is
- configured for
- type: object
- properties:
- id:
- type: string
- description: Unique identifier for the service
- title: >-
- For example, what if we want to request a
- session for a certain service but with
- some additional configs that identify it?
- name:
- type: string
- description: >-
- (Optional) Semantic human readable name
- for the service
- title: >-
- TODO_TECHDEBT: Name is currently unused
- but acts as a reminder than an optional
- onchain representation of the service is
- necessary
- endpoints:
- type: array
- items:
- type: object
- properties:
- url:
- type: string
- title: URL of the endpoint
- rpc_type:
- title: Type of RPC exposed on the url above
- type: string
- enum:
- - UNKNOWN_RPC
- - GRPC
- - WEBSOCKET
- - JSON_RPC
- default: UNKNOWN_RPC
- description: |-
- - UNKNOWN_RPC: Undefined RPC type
- - GRPC: gRPC
- - WEBSOCKET: WebSocket
- - JSON_RPC: JSON-RPC
- configs:
- type: array
- items:
- type: object
- properties:
- key:
- title: Config option key
- type: string
- enum:
- - UNKNOWN_CONFIG
- - TIMEOUT
- default: UNKNOWN_CONFIG
- description: >-
- Enum to define configuration options
-
- TODO_RESEARCH: Should these be configs,
- SLAs or something else? There will be
- more discussion once we get closer to
- implementing on-chain QoS.
-
- - UNKNOWN_CONFIG: Undefined config option
- - TIMEOUT: Timeout setting
- value:
- type: string
- title: Config option value
- title: >-
- Key-value wrapper for config options, as
- proto maps can't be keyed by enums
- title: >-
- Additional configuration options for the
- endpoint
- title: >-
- SupplierEndpoint message to hold service
- configuration details
- title: List of endpoints for the service
- title: >-
- SupplierServiceConfig holds the service
- configuration the supplier stakes for
- title: The service configs this supplier can support
- description: >-
- Supplier is the type defining the actor in Pocket
- Network that provides RPC services.
- title: >-
- A fully hydrated set of servicers that are serving the
- application
- description: >-
- Session is a fully hydrated session object that contains all
- the information for the Session
-
- and its parcipants.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: application_address
- description: >-
- The Bech32 address of the application using cosmos' ScalarDescriptor
- to ensure deterministic encoding
- in: query
- required: false
- type: string
- - name: service.id
- description: >-
- For example, what if we want to request a session for a certain
- service but with some additional configs that identify it?
-
-
- Unique identifier for the service
- in: query
- required: false
- type: string
- - name: service.name
- description: >-
- TODO_TECHDEBT: Name is currently unused but acts as a reminder than
- an optional onchain representation of the service is necessary
-
-
- (Optional) Semantic human readable name for the service
- in: query
- required: false
- type: string
- - name: block_height
- description: The block height to query the session for
- in: query
- required: false
- type: string
- format: int64
- tags:
- - Query
- /pocket/session/params:
- get:
- summary: Parameters queries the parameters of the module.
- operationId: PocketSessionParams
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params holds all the parameters of this module.
- type: object
- description: >-
- QueryParamsResponse is response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Query
- /pocket/supplier/claim/{session_id}/{supplier_address}:
- get:
- summary: Queries a list of Claim items.
- operationId: PocketSupplierClaim
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- claim:
- type: object
- properties:
- supplier_address:
- type: string
- title: the address of the supplier that submitted this claim
- session_header:
- description: The session header of the session that this claim is for.
- type: object
- properties:
- application_address:
- type: string
- title: >-
- The Bech32 address of the application using cosmos'
- ScalarDescriptor to ensure deterministic encoding
- service:
- title: The service this session is for
- type: object
- properties:
- id:
- type: string
- description: Unique identifier for the service
- title: >-
- For example, what if we want to request a session
- for a certain service but with some additional
- configs that identify it?
- name:
- type: string
- description: >-
- (Optional) Semantic human readable name for the
- service
- title: >-
- TODO_TECHDEBT: Name is currently unused but acts
- as a reminder than an optional onchain
- representation of the service is necessary
- session_start_block_height:
- type: string
- format: int64
- title: The height at which this session started
- session_id:
- type: string
- description: A unique pseudoranom ID for this session
- title: >-
- NOTE: session_id can be derived from the above values
- using on-chain but is included in the header for
- convenience
- session_end_block_height:
- type: string
- format: int64
- title: >-
- The height at which this session ended, this is the
- last block of the session
- root_hash:
- type: string
- format: byte
- description: Root hash returned from smt.SMST#Root().
- title: >-
- Claim is the serialized object stored on-chain for claims
- pending to be proven
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: session_id
- in: path
- required: true
- type: string
- - name: supplier_address
- in: path
- required: true
- type: string
- tags:
- - Query
- /pocket/supplier/claims:
- get:
- operationId: PocketSupplierAllClaims
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- claim:
- type: array
- items:
- type: object
- properties:
- supplier_address:
- type: string
- title: the address of the supplier that submitted this claim
- session_header:
- description: >-
- The session header of the session that this claim is
- for.
- type: object
- properties:
- application_address:
- type: string
- title: >-
- The Bech32 address of the application using cosmos'
- ScalarDescriptor to ensure deterministic encoding
- service:
- title: The service this session is for
- type: object
- properties:
- id:
- type: string
- description: Unique identifier for the service
- title: >-
- For example, what if we want to request a
- session for a certain service but with some
- additional configs that identify it?
- name:
- type: string
- description: >-
- (Optional) Semantic human readable name for the
- service
- title: >-
- TODO_TECHDEBT: Name is currently unused but acts
- as a reminder than an optional onchain
- representation of the service is necessary
- session_start_block_height:
- type: string
- format: int64
- title: The height at which this session started
- session_id:
- type: string
- description: A unique pseudoranom ID for this session
- title: >-
- NOTE: session_id can be derived from the above
- values using on-chain but is included in the header
- for convenience
- session_end_block_height:
- type: string
- format: int64
- title: >-
- The height at which this session ended, this is the
- last block of the session
- root_hash:
- type: string
- format: byte
- description: Root hash returned from smt.SMST#Root().
- title: >-
- Claim is the serialized object stored on-chain for claims
- pending to be proven
- pagination:
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- - name: supplier_address
- in: query
- required: false
- type: string
- - name: session_id
- in: query
- required: false
- type: string
- - name: session_end_height
- in: query
- required: false
- type: string
- format: uint64
- tags:
- - Query
- /pocket/supplier/params:
- get:
- summary: Parameters queries the parameters of the module.
- operationId: PocketSupplierParams
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params holds all the parameters of this module.
- type: object
- description: >-
- QueryParamsResponse is response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- tags:
- - Query
- /pocket/supplier/proof:
- get:
- operationId: PocketSupplierAllProofs
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- proof:
- type: array
- items:
- type: object
- properties:
- supplier_address:
- type: string
- session_header:
- description: >-
- The session header of the session that this claim is
- for.
- type: object
- properties:
- application_address:
- type: string
- title: >-
- The Bech32 address of the application using cosmos'
- ScalarDescriptor to ensure deterministic encoding
- service:
- title: The service this session is for
- type: object
- properties:
- id:
- type: string
- description: Unique identifier for the service
- title: >-
- For example, what if we want to request a
- session for a certain service but with some
- additional configs that identify it?
- name:
- type: string
- description: >-
- (Optional) Semantic human readable name for the
- service
- title: >-
- TODO_TECHDEBT: Name is currently unused but acts
- as a reminder than an optional onchain
- representation of the service is necessary
- session_start_block_height:
- type: string
- format: int64
- title: The height at which this session started
- session_id:
- type: string
- description: A unique pseudoranom ID for this session
- title: >-
- NOTE: session_id can be derived from the above
- values using on-chain but is included in the header
- for convenience
- session_end_block_height:
- type: string
- format: int64
- title: >-
- The height at which this session ended, this is the
- last block of the session
- closest_merkle_proof:
- type: string
- format: byte
- description: >-
- The serialized SMST proof from the `#ClosestProof()`
- method.
- pagination:
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- - name: supplier_address
- in: query
- required: false
- type: string
- - name: session_id
- in: query
- required: false
- type: string
- - name: session_end_height
- in: query
- required: false
- type: string
- format: uint64
- tags:
- - Query
- /pocket/supplier/proof/{session_id}/{supplier_address}:
- get:
- summary: Queries a list of Proof items.
- operationId: PocketSupplierProof
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- proof:
- type: object
- properties:
- supplier_address:
- type: string
- session_header:
- description: The session header of the session that this claim is for.
- type: object
- properties:
- application_address:
- type: string
- title: >-
- The Bech32 address of the application using cosmos'
- ScalarDescriptor to ensure deterministic encoding
- service:
- title: The service this session is for
- type: object
- properties:
- id:
- type: string
- description: Unique identifier for the service
- title: >-
- For example, what if we want to request a session
- for a certain service but with some additional
- configs that identify it?
- name:
- type: string
- description: >-
- (Optional) Semantic human readable name for the
- service
- title: >-
- TODO_TECHDEBT: Name is currently unused but acts
- as a reminder than an optional onchain
- representation of the service is necessary
- session_start_block_height:
- type: string
- format: int64
- title: The height at which this session started
- session_id:
- type: string
- description: A unique pseudoranom ID for this session
- title: >-
- NOTE: session_id can be derived from the above values
- using on-chain but is included in the header for
- convenience
- session_end_block_height:
- type: string
- format: int64
- title: >-
- The height at which this session ended, this is the
- last block of the session
- closest_merkle_proof:
- type: string
- format: byte
- description: >-
- The serialized SMST proof from the `#ClosestProof()`
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: session_id
- in: path
- required: true
- type: string
- - name: supplier_address
- in: path
- required: true
- type: string
- tags:
- - Query
- /pocket/supplier/supplier/{address}:
- get:
- summary: Queries a list of Supplier items.
- operationId: PocketSupplierSupplier
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- supplier:
- type: object
- properties:
- address:
- type: string
- title: >-
- The Bech32 address of the supplier using cosmos'
- ScalarDescriptor to ensure deterministic encoding
- stake:
- title: The total amount of uPOKT the supplier has staked
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- services:
- type: array
- items:
- type: object
- properties:
- service:
- title: The Service for which the supplier is configured
- type: object
- properties:
- id:
- type: string
- description: Unique identifier for the service
- title: >-
- For example, what if we want to request a
- session for a certain service but with some
- additional configs that identify it?
- name:
- type: string
- description: >-
- (Optional) Semantic human readable name for the
- service
- title: >-
- TODO_TECHDEBT: Name is currently unused but acts
- as a reminder than an optional onchain
- representation of the service is necessary
- endpoints:
- type: array
- items:
- type: object
- properties:
- url:
- type: string
- title: URL of the endpoint
- rpc_type:
- title: Type of RPC exposed on the url above
- type: string
- enum:
- - UNKNOWN_RPC
- - GRPC
- - WEBSOCKET
- - JSON_RPC
- - REST
- default: UNKNOWN_RPC
- description: |-
- - UNKNOWN_RPC: Undefined RPC type
- - GRPC: gRPC
- - WEBSOCKET: WebSocket
- - JSON_RPC: JSON-RPC
- - REST: REST
- configs:
- type: array
- items:
- type: object
- properties:
- key:
- title: Config option key
- type: string
- enum:
- - UNKNOWN_CONFIG
- - TIMEOUT
- default: UNKNOWN_CONFIG
- description: >-
- Enum to define configuration options
-
- TODO_RESEARCH: Should these be configs,
- SLAs or something else? There will be
- more discussion once we get closer to
- implementing on-chain QoS.
-
- - UNKNOWN_CONFIG: Undefined config option
- - TIMEOUT: Timeout setting
- value:
- type: string
- title: Config option value
- title: >-
- Key-value wrapper for config options, as
- proto maps can't be keyed by enums
- title: >-
- Additional configuration options for the
- endpoint
- title: >-
- SupplierEndpoint message to hold service
- configuration details
- title: List of endpoints for the service
- title: >-
- SupplierServiceConfig holds the service configuration
- the supplier stakes for
- title: The service configs this supplier can support
- description: >-
- Supplier is the type defining the actor in Pocket Network that
- provides RPC services.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: address
- in: path
- required: true
- type: string
- tags:
- - Query
- /pocket/supplier/suppliers:
- get:
- operationId: PocketSupplierSupplierAll
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- supplier:
- type: array
- items:
- type: object
- properties:
- address:
- type: string
- title: >-
- The Bech32 address of the supplier using cosmos'
- ScalarDescriptor to ensure deterministic encoding
- stake:
- title: The total amount of uPOKT the supplier has staked
- type: object
- properties:
- denom:
- type: string
- amount:
- type: string
- description: >-
- Coin defines a token with a denomination and an amount.
-
-
- NOTE: The amount field is an Int which implements the
- custom method
-
- signatures required by gogoproto.
- services:
- type: array
- items:
- type: object
- properties:
- service:
- title: The Service for which the supplier is configured
- type: object
- properties:
- id:
- type: string
- description: Unique identifier for the service
- title: >-
- For example, what if we want to request a
- session for a certain service but with some
- additional configs that identify it?
- name:
- type: string
- description: >-
- (Optional) Semantic human readable name for
- the service
- title: >-
- TODO_TECHDEBT: Name is currently unused but
- acts as a reminder than an optional onchain
- representation of the service is necessary
- endpoints:
- type: array
- items:
- type: object
- properties:
- url:
- type: string
- title: URL of the endpoint
- rpc_type:
- title: Type of RPC exposed on the url above
- type: string
- enum:
- - UNKNOWN_RPC
- - GRPC
- - WEBSOCKET
- - JSON_RPC
- - REST
- default: UNKNOWN_RPC
- description: |-
- - UNKNOWN_RPC: Undefined RPC type
- - GRPC: gRPC
- - WEBSOCKET: WebSocket
- - JSON_RPC: JSON-RPC
- - REST: REST
- configs:
- type: array
- items:
- type: object
- properties:
- key:
- title: Config option key
- type: string
- enum:
- - UNKNOWN_CONFIG
- - TIMEOUT
- default: UNKNOWN_CONFIG
- description: >-
- Enum to define configuration options
-
- TODO_RESEARCH: Should these be configs,
- SLAs or something else? There will be
- more discussion once we get closer to
- implementing on-chain QoS.
-
- - UNKNOWN_CONFIG: Undefined config option
- - TIMEOUT: Timeout setting
- value:
- type: string
- title: Config option value
- title: >-
- Key-value wrapper for config options, as
- proto maps can't be keyed by enums
- title: >-
- Additional configuration options for the
- endpoint
- title: >-
- SupplierEndpoint message to hold service
- configuration details
- title: List of endpoints for the service
- title: >-
- SupplierServiceConfig holds the service configuration
- the supplier stakes for
- title: The service configs this supplier can support
- description: >-
- Supplier is the type defining the actor in Pocket Network
- that provides RPC services.
- pagination:
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- PageResponse is to be embedded in gRPC response messages where
- the
-
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- additionalProperties: {}
- parameters:
- - name: pagination.key
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- in: query
- required: false
- type: string
- format: byte
- - name: pagination.offset
- description: >-
- offset is a numeric offset that can be used when key is unavailable.
-
- It is less efficient than using key. Only one of offset or key
- should
-
- be set.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.limit
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- in: query
- required: false
- type: string
- format: uint64
- - name: pagination.count_total
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in
- UIs.
-
- count_total is only respected when offset is used. It is ignored
- when key
-
- is set.
- in: query
- required: false
- type: boolean
- - name: pagination.reverse
- description: >-
- reverse is set to true if results are to be returned in the
- descending order.
-
-
- Since: cosmos-sdk 0.43
- in: query
- required: false
- type: boolean
- tags:
- - Query
- /pokt-network/poktroll/tokenomics/params:
- get:
- summary: Parameters queries the parameters of the module.
- operationId: PocketTokenomicsParams
- responses:
- '200':
- description: A successful response.
- schema:
- type: object
- properties:
- params:
- description: params defines the parameters of the module.
- type: object
- properties:
- compute_units_to_tokens_multiplier:
- type: string
- format: uint64
- description: >-
- The amount of upokt that a compute unit should translate
- to when settling a session.
-
- TODO_DOCUMENT(@Olshansk): Make sure to document the units
- of this parameter (or the map) once finalized.
- description: >-
- QueryParamsResponse is the response type for the Query/Params RPC
- method.
- default:
- description: An unexpected error response.
- schema:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of
- the serialized
-
- protocol buffer message. This string must contain at
- least
-
- one "/" character. The last segment of the URL's path
- must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in
- a canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary
- all types that they
-
- expect it to use in the context of Any. However, for
- URLs which use the
-
- scheme `http`, `https`, or no scheme, one can optionally
- set up a type
-
- server that maps type URLs to message definitions as
- follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a
- [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based
- on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in
- the official
-
- protobuf release, and it is not used for type URLs
- beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme)
- might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer
- message along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values
- in the form
-
- of utility functions or additional generated methods of the
- Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by
- default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the
- last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield
- type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with
- an
-
- additional field `@type` which contains the type URL.
- Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom
- JSON
-
- representation, that representation will be embedded adding
- a field
-
- `value` which holds the custom JSON in addition to the
- `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- tags:
- - Query
-definitions:
- cosmos.auth.v1beta1.AddressBytesToStringResponse:
- type: object
- properties:
- address_string:
- type: string
- description: >-
- AddressBytesToStringResponse is the response type for AddressString rpc
- method.
-
-
- Since: cosmos-sdk 0.46
- cosmos.auth.v1beta1.AddressStringToBytesResponse:
- type: object
- properties:
- address_bytes:
- type: string
- format: byte
- description: >-
- AddressStringToBytesResponse is the response type for AddressBytes rpc
- method.
-
-
- Since: cosmos-sdk 0.46
- cosmos.auth.v1beta1.BaseAccount:
- type: object
- properties:
- address:
- type: string
- pub_key:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of the
- serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all types
- that they
-
- expect it to use in the context of Any. However, for URLs which
- use the
-
- scheme `http`, `https`, or no scheme, one can optionally set up a
- type
-
- server that maps type URLs to message definitions as follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message along
- with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in the
- form
-
- of utility functions or additional generated methods of the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the unpack
-
- methods only use the fully qualified type name after the last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom JSON
-
- representation, that representation will be embedded adding a field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- account_number:
- type: string
- format: uint64
- sequence:
- type: string
- format: uint64
- description: >-
- BaseAccount defines a base account type. It contains all the necessary
- fields
-
- for basic account functionality. Any custom account type should extend
- this
-
- type for additional functionality (e.g. vesting).
- cosmos.auth.v1beta1.Bech32PrefixResponse:
- type: object
- properties:
- bech32_prefix:
- type: string
- description: |-
- Bech32PrefixResponse is the response type for Bech32Prefix rpc method.
-
- Since: cosmos-sdk 0.46
- cosmos.auth.v1beta1.MsgUpdateParamsResponse:
- type: object
- description: |-
- MsgUpdateParamsResponse defines the response structure for executing a
- MsgUpdateParams message.
-
- Since: cosmos-sdk 0.47
- cosmos.auth.v1beta1.Params:
- type: object
- properties:
- max_memo_characters:
- type: string
- format: uint64
- tx_sig_limit:
- type: string
- format: uint64
- tx_size_cost_per_byte:
- type: string
- format: uint64
- sig_verify_cost_ed25519:
- type: string
- format: uint64
- sig_verify_cost_secp256k1:
- type: string
- format: uint64
- description: Params defines the parameters for the auth module.
- cosmos.auth.v1beta1.QueryAccountAddressByIDResponse:
- type: object
- properties:
- account_address:
- type: string
- description: 'Since: cosmos-sdk 0.46.2'
- title: >-
- QueryAccountAddressByIDResponse is the response type for
- AccountAddressByID rpc method
- cosmos.auth.v1beta1.QueryAccountInfoResponse:
- type: object
- properties:
- info:
- description: info is the account info which is represented by BaseAccount.
- type: object
- properties:
- address:
- type: string
- pub_key:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of the
- serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all
- types that they
-
- expect it to use in the context of Any. However, for URLs
- which use the
-
- scheme `http`, `https`, or no scheme, one can optionally set
- up a type
-
- server that maps type URLs to message definitions as follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based on
- the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs beginning
- with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme) might
- be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message
- along with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in the
- form
-
- of utility functions or additional generated methods of the Any
- type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the
- unpack
-
- methods only use the fully qualified type name after the last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom JSON
-
- representation, that representation will be embedded adding a
- field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- account_number:
- type: string
- format: uint64
- sequence:
- type: string
- format: uint64
- description: |-
- QueryAccountInfoResponse is the Query/AccountInfo response type.
-
- Since: cosmos-sdk 0.47
- cosmos.auth.v1beta1.QueryAccountResponse:
- type: object
- properties:
- account:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of the
- serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all types
- that they
-
- expect it to use in the context of Any. However, for URLs which
- use the
-
- scheme `http`, `https`, or no scheme, one can optionally set up a
- type
-
- server that maps type URLs to message definitions as follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message along
- with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in the
- form
-
- of utility functions or additional generated methods of the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the unpack
-
- methods only use the fully qualified type name after the last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom JSON
-
- representation, that representation will be embedded adding a field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- QueryAccountResponse is the response type for the Query/Account RPC
- method.
- cosmos.auth.v1beta1.QueryAccountsResponse:
- type: object
- properties:
- accounts:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of the
- serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all types
- that they
-
- expect it to use in the context of Any. However, for URLs which
- use the
-
- scheme `http`, `https`, or no scheme, one can optionally set up
- a type
-
- server that maps type URLs to message definitions as follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs beginning
- with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme) might
- be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message along
- with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in the
- form
-
- of utility functions or additional generated methods of the Any
- type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the unpack
-
- methods only use the fully qualified type name after the last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom JSON
-
- representation, that representation will be embedded adding a field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- title: accounts are the existing accounts
- pagination:
- description: pagination defines the pagination in the response.
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: >-
- total is total number of results available if
- PageRequest.count_total
-
- was set, its value is undefined otherwise
- description: >-
- QueryAccountsResponse is the response type for the Query/Accounts RPC
- method.
-
-
- Since: cosmos-sdk 0.43
- cosmos.auth.v1beta1.QueryModuleAccountByNameResponse:
- type: object
- properties:
- account:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of the
- serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all types
- that they
-
- expect it to use in the context of Any. However, for URLs which
- use the
-
- scheme `http`, `https`, or no scheme, one can optionally set up a
- type
-
- server that maps type URLs to message definitions as follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message along
- with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in the
- form
-
- of utility functions or additional generated methods of the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the unpack
-
- methods only use the fully qualified type name after the last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom JSON
-
- representation, that representation will be embedded adding a field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- QueryModuleAccountByNameResponse is the response type for the
- Query/ModuleAccountByName RPC method.
- cosmos.auth.v1beta1.QueryModuleAccountsResponse:
- type: object
- properties:
- accounts:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of the
- serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all types
- that they
-
- expect it to use in the context of Any. However, for URLs which
- use the
-
- scheme `http`, `https`, or no scheme, one can optionally set up
- a type
-
- server that maps type URLs to message definitions as follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs beginning
- with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme) might
- be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message along
- with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in the
- form
-
- of utility functions or additional generated methods of the Any
- type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the unpack
-
- methods only use the fully qualified type name after the last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom JSON
-
- representation, that representation will be embedded adding a field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- description: >-
- QueryModuleAccountsResponse is the response type for the
- Query/ModuleAccounts RPC method.
-
-
- Since: cosmos-sdk 0.46
- cosmos.auth.v1beta1.QueryParamsResponse:
- type: object
- properties:
- params:
- description: params defines the parameters of the module.
- type: object
- properties:
- max_memo_characters:
- type: string
- format: uint64
- tx_sig_limit:
- type: string
- format: uint64
- tx_size_cost_per_byte:
- type: string
- format: uint64
- sig_verify_cost_ed25519:
- type: string
- format: uint64
- sig_verify_cost_secp256k1:
- type: string
- format: uint64
- description: QueryParamsResponse is the response type for the Query/Params RPC method.
- cosmos.base.query.v1beta1.PageRequest:
- type: object
- properties:
- key:
- type: string
- format: byte
- description: |-
- key is a value returned in PageResponse.next_key to begin
- querying the next page most efficiently. Only one of offset or key
- should be set.
- offset:
- type: string
- format: uint64
- description: |-
- offset is a numeric offset that can be used when key is unavailable.
- It is less efficient than using key. Only one of offset or key should
- be set.
- limit:
- type: string
- format: uint64
- description: >-
- limit is the total number of results to be returned in the result
- page.
-
- If left empty it will default to a value to be set by each app.
- count_total:
- type: boolean
- description: >-
- count_total is set to true to indicate that the result set should
- include
-
- a count of the total number of items available for pagination in UIs.
-
- count_total is only respected when offset is used. It is ignored when
- key
-
- is set.
- reverse:
- type: boolean
- description: >-
- reverse is set to true if results are to be returned in the descending
- order.
-
-
- Since: cosmos-sdk 0.43
- description: |-
- message SomeRequest {
- Foo some_parameter = 1;
- PageRequest pagination = 2;
- }
- title: |-
- PageRequest is to be embedded in gRPC request messages for efficient
- pagination. Ex:
- cosmos.base.query.v1beta1.PageResponse:
- type: object
- properties:
- next_key:
- type: string
- format: byte
- description: |-
- next_key is the key to be passed to PageRequest.key to
- query the next page most efficiently. It will be empty if
- there are no more results.
- total:
- type: string
- format: uint64
- title: |-
- total is total number of results available if PageRequest.count_total
- was set, its value is undefined otherwise
- description: |-
- PageResponse is to be embedded in gRPC response messages where the
- corresponding request message has used PageRequest.
-
- message SomeResponse {
- repeated Bar results = 1;
- PageResponse page = 2;
- }
- google.protobuf.Any:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of the
- serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a canonical
- form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all types that
- they
-
- expect it to use in the context of Any. However, for URLs which use
- the
-
- scheme `http`, `https`, or no scheme, one can optionally set up a type
-
- server that maps type URLs to message definitions as follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the official
-
- protobuf release, and it is not used for type URLs beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message along with
- a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in the form
-
- of utility functions or additional generated methods of the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the unpack
-
- methods only use the fully qualified type name after the last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom JSON
-
- representation, that representation will be embedded adding a field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- google.rpc.Status:
- type: object
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- details:
- type: array
- items:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of the
- serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all types
- that they
-
- expect it to use in the context of Any. However, for URLs which
- use the
-
- scheme `http`, `https`, or no scheme, one can optionally set up
- a type
-
- server that maps type URLs to message definitions as follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs beginning
- with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme) might
- be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message along
- with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in the
- form
-
- of utility functions or additional generated methods of the Any
- type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the unpack
-
- methods only use the fully qualified type name after the last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName": ,
- "lastName":
- }
-
- If the embedded message type is well-known and has a custom JSON
-
- representation, that representation will be embedded adding a field
-
- `value` which holds the custom JSON in addition to the `@type`
-
- field. Example (for message [google.protobuf.Duration][]):
-
- {
- "@type": "type.googleapis.com/google.protobuf.Duration",
- "value": "1.212s"
- }
- cosmos.authz.v1beta1.Grant:
- type: object
- properties:
- authorization:
- type: object
- properties:
- '@type':
- type: string
- description: >-
- A URL/resource name that uniquely identifies the type of the
- serialized
-
- protocol buffer message. This string must contain at least
-
- one "/" character. The last segment of the URL's path must
- represent
-
- the fully qualified name of the type (as in
-
- `path/google.protobuf.Duration`). The name should be in a
- canonical form
-
- (e.g., leading "." is not accepted).
-
-
- In practice, teams usually precompile into the binary all types
- that they
-
- expect it to use in the context of Any. However, for URLs which
- use the
-
- scheme `http`, `https`, or no scheme, one can optionally set up a
- type
-
- server that maps type URLs to message definitions as follows:
-
-
- * If no scheme is provided, `https` is assumed.
-
- * An HTTP GET on the URL must yield a [google.protobuf.Type][]
- value in binary format, or produce an error.
- * Applications are allowed to cache lookup results based on the
- URL, or have them precompiled into a binary to avoid any
- lookup. Therefore, binary compatibility needs to be preserved
- on changes to types. (Use versioned type names to manage
- breaking changes.)
-
- Note: this functionality is not currently available in the
- official
-
- protobuf release, and it is not used for type URLs beginning with
-
- type.googleapis.com.
-
-
- Schemes other than `http`, `https` (or the empty scheme) might be
-
- used with implementation specific semantics.
- additionalProperties: {}
- description: >-
- `Any` contains an arbitrary serialized protocol buffer message along
- with a
-
- URL that describes the type of the serialized message.
-
-
- Protobuf library provides support to pack/unpack Any values in the
- form
-
- of utility functions or additional generated methods of the Any type.
-
-
- Example 1: Pack and unpack a message in C++.
-
- Foo foo = ...;
- Any any;
- any.PackFrom(foo);
- ...
- if (any.UnpackTo(&foo)) {
- ...
- }
-
- Example 2: Pack and unpack a message in Java.
-
- Foo foo = ...;
- Any any = Any.pack(foo);
- ...
- if (any.is(Foo.class)) {
- foo = any.unpack(Foo.class);
- }
-
- Example 3: Pack and unpack a message in Python.
-
- foo = Foo(...)
- any = Any()
- any.Pack(foo)
- ...
- if any.Is(Foo.DESCRIPTOR):
- any.Unpack(foo)
- ...
-
- Example 4: Pack and unpack a message in Go
-
- foo := &pb.Foo{...}
- any, err := anypb.New(foo)
- if err != nil {
- ...
- }
- ...
- foo := &pb.Foo{}
- if err := any.UnmarshalTo(foo); err != nil {
- ...
- }
-
- The pack methods provided by protobuf library will by default use
-
- 'type.googleapis.com/full.type.name' as the type URL and the unpack
-
- methods only use the fully qualified type name after the last '/'
-
- in the type URL, for example "foo.bar.com/x/y.z" will yield type
-
- name "y.z".
-
-
-
- JSON
-
- ====
-
- The JSON representation of an `Any` value uses the regular
-
- representation of the deserialized, embedded message, with an
-
- additional field `@type` which contains the type URL. Example:
-
- package google.profile;
- message Person {
- string first_name = 1;
- string last_name = 2;
- }
-
- {
- "@type": "type.googleapis.com/google.profile.Person",
- "firstName":