-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: /paras{/leases/current, /auctions/current} #507
Conversation
@joepetrowski this might be a good time to take a peek at how the api is developing. You can see the response interfaces at |
docs/src/openapi-v1.yaml
Outdated
[Experimental subject to breaking change] Get the status of the current | ||
auction. | ||
description: | | ||
Returns an overview of the current of the current auction. There is only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returns an overview of the current of the current auction. There is only | |
Returns an overview of the current auction. There is only |
docs/src/openapi-v1.yaml
Outdated
format: unsignedInteger or $hex | ||
- name: fundInfo | ||
in: query | ||
description: Wehther or not to include the `fundInfo` of each crowdlaon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: Wehther or not to include the `fundInfo` of each crowdlaon | |
description: Optional parameter to include the `fundInfo` of each crowdlaon |
docs/src/openapi-v1.yaml
Outdated
parameters: | ||
- name: paraId | ||
in: path | ||
description: paraId to query crowdloan information of. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sounds a little weird. It might just be the of
at the end.
docs/src/openapi-v1.yaml
Outdated
- paras | ||
summary: | | ||
[Experimental subject to breaking change] Get current and future lease | ||
info + lifecycle stage for a given `paraId. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
info + lifecycle stage for a given `paraId. | |
info as well as the lifecycle stage for a given `paraId. |
Optional suggestion. Not sure if having symbols is conventional for docs.
docs/src/openapi-v1.yaml
Outdated
parameters: | ||
- name: paraId | ||
in: path | ||
description: paraId to query crowdloan information of. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing as above with the of
.
docs/src/openapi-v1.yaml
Outdated
type: string | ||
format: unsignedInteger | ||
description: | | ||
A currently win bid and the set of lease periods the bid is for. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A currently win bid and the set of lease periods the bid is for. The | |
A currently won bid and the set of lease periods the bid is for. The |
docs/src/openapi-v1.yaml
Outdated
type: string | ||
format: unisgnedInteger or $null | ||
description: | | ||
Fist block of the auction ending phase. `null` if no ongoing auction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fist block of the auction ending phase. `null` if no ongoing auction. | |
Fist block of the auction ending phase. Returns `null` if there is no ongoing auction. |
docs/src/openapi-v1.yaml
Outdated
type: string | ||
format: unisgnedInteger or $null | ||
description: | | ||
Last block of the auction ending phase. `null` if no ongoing auction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last block of the auction ending phase. `null` if no ongoing auction. | |
Last block of the auction ending phase. Returns `null` if there is no ongoing auction. |
docs/src/openapi-v1.yaml
Outdated
- opening | ||
- ending | ||
description: | | ||
Wether the auction is in the `opening` or `ending` phase. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wether the auction is in the `opening` or `ending` phase. The | |
Whether the auction is in the `opening` or `ending` phase. The |
docs/src/openapi-v1.yaml
Outdated
description: | | ||
Wether the auction is in the `opening` or `ending` phase. The | ||
`ending` phase is where the eventual winners are retroactively | ||
picked from. `null` if no ongoing auction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
picked from. `null` if no ongoing auction. | |
picked from. Returns `null` if there is no ongoing auction. |
docs/src/openapi-v1.yaml
Outdated
type: string | ||
format: unsignedInteger | ||
description: | | ||
Lease period indexes that may be bid on in this auction. `null` if no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lease period indexes that may be bid on in this auction. `null` if no | |
Lease period indexes that may be bid on in this auction. Returns `null` if there is no |
docs/src/openapi-v1.yaml
Outdated
fundInfo: | ||
$ref: '#/components/schemas/FundInfo' | ||
description: | | ||
List of paras that have crowdloans. Note `fundInfo` is only included when query |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List of paras that have crowdloans. Note `fundInfo` is only included when query | |
List of paras that have crowdloans. Note `fundInfo` is only included when the query |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just some grammar, and wording suggestions.
adds docs for
/paras
/paras/leases/current
/paras/auctions/current
/paras/crowdloans
/paras/{paraId}/crowdloan-info
/paras/{paraId}/lease-info
changes
AuctionPhase::Starting
instead of (AuctionPhase::PreEnding
) andAuctionPhase::Ending
.future prs