Skip to content

Commit

Permalink
Generate specs
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Sep 9, 2023
1 parent b989fe4 commit e3beb86
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 0 deletions.
107 changes: 107 additions & 0 deletions docs/openapi/openapi.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -50253,6 +50340,8 @@ definitions:
lastReceiveHeight:
type: string
format: uint64
crosschainMsgAddToInTxTrackerResponse:
type: object
crosschainMsgAddToOutTxTrackerResponse:
type: object
crosschainMsgCreateTSSVoterResponse:
Expand Down Expand Up @@ -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:
Expand Down
11 changes: 11 additions & 0 deletions docs/spec/crosschain/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e3beb86

Please sign in to comment.