From fbce24abef56b5bfd2933b42218ff79fcef44bc7 Mon Sep 17 00:00:00 2001 From: Nick DeLuca Date: Tue, 13 Aug 2024 12:32:18 -0700 Subject: [PATCH] chore(precisebank): Add queries to swagger (#2004) This adds the precisebank protobuf generated swagger documentation to the swagger combine configuration in order to be rendered in the swagger.yaml file. --- client/docs/config.json | 17 +++ client/docs/swagger-ui/swagger.yaml | 207 ++++++++++++++++++++++++++++ 2 files changed, 224 insertions(+) diff --git a/client/docs/config.json b/client/docs/config.json index 04d17e179..ae722200d 100644 --- a/client/docs/config.json +++ b/client/docs/config.json @@ -182,6 +182,23 @@ ] } }, + { + "url": "./out/swagger/kava/precisebank/v1/query.swagger.json", + "tags": { + "rename": { + "Query": "Precisebank" + } + }, + "operationIds": { + "rename": [ + { + "type": "regex", + "from": "(.*)", + "to": "Precisebank$1" + } + ] + } + }, { "url": "./out/swagger/kava/pricefeed/v1beta1/query.swagger.json", "tags": { diff --git a/client/docs/swagger-ui/swagger.yaml b/client/docs/swagger-ui/swagger.yaml index 95e5d9b5a..8add5e685 100644 --- a/client/docs/swagger-ui/swagger.yaml +++ b/client/docs/swagger-ui/swagger.yaml @@ -12019,6 +12019,163 @@ paths: format: byte tags: - Liquid + /kava/precisebank/v1/fractional_balance/{address}: + get: + summary: >- + FractionalBalance returns only the fractional balance of an address. + This + + does not include any integer balance. + operationId: PrecisebankFractionalBalance + responses: + '200': + description: A successful response. + schema: + type: object + properties: + fractional_balance: + description: fractional_balance is the fractional balance of the address. + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + QueryFractionalBalanceResponse defines the response type for + Query/FractionalBalance method. + default: + description: An unexpected error response. + schema: + type: object + properties: + error: + type: string + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + type_url: + type: string + value: + type: string + format: byte + parameters: + - name: address + description: address is the account address to query fractional balance for. + in: path + required: true + type: string + tags: + - Precisebank + /kava/precisebank/v1/remainder: + get: + summary: |- + Remainder returns the amount backed by the reserve, but not yet owned by + any account, i.e. not in circulation. + operationId: PrecisebankRemainder + responses: + '200': + description: A successful response. + schema: + type: object + properties: + remainder: + description: >- + remainder is the amount backed by the reserve, but not yet + owned by any + + account, i.e. not in circulation. + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + QueryRemainderResponse defines the response type for + Query/Remainder method. + default: + description: An unexpected error response. + schema: + type: object + properties: + error: + type: string + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + type_url: + type: string + value: + type: string + format: byte + tags: + - Precisebank + /kava/precisebank/v1/total_fractional_balances: + get: + summary: |- + TotalFractionalBalances returns the total sum of all fractional balances + managed by the precisebank module. + operationId: PrecisebankTotalFractionalBalances + responses: + '200': + description: A successful response. + schema: + type: object + properties: + total: + description: >- + total is the total sum of all fractional balances managed by + the precisebank + + module. + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + QueryTotalFractionalBalancesResponse defines the response type for + Query/TotalFractionalBalances method. + default: + description: An unexpected error response. + schema: + type: object + properties: + error: + type: string + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + type_url: + type: string + value: + type: string + format: byte + tags: + - Precisebank /kava/pricefeed/v1beta1/markets: get: summary: Markets queries all markets @@ -62082,6 +62239,56 @@ definitions: description: >- TotalSupplyResponse defines the response type for the Query/TotalSupply method. + kava.precisebank.v1.QueryFractionalBalanceResponse: + type: object + properties: + fractional_balance: + description: fractional_balance is the fractional balance of the address. + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + QueryFractionalBalanceResponse defines the response type for + Query/FractionalBalance method. + kava.precisebank.v1.QueryRemainderResponse: + type: object + properties: + remainder: + description: >- + remainder is the amount backed by the reserve, but not yet owned by + any + + account, i.e. not in circulation. + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + QueryRemainderResponse defines the response type for Query/Remainder + method. + kava.precisebank.v1.QueryTotalFractionalBalancesResponse: + type: object + properties: + total: + description: >- + total is the total sum of all fractional balances managed by the + precisebank + + module. + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + QueryTotalFractionalBalancesResponse defines the response type for + Query/TotalFractionalBalances method. kava.pricefeed.v1beta1.CurrentPriceResponse: type: object properties: