-
Notifications
You must be signed in to change notification settings - Fork 217
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
Allow listing pools based on stake instead of wallet id #1775
Conversation
bb348b5
to
e7618d6
Compare
r <- request @[ApiStakePool] ctx (Link.listStakePools (ApiT invalidWalletId, ())) Default Empty | ||
expectResponseCode HTTP.status404 r | ||
it "STAKE_POOLS_LIST_05 - Fails without query parameter" $ \ctx -> do | ||
_w <- fixtureWallet ctx -- Ambiguous type error without this line |
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.
🤷♂️
bors try |
| isValidCoin x = | ||
return x | ||
| otherwise = | ||
Left $ TextDecodingError "Coin value is out of bounds" |
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.
Ho, we didn't get rid of that yet 🤔
description: | | ||
The stake the user intends to delegate in Lovelace. Required. | ||
|
||
> ⚠️ On the incentivized testnet, this parameter is not requred, but rather completely ignored. |
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.
👍
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.
👍 Nice.
bors r+ |
1775: Allow listing pools based on stake instead of wallet id r=KtorZ a=Anviking # Issue Number #1720 # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - [x] Make list stake pool endpoint take `Coin` instead of `WalletId`. - [x] Adjust corresponding types and tests (A few more I think) - [x] Fail with `err400` when query param is not present on Shelley. - [x] Adjust swagger # Comments ``` Originally: GET /stake-pools What was recently introduced: GET /wallets/:wid/stake-pools Now: GET /stake-pools?stake=1000 For jormungandr the query parameter is not required, and unused. This minimises breaking changes. ``` - [Slack thread](https://input-output-rnd.slack.com/archives/C819S481Y/p1592322972378700) - This PR gives greater flexibility to Daedalus and other API users <!-- Additional comments or screenshots to attach if any --> <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Assign the PR to a corresponding milestone ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: Johannes Lund <[email protected]>
tryBuild failed |
Build failed |
Originally: GET /stake-pools What was recently introduced: GET /wallets/:wid/stake-pools Now: GET /stake-pools?stake=1000 For jormungandr the query parameter is not required, and unused. This minimises breaking changes.
e7618d6
to
272c52c
Compare
bors r+ |
1775: Allow listing pools based on stake instead of wallet id r=Anviking a=Anviking # Issue Number #1720 # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - [x] Make list stake pool endpoint take `Coin` instead of `WalletId`. - [x] Adjust corresponding types and tests (A few more I think) - [x] Fail with `err400` when query param is not present on Shelley. - [x] Adjust swagger # Comments ``` Originally: GET /stake-pools What was recently introduced: GET /wallets/:wid/stake-pools Now: GET /stake-pools?stake=1000 For jormungandr the query parameter is not required, and unused. This minimises breaking changes. ``` - [Slack thread](https://input-output-rnd.slack.com/archives/C819S481Y/p1592322972378700) - This PR gives greater flexibility to Daedalus and other API users <!-- Additional comments or screenshots to attach if any --> <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Assign the PR to a corresponding milestone ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: Johannes Lund <[email protected]>
Timed out |
bors try |
tryBuild succeeded |
bors r+ |
Build succeeded |
Issue Number
#1720
Overview
Coin
instead ofWalletId
.err400
when query param is not present on Shelley.Comments