From 4ab1af54c8a216232ac4cce70b625d4f8eb81e30 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 24 Jan 2025 10:40:23 +0100 Subject: [PATCH] chore: re-gen swagger (partial backport #23486) (#23499) Co-authored-by: Julien Robert --- client/docs/config.json | 11 +- client/docs/embed.go | 15 +- client/docs/swagger-ui/index.html | 8 +- client/docs/swagger-ui/swagger.yaml | 1937 +++++++++++---------------- tools/confix/data/v2-app.toml | 77 +- 5 files changed, 883 insertions(+), 1165 deletions(-) diff --git a/client/docs/config.json b/client/docs/config.json index 8d21362345..27c6d42085 100644 --- a/client/docs/config.json +++ b/client/docs/config.json @@ -174,6 +174,15 @@ }, { "url": "./tmp-swagger-gen/cosmos/app/v1alpha1/query.swagger.json" + }, + { + "url": "./tmp-swagger-gen/cosmos/protocolpool/v1/query.swagger.json", + "operationIds": { + "rename": { + "Params": "ProtocolPoolParams", + "CommunityPool": "ProtocolPoolCommunityPool" + } + } } ] -} \ No newline at end of file +} diff --git a/client/docs/embed.go b/client/docs/embed.go index 294cb2af42..eae04249ae 100644 --- a/client/docs/embed.go +++ b/client/docs/embed.go @@ -1,6 +1,19 @@ package docs -import "embed" +import ( + "embed" + "io/fs" +) //go:embed swagger-ui var SwaggerUI embed.FS + +// GetSwaggerFS returns the embedded Swagger UI filesystem +func GetSwaggerFS() fs.FS { + root, err := fs.Sub(SwaggerUI, "swagger-ui") + if err != nil { + panic(err) + } + + return root +} diff --git a/client/docs/swagger-ui/index.html b/client/docs/swagger-ui/index.html index 5a91efa8ca..b7afbbb9ed 100644 --- a/client/docs/swagger-ui/index.html +++ b/client/docs/swagger-ui/index.html @@ -1,10 +1,12 @@ - + - + + - + + diff --git a/client/docs/swagger-ui/swagger.yaml b/client/docs/swagger-ui/swagger.yaml index c4352f47ae..caead817f1 100644 --- a/client/docs/swagger-ui/swagger.yaml +++ b/client/docs/swagger-ui/swagger.yaml @@ -1241,7 +1241,7 @@ paths: type: string tags: - Query - /cosmos/auth/v1beta1/address_by_id/{id}: + /cosmos/auth/v1beta1/address_by_id/{account_id}: get: summary: AccountAddressByID returns account address based on account number. operationId: AccountAddressByID @@ -1445,6 +1445,12 @@ paths: "value": "1.212s" } parameters: + - name: account_id + description: account_id is the account number of the address to be queried. + in: path + required: true + type: string + format: uint64 - name: id description: |- Deprecated, use account_id instead @@ -1452,16 +1458,10 @@ paths: 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. in: query required: false type: string - format: uint64 + format: int64 tags: - Query /cosmos/auth/v1beta1/bech32: @@ -1669,6 +1669,428 @@ paths: } tags: - Query + /cosmos/auth/v1beta1/bech32/decode/{address_bytes}: + get: + summary: AddressBytesToString converts Account Address bytes to string + operationId: AddressBytesToString2 + responses: + '200': + description: A successful response. + schema: + type: object + properties: + address_string: + type: string + description: >- + AddressBytesToStringResponse is the response type for + AddressString 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); + } + // 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: address_bytes + in: path + required: true + type: string + format: byte + tags: + - Query + /cosmos/auth/v1beta1/bech32/encode/{address_string}: + get: + summary: AddressStringToBytes converts Address string to bytes + operationId: AddressStringToBytes + responses: + '200': + description: A successful response. + schema: + type: object + properties: + address_bytes: + type: string + format: byte + description: >- + AddressStringToBytesResponse is the response type for AddressBytes + 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); + } + // 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: address_string + in: path + required: true + type: string + tags: + - Query /cosmos/auth/v1beta1/bech32/{address_bytes}: get: summary: AddressBytesToString converts Account Address bytes to string @@ -1880,217 +2302,6 @@ paths: format: byte tags: - Query - /cosmos/auth/v1beta1/bech32/{address_string}: - get: - summary: AddressStringToBytes converts Address string to bytes - operationId: AddressStringToBytes - responses: - '200': - description: A successful response. - schema: - type: object - properties: - address_bytes: - type: string - format: byte - description: >- - AddressStringToBytesResponse is the response type for AddressBytes - 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); - } - // 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: address_string - in: path - required: true - type: string - tags: - - Query /cosmos/auth/v1beta1/module_accounts: get: summary: ModuleAccounts returns all the existing module accounts. @@ -3364,6 +3575,7 @@ paths: in: path required: true type: string + pattern: .+ - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -3876,6 +4088,7 @@ paths: in: path required: true type: string + pattern: .+ tags: - Query /cosmos/bank/v1beta1/denoms_metadata_by_query_string: @@ -8095,6 +8308,12 @@ paths: title: Module is the type for VersionInfo cosmos_sdk_version: type: string + comet_server_version: + type: string + runtime_version: + type: string + stf_version: + type: string description: VersionInfo is the type for the GetNodeInfoResponse message. description: >- GetNodeInfoResponse is the response type for the Query/GetNodeInfo @@ -8700,7 +8919,11 @@ paths: format: int64 description: Validator is the type for the validator-set. pagination: - description: pagination defines an pagination for the response. + description: >- + pagination defines an pagination for the response. offset and + limit are used for pagination, next_key is not + + supported for this query. type: object properties: next_key: @@ -9171,7 +9394,11 @@ paths: format: int64 description: Validator is the type for the validator-set. pagination: - description: pagination defines an pagination for the response. + description: >- + pagination defines an pagination for the response. offset and + limit are used for pagination, next_key is not + + supported for this query. type: object properties: next_key: @@ -9514,7 +9741,7 @@ paths: format: byte title: validator hash provided by the consensus header description: >- - StateResponse defines the response structure for the status of a + StatusResponse defines the response structure for the status of a node. default: description: An unexpected error response. @@ -17348,177 +17575,7 @@ paths: properties: '@type': type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // 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" - } tags: - Query /cosmos/mint/v1beta1/inflation: @@ -17557,177 +17614,7 @@ paths: properties: '@type': type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // 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" - } tags: - Query /cosmos/mint/v1beta1/params: @@ -17786,177 +17673,7 @@ paths: properties: '@type': type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // 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" - } tags: - Query /cosmos/params/v1beta1/params: @@ -18592,7 +18309,7 @@ paths: 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() @@ -18602,7 +18319,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) @@ -18632,6 +18349,7 @@ paths: JSON + ==== The JSON representation of an `Any` value uses the regular @@ -19019,7 +18737,7 @@ paths: 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() @@ -19029,7 +18747,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) @@ -19059,6 +18777,7 @@ paths: JSON + ==== The JSON representation of an `Any` value uses the regular @@ -19386,7 +19105,7 @@ paths: 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() @@ -19396,7 +19115,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) @@ -19426,6 +19145,7 @@ paths: JSON + ==== The JSON representation of an `Any` value uses the regular @@ -19888,7 +19608,7 @@ paths: 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() @@ -19898,7 +19618,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) @@ -19928,6 +19648,7 @@ paths: JSON + ==== The JSON representation of an `Any` value uses the regular @@ -20340,7 +20061,7 @@ paths: 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() @@ -20350,7 +20071,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) @@ -20380,6 +20101,7 @@ paths: JSON + ==== The JSON representation of an `Any` value uses the regular @@ -20865,7 +20587,7 @@ paths: 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() @@ -20875,7 +20597,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) @@ -20905,6 +20627,7 @@ paths: JSON + ==== The JSON representation of an `Any` value uses the regular @@ -21125,7 +20848,7 @@ paths: 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() @@ -21135,7 +20858,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) @@ -21165,6 +20888,7 @@ paths: JSON + ==== The JSON representation of an `Any` value uses the regular @@ -21333,7 +21057,7 @@ paths: 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() @@ -21343,7 +21067,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) @@ -21373,6 +21097,7 @@ paths: JSON + ==== The JSON representation of an `Any` value uses the regular @@ -21807,7 +21532,7 @@ paths: 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() @@ -21817,7 +21542,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) @@ -21847,6 +21572,7 @@ paths: JSON + ==== The JSON representation of an `Any` value uses the regular @@ -22257,7 +21983,7 @@ paths: 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() @@ -22267,7 +21993,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) @@ -22297,6 +22023,7 @@ paths: JSON + ==== The JSON representation of an `Any` value uses the regular @@ -22548,7 +22275,7 @@ paths: 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() @@ -22558,7 +22285,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) @@ -22588,6 +22315,7 @@ paths: JSON + ==== The JSON representation of an `Any` value uses the regular @@ -22854,7 +22582,7 @@ paths: 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() @@ -22864,7 +22592,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) @@ -22894,6 +22622,7 @@ paths: JSON + ==== The JSON representation of an `Any` value uses the regular @@ -23123,7 +22852,7 @@ paths: 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() @@ -23133,7 +22862,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) @@ -23163,6 +22892,7 @@ paths: JSON + ==== The JSON representation of an `Any` value uses the regular @@ -23439,7 +23169,7 @@ paths: 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() @@ -23449,7 +23179,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) @@ -23479,6 +23209,7 @@ paths: JSON + ==== The JSON representation of an `Any` value uses the regular @@ -25456,9 +25187,6 @@ paths: 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. @@ -38688,7 +38416,7 @@ paths: - Query /cosmos/circuit/v1/accounts: get: - summary: Account returns account permissions. + summary: Accounts returns multiple accounts permissions. operationId: CircuitAccounts responses: '200': @@ -39182,6 +38910,159 @@ paths: additionalProperties: {} tags: - Query + /cosmos/protocolpool/v1/community_pool: + get: + summary: CommunityPool queries the community pool coins. + operationId: ProtocolPoolCommunityPool + responses: + '200': + description: A successful response. + schema: + type: object + properties: + pool: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + DecCoin defines a token with a denomination and a decimal + amount. + + + NOTE: The amount field is an Dec which implements the custom + method + + signatures required by gogoproto. + description: pool defines community pool's coins. + description: >- + QueryCommunityPoolResponse is the response type for the + Query/CommunityPool + + 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/protocolpool/v1/unclaimed_budget/{address}: + get: + summary: >- + UnclaimedBudget queries the remaining budget left to be claimed and it + gives overall budget allocation view. + operationId: UnclaimedBudget + responses: + '200': + description: A successful response. + schema: + type: object + properties: + claimed_amount: + title: >- + claimed_amount is the budget amount already claimed by the + recipient + 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. + unclaimed_amount: + title: >- + unclaimed_amount is the remaining budget amount that is + unclaimed by the recipient + 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. + next_claim_from: + type: string + format: date-time + description: >- + next_claim_from is the next starting claim time for fund + distribution. + + It represents the time when we can claim funds after the + period time interval has passed. + period: + type: string + title: period is the time interval for fund distribution + tranches_left: + type: string + format: uint64 + title: >- + tranches_left is the number of tranches left for the amount to + be distributed + description: >- + QueryUnclaimedBudgetResponse is the response type for the + Query/UnclaimedBudget + + 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 recipient address to query unclaimed budget amount + for. + in: path + required: true + type: string + tags: + - Query definitions: cosmos.auth.v1beta1.AddressBytesToStringResponse: type: object @@ -47962,7 +47843,11 @@ definitions: format: int64 description: Validator is the type for the validator-set. pagination: - description: pagination defines an pagination for the response. + description: >- + pagination defines an pagination for the response. offset and limit + are used for pagination, next_key is not + + supported for this query. type: object properties: next_key: @@ -48060,6 +47945,12 @@ definitions: title: Module is the type for VersionInfo cosmos_sdk_version: type: string + comet_server_version: + type: string + runtime_version: + type: string + stf_version: + type: string description: VersionInfo is the type for the GetNodeInfoResponse message. description: >- GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC @@ -48263,7 +48154,11 @@ definitions: format: int64 description: Validator is the type for the validator-set. pagination: - description: pagination defines an pagination for the response. + description: >- + pagination defines an pagination for the response. offset and limit + are used for pagination, next_key is not + + supported for this query. type: object properties: next_key: @@ -48599,6 +48494,12 @@ definitions: title: Module is the type for VersionInfo cosmos_sdk_version: type: string + comet_server_version: + type: string + runtime_version: + type: string + stf_version: + type: string description: VersionInfo is the type for the GetNodeInfoResponse message. cosmos.base.node.v1beta1.ConfigResponse: type: object @@ -48636,7 +48537,7 @@ definitions: type: string format: byte title: validator hash provided by the consensus header - description: StateResponse defines the response structure for the status of a node. + description: StatusResponse defines the response structure for the status of a node. cosmos.base.v1beta1.DecCoin: type: object properties: @@ -56107,9 +56008,6 @@ definitions: 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: >- TxResponse defines a structure containing relevant tx data and metadata. The @@ -56576,9 +56474,6 @@ definitions: 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. @@ -57544,9 +57439,6 @@ definitions: 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: GetTxResponse is the response type for the Service.GetTx method. cosmos.tx.v1beta1.GetTxsEventResponse: type: object @@ -57759,9 +57651,6 @@ definitions: 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: >- TxResponse defines a structure containing relevant tx data and metadata. The @@ -58618,14 +58507,6 @@ definitions: will not be processed by the chain. - - - Note, if unordered=true this value MUST be set - - and will act as a short-lived TTL in which the transaction is - deemed valid - - and kept in memory to prevent duplicates. unordered: type: boolean description: >- @@ -58644,12 +58525,27 @@ definitions: Note, when set to true, the existing 'timeout_height' value must - be set and - will be used to correspond to a height in which the transaction is - deemed + be set and will be used to correspond to a time_stamp in which the + transaction is deemed valid. + timeout_timestamp: + type: string + format: date-time + description: >- + timeout_timestamp is the block time after which this transaction + will not + + be processed by the chain. + + + Note, if unordered=true this value MUST be set + + and will act as a short-lived TTL in which the transaction is + deemed valid + + and kept in memory to prevent duplicates. extension_options: type: array items: @@ -59233,14 +59129,6 @@ definitions: not be processed by the chain. - - - Note, if unordered=true this value MUST be set - - and will act as a short-lived TTL in which the transaction is deemed - valid - - and kept in memory to prevent duplicates. unordered: type: boolean description: >- @@ -59256,13 +59144,28 @@ definitions: transaction execution. - Note, when set to true, the existing 'timeout_height' value must be - set and + Note, when set to true, the existing 'timeout_height' value must - will be used to correspond to a height in which the transaction is - deemed + be set and will be used to correspond to a time_stamp in which the + transaction is deemed valid. + timeout_timestamp: + type: string + format: date-time + description: >- + timeout_timestamp is the block time after which this transaction will + not + + be processed by the chain. + + + Note, if unordered=true this value MUST be set + + and will act as a short-lived TTL in which the transaction is deemed + valid + + and kept in memory to prevent duplicates. extension_options: type: array items: @@ -65192,152 +65095,6 @@ definitions: breaker for Msg's of all type URLs. - LEVEL_SUPER_ADMIN: LEVEL_SUPER_ADMIN indicates that the account can take all circuit breaker actions and can grant permissions to other accounts. - cometbft.abci.v1.CommitInfo: - type: object - properties: - round: - type: integer - format: int32 - votes: - type: array - items: - type: object - properties: - validator: - type: object - properties: - address: - type: string - format: byte - title: The first 20 bytes of SHA256(public key) - power: - type: string - format: int64 - description: The voting power - title: PubKey pub_key = 2 [(gogoproto.nullable)=false]; - description: Validator in the validator set. - 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 - description: |- - - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition - - BLOCK_ID_FLAG_ABSENT: The vote was not received - - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: Voted for nil - title: BlockIdFlag indicates which BlockID the signature is for - description: VoteInfo contains the information about the vote. - description: CommitInfo contains votes for the particular round. - cometbft.abci.v1.Misbehavior: - type: object - properties: - type: - type: string - enum: - - MISBEHAVIOR_TYPE_UNKNOWN - - MISBEHAVIOR_TYPE_DUPLICATE_VOTE - - MISBEHAVIOR_TYPE_LIGHT_CLIENT_ATTACK - default: MISBEHAVIOR_TYPE_UNKNOWN - description: |- - The type of misbehavior committed by a validator. - - - MISBEHAVIOR_TYPE_UNKNOWN: Unknown - - MISBEHAVIOR_TYPE_DUPLICATE_VOTE: Duplicate vote - - MISBEHAVIOR_TYPE_LIGHT_CLIENT_ATTACK: Light client attack - validator: - type: object - properties: - address: - type: string - format: byte - title: The first 20 bytes of SHA256(public key) - power: - type: string - format: int64 - description: The voting power - title: PubKey pub_key = 2 [(gogoproto.nullable)=false]; - description: Validator in the validator set. - title: The offending validator - height: - type: string - format: int64 - title: The height when the offense occurred - time: - type: string - format: date-time - title: The corresponding time where the offense occurred - total_voting_power: - type: string - format: int64 - title: >- - Total voting power of the validator set in case the ABCI application - does - - not store historical validators. - - https://github.com/tendermint/tendermint/issues/4581 - description: Misbehavior is a type of misbehavior committed by a validator. - cometbft.abci.v1.MisbehaviorType: - type: string - enum: - - MISBEHAVIOR_TYPE_UNKNOWN - - MISBEHAVIOR_TYPE_DUPLICATE_VOTE - - MISBEHAVIOR_TYPE_LIGHT_CLIENT_ATTACK - default: MISBEHAVIOR_TYPE_UNKNOWN - description: |- - The type of misbehavior committed by a validator. - - - MISBEHAVIOR_TYPE_UNKNOWN: Unknown - - MISBEHAVIOR_TYPE_DUPLICATE_VOTE: Duplicate vote - - MISBEHAVIOR_TYPE_LIGHT_CLIENT_ATTACK: Light client attack - cometbft.abci.v1.Validator: - type: object - properties: - address: - type: string - format: byte - title: The first 20 bytes of SHA256(public key) - power: - type: string - format: int64 - description: The voting power - title: PubKey pub_key = 2 [(gogoproto.nullable)=false]; - description: Validator in the validator set. - cometbft.abci.v1.VoteInfo: - type: object - properties: - validator: - type: object - properties: - address: - type: string - format: byte - title: The first 20 bytes of SHA256(public key) - power: - type: string - format: int64 - description: The voting power - title: PubKey pub_key = 2 [(gogoproto.nullable)=false]; - description: Validator in the validator set. - 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 - description: |- - - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition - - BLOCK_ID_FLAG_ABSENT: The vote was not received - - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: Voted for nil - title: BlockIdFlag indicates which BlockID the signature is for - description: VoteInfo contains the information about the vote. cometbft.types.v1.ABCIParams: type: object properties: @@ -65704,214 +65461,6 @@ definitions: It was named app_version in CometBFT 0.34. description: VersionParams contain the version of specific components of CometBFT. - cosmos.consensus.v1.CometInfo: - type: object - properties: - evidence: - type: array - items: - type: object - properties: - type: - type: string - enum: - - MISBEHAVIOR_TYPE_UNKNOWN - - MISBEHAVIOR_TYPE_DUPLICATE_VOTE - - MISBEHAVIOR_TYPE_LIGHT_CLIENT_ATTACK - default: MISBEHAVIOR_TYPE_UNKNOWN - description: |- - The type of misbehavior committed by a validator. - - - MISBEHAVIOR_TYPE_UNKNOWN: Unknown - - MISBEHAVIOR_TYPE_DUPLICATE_VOTE: Duplicate vote - - MISBEHAVIOR_TYPE_LIGHT_CLIENT_ATTACK: Light client attack - validator: - type: object - properties: - address: - type: string - format: byte - title: The first 20 bytes of SHA256(public key) - power: - type: string - format: int64 - description: The voting power - title: PubKey pub_key = 2 [(gogoproto.nullable)=false]; - description: Validator in the validator set. - title: The offending validator - height: - type: string - format: int64 - title: The height when the offense occurred - time: - type: string - format: date-time - title: The corresponding time where the offense occurred - total_voting_power: - type: string - format: int64 - title: >- - Total voting power of the validator set in case the ABCI - application does - - not store historical validators. - - https://github.com/tendermint/tendermint/issues/4581 - description: Misbehavior is a type of misbehavior committed by a validator. - validators_hash: - type: string - format: byte - proposer_address: - type: string - format: byte - last_commit: - type: object - properties: - round: - type: integer - format: int32 - votes: - type: array - items: - type: object - properties: - validator: - type: object - properties: - address: - type: string - format: byte - title: The first 20 bytes of SHA256(public key) - power: - type: string - format: int64 - description: The voting power - title: PubKey pub_key = 2 [(gogoproto.nullable)=false]; - description: Validator in the validator set. - 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 - description: |- - - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition - - BLOCK_ID_FLAG_ABSENT: The vote was not received - - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: Voted for nil - title: BlockIdFlag indicates which BlockID the signature is for - description: VoteInfo contains the information about the vote. - description: CommitInfo contains votes for the particular round. - description: CometInfo defines the structure of the x/consensus module's comet info. - cosmos.consensus.v1.QueryGetCometInfoResponse: - type: object - properties: - comet_info: - description: comet_info is the comet info of the x/consensus module. - type: object - properties: - evidence: - type: array - items: - type: object - properties: - type: - type: string - enum: - - MISBEHAVIOR_TYPE_UNKNOWN - - MISBEHAVIOR_TYPE_DUPLICATE_VOTE - - MISBEHAVIOR_TYPE_LIGHT_CLIENT_ATTACK - default: MISBEHAVIOR_TYPE_UNKNOWN - description: |- - The type of misbehavior committed by a validator. - - - MISBEHAVIOR_TYPE_UNKNOWN: Unknown - - MISBEHAVIOR_TYPE_DUPLICATE_VOTE: Duplicate vote - - MISBEHAVIOR_TYPE_LIGHT_CLIENT_ATTACK: Light client attack - validator: - type: object - properties: - address: - type: string - format: byte - title: The first 20 bytes of SHA256(public key) - power: - type: string - format: int64 - description: The voting power - title: PubKey pub_key = 2 [(gogoproto.nullable)=false]; - description: Validator in the validator set. - title: The offending validator - height: - type: string - format: int64 - title: The height when the offense occurred - time: - type: string - format: date-time - title: The corresponding time where the offense occurred - total_voting_power: - type: string - format: int64 - title: >- - Total voting power of the validator set in case the ABCI - application does - - not store historical validators. - - https://github.com/tendermint/tendermint/issues/4581 - description: Misbehavior is a type of misbehavior committed by a validator. - validators_hash: - type: string - format: byte - proposer_address: - type: string - format: byte - last_commit: - type: object - properties: - round: - type: integer - format: int32 - votes: - type: array - items: - type: object - properties: - validator: - type: object - properties: - address: - type: string - format: byte - title: The first 20 bytes of SHA256(public key) - power: - type: string - format: int64 - description: The voting power - title: PubKey pub_key = 2 [(gogoproto.nullable)=false]; - description: Validator in the validator set. - 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 - description: |- - - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition - - BLOCK_ID_FLAG_ABSENT: The vote was not received - - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: Voted for nil - title: BlockIdFlag indicates which BlockID the signature is for - description: VoteInfo contains the information about the vote. - description: CommitInfo contains votes for the particular round. - description: >- - QueryCometInfoResponse defines the response type for querying x/consensus - comet info. cosmos.consensus.v1.QueryParamsResponse: type: object properties: @@ -66592,3 +66141,79 @@ definitions: field's configuration is global (not module specific). description: QueryConfigResponse is the Query/Config response type. + cosmos.protocolpool.v1.QueryCommunityPoolResponse: + type: object + properties: + pool: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + DecCoin defines a token with a denomination and a decimal amount. + + NOTE: The amount field is an Dec which implements the custom method + signatures required by gogoproto. + description: pool defines community pool's coins. + description: >- + QueryCommunityPoolResponse is the response type for the + Query/CommunityPool + + RPC method. + cosmos.protocolpool.v1.QueryUnclaimedBudgetResponse: + type: object + properties: + claimed_amount: + title: claimed_amount is the budget amount already claimed by the recipient + 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. + unclaimed_amount: + title: >- + unclaimed_amount is the remaining budget amount that is unclaimed by + the recipient + 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. + next_claim_from: + type: string + format: date-time + description: >- + next_claim_from is the next starting claim time for fund distribution. + + It represents the time when we can claim funds after the period time + interval has passed. + period: + type: string + title: period is the time interval for fund distribution + tranches_left: + type: string + format: uint64 + title: >- + tranches_left is the number of tranches left for the amount to be + distributed + description: >- + QueryUnclaimedBudgetResponse is the response type for the + Query/UnclaimedBudget + + RPC method. diff --git a/tools/confix/data/v2-app.toml b/tools/confix/data/v2-app.toml index 51c1e3298d..a94c44d487 100644 --- a/tools/confix/data/v2-app.toml +++ b/tools/confix/data/v2-app.toml @@ -1,32 +1,44 @@ [comet] + # min-retain-blocks defines the minimum block height offset from the current block being committed, such that all blocks past this offset are pruned from CometBFT. A value of 0 indicates that no blocks should be pruned. min-retain-blocks = 0 + # halt-height contains a non-zero block height at which a node will gracefully halt and shutdown that can be used to assist upgrades and testing. halt-height = 0 + # halt-time contains a non-zero minimum block time (in Unix seconds) at which a node will gracefully halt and shutdown that can be used to assist upgrades and testing. halt-time = 0 + # address defines the CometBFT RPC server address to bind to. address = 'tcp://127.0.0.1:26658' + # transport defines the CometBFT RPC server transport protocol: socket, grpc transport = 'socket' + # trace enables the CometBFT RPC server to output trace information about its internal operations. trace = false + # standalone starts the application without the CometBFT node. The node should be started separately. standalone = false + # index-abci-events defines the set of events in the form {eventType}.{attributeKey}, which informs CometBFT what to index. If empty, all events will be indexed. index-abci-events = [] + # disable-index-abci-events disables the ABCI event indexing done by CometBFT. Useful when relying on the SDK indexer for event indexing, but still want events to be included in FinalizeBlockResponse. disable-index-abci-events = false + # disable-abci-events disables all ABCI events. Useful when relying on the SDK indexer for event indexing. disable-abci-events = false # mempool defines the configuration for the SDK built-in app-side mempool implementations. [comet.mempool] + # max-txs defines the maximum number of transactions that can be in the mempool. A value of 0 indicates an unbounded mempool, a negative value disables the app-side mempool. max-txs = -1 # indexer defines the configuration for the SDK built-in indexer implementation. [comet.indexer] + # Buffer size of the channels used for buffering data sent to indexer go routines. channel_buffer_size = 1024 @@ -34,76 +46,133 @@ channel_buffer_size = 1024 [comet.indexer.target] [grpc] + # Enable defines if the gRPC server should be enabled. enable = true + # Address defines the gRPC server address to bind to. address = 'localhost:9090' + # MaxRecvMsgSize defines the max message size in bytes the server can receive. # The default value is 10MB. max-recv-msg-size = 10485760 + # MaxSendMsgSize defines the max message size in bytes the server can send. # The default value is math.MaxInt32. max-send-msg-size = 2147483647 [grpc-gateway] -# Enable defines if the gRPC-gateway should be enabled. + +# Enable defines if the gRPC-Gateway should be enabled. enable = true -# Address defines the address the gRPC-gateway server binds to. + +# Address defines the address the gRPC-Gateway server binds to. address = 'localhost:1317' [rest] + # Enable defines if the REST server should be enabled. enable = true + # Address defines the REST server address to bind to. address = 'localhost:8080' [server] + # minimum-gas-prices defines the price which a validator is willing to accept for processing a transaction. A transaction's fees must meet the minimum of any denomination specified in this config (e.g. 0.25token1;0.0001token2). minimum-gas-prices = '0stake' [store] + # The type of database for application and snapshots databases. app-db-backend = 'goleveldb' [store.options] + # State commitment database type. Currently we support: "iavl" and "iavl-v2" sc-type = 'iavl' # Pruning options for state commitment [store.options.sc-pruning-option] + # Number of recent heights to keep on disk. keep-recent = 2 + # Height interval at which pruned heights are removed from disk. interval = 100 [store.options.iavl-config] + # CacheSize set the size of the iavl tree cache. -cache-size = 100000 +cache-size = 500000 + # If true, the tree will work like no fast storage and always not upgrade fast storage. skip-fast-storage-upgrade = true +[store.options.iavl-v2-config] + +# CheckpointInterval set the interval of the checkpoint. +checkpoint-interval = 0 + +# CheckpointMemory set the memory of the checkpoint. +checkpoint-memory = 0 + +# StateStorage set the state storage. +state-storage = false + +# HeightFilter set the height filter. +height-filter = 0 + +# EvictionDepth set the eviction depth. +eviction-depth = 0 + +# PruneRatio set the prune ratio. +prune-ratio = 0.0 + +# MinimumKeepVersions set the minimum keep versions. +minimum-keep-versions = 0 + +[swagger] + +# Enable enables/disables the Swagger UI server +enable = true + +# Address defines the server address to bind to +address = 'localhost:8090' + [telemetry] + # Enable enables the application telemetry functionality. When enabled, an in-memory sink is also enabled by default. Operators may also enabled other sinks such as Prometheus. enable = true + # Address defines the metrics server address to bind to. address = 'localhost:7180' + # Prefixed with keys to separate services. service-name = '' + # Enable prefixing gauge values with hostname. enable-hostname = false + # Enable adding hostname to labels. enable-hostname-label = false + # Enable adding service to labels. enable-service-label = false + # PrometheusRetentionTime, when positive, enables a Prometheus metrics sink. It defines the retention duration in seconds. -prometheus-retention-time = 0 +prometheus-retention-time = 600 + # GlobalLabels defines a global set of name/value label tuples applied to all metrics emitted using the wrapper functions defined in telemetry package. # Example: # [["chain_id", "cosmoshub-1"]] global-labels = [] + # MetricsSink defines the type of metrics backend to use. Default is in memory metrics-sink = '' + # StatsdAddr defines the address of a statsd server to send metrics to. Only utilized if MetricsSink is set to "statsd" or "dogstatsd". stats-addr = '' + # DatadogHostname defines the hostname to use when emitting metrics to Datadog. Only utilized if MetricsSink is set to "dogstatsd". data-dog-hostname = ''