From e3beb86ff0ba5baab862551e128d06748a018fef Mon Sep 17 00:00:00 2001 From: Tanmay Date: Sat, 9 Sep 2023 18:06:19 -0400 Subject: [PATCH] Generate specs --- docs/openapi/openapi.swagger.yaml | 107 ++++++++++++++++++++++++++++++ docs/spec/crosschain/messages.md | 11 +++ 2 files changed, 118 insertions(+) diff --git a/docs/openapi/openapi.swagger.yaml b/docs/openapi/openapi.swagger.yaml index 708b05795c..5223becae8 100644 --- a/docs/openapi/openapi.swagger.yaml +++ b/docs/openapi/openapi.swagger.yaml @@ -26942,6 +26942,83 @@ paths: type: string tags: - Query + /zeta-chain/crosschain/inTxTrackerByChain/{chain_id}: + get: + operationId: Query_InTxTrackerAllByChain + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/crosschainQueryAllInTxTrackerByChainResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + parameters: + - name: chain_id + 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: + - Query + /zeta-chain/crosschain/inTxTrackers: + get: + operationId: Query_InTxTrackerAll + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/crosschainQueryAllInTxTrackersResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + tags: + - Query /zeta-chain/crosschain/lastBlockHeight: get: summary: Queries a list of lastBlockHeight items. @@ -50209,6 +50286,16 @@ definitions: type: array items: type: string + crosschainInTxTracker: + type: object + properties: + chain_id: + type: string + format: int64 + tx_hash: + type: string + coin_type: + $ref: '#/definitions/commonCoinType' crosschainInboundTxParams: type: object properties: @@ -50253,6 +50340,8 @@ definitions: lastReceiveHeight: type: string format: uint64 + crosschainMsgAddToInTxTrackerResponse: + type: object crosschainMsgAddToOutTxTrackerResponse: type: object crosschainMsgCreateTSSVoterResponse: @@ -50390,6 +50479,24 @@ definitions: $ref: '#/definitions/crosschainInTxHashToCctx' pagination: $ref: '#/definitions/v1beta1PageResponse' + crosschainQueryAllInTxTrackerByChainResponse: + type: object + properties: + inTxTracker: + type: array + items: + type: object + $ref: '#/definitions/crosschainInTxTracker' + pagination: + $ref: '#/definitions/v1beta1PageResponse' + crosschainQueryAllInTxTrackersResponse: + type: object + properties: + inTxTracker: + type: array + items: + type: object + $ref: '#/definitions/crosschainInTxTracker' crosschainQueryAllLastBlockHeightResponse: type: object properties: diff --git a/docs/spec/crosschain/messages.md b/docs/spec/crosschain/messages.md index a051202e8c..64d0cd6a82 100644 --- a/docs/spec/crosschain/messages.md +++ b/docs/spec/crosschain/messages.md @@ -16,6 +16,17 @@ message MsgAddToOutTxTracker { } ``` +## MsgAddToInTxTracker + +```proto +message MsgAddToInTxTracker { + string creator = 1; + int64 chain_id = 2; + string tx_hash = 3; + common.CoinType coin_type = 4; +} +``` + ## MsgRemoveFromOutTxTracker Removes a record from the outbound transaction tracker by chain ID and nonce.