Skip to content

Commit

Permalink
Add more docs to api return types
Browse files Browse the repository at this point in the history
  • Loading branch information
gostkin committed Dec 1, 2023
1 parent 012ce13 commit 147597b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webserver/shared/models/BlockLatest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type BlockSubset = {
*/
era: number;
/**
* [0-9a-fA-F]{64}
* @pattern [0-9a-fA-F]{64}
* @example "cf8c63a909d91776e27f7d05457e823a9dba606a7ab499ac435e7904ee70d7c8"
*/
hash: string;
Expand Down
18 changes: 17 additions & 1 deletion webserver/shared/models/ProjectedNftRange.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
export type ProjectedNftRangeRequest = {
range: { minSlot: number, maxSlot: number }
/**
* Projected NFT events in this slot range will be returned
*/
range: {
/**
* Minimal slot from which the events should be returned (not inclusive)
*
* @example 46154769
*/
minSlot: number,
/**
* Maximal slot from which the events should be returned (inclusive)
*
* @example 46154860
*/
maxSlot: number
}
};

export type ProjectedNftRangeResponse = {
Expand Down

0 comments on commit 147597b

Please sign in to comment.