-
Notifications
You must be signed in to change notification settings - Fork 220
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
Add missing APIs for multi-asset #2489
Conversation
d870ffc
to
0ff5654
Compare
@rvl shall we also tackle this quick one at the same time: #2476 (comment) |
Yes, coming up... |
@@ -213,6 +215,8 @@ instance PartialOrd TokenMap where | |||
(getAssets m1 `Set.union` getAssets m2) | |||
|
|||
instance NFData TokenMap | |||
instance Hashable TokenMap where | |||
hashWithSalt = hashUsing (Map.toList . unTokenMap) |
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.
Can't GeneralizedNewtypeDeriving
or DerivingVia
handle that just fine 🤔 ?
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.
It didn't seem to work - I think perhaps Map didn't have a Hashable instance.
@@ -996,6 +996,7 @@ x-transactionResolvedInputs: &transactionResolvedInputs | |||
properties: | |||
address: *addressId | |||
amount: *amount | |||
assets: *walletAssets |
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.
👌
:> Capture "walletId" (ApiT WalletId) | ||
:> "assets" | ||
:> Capture "policyId" (ApiT TokenPolicyId) | ||
:> Get '[JSON] ApiAsset |
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.
👍
98a29bc
to
1839acd
Compare
bors r+ |
2489: Add missing APIs for multi-asset r=rvl a=rvl ## Issue Number ADP-698 ## Overview - Adds assets to the responses of the coin selections endpoints. - Adds assets to the `/byron-wallets` endpoints. ## Comments Co-authored-by: Rodney Lorrimar <[email protected]>
Build failed:
#expected |
As far as I see assets are now present on Exemplary response:
|
64b0955
to
46f3009
Compare
Ah yes ... fixed now. I think that's the last one. ApiTransaction doesn't have an assets field corresponding to the amount field, but that's a known limitation (ADP-683). |
bors r+ |
2489: Add missing APIs for multi-asset r=rvl a=rvl ## Issue Number ADP-698 ## Overview - Adds assets to the responses of the coin selections endpoints. - Adds assets to the `/byron-wallets` endpoints. ## Comments Co-authored-by: Rodney Lorrimar <[email protected]>
bors retry |
Already running a review |
bors r- |
Canceled. (The integration tests were failing on macOS - really slowly.) |
bors r+ |
2489: Add missing APIs for multi-asset r=rvl a=rvl ## Issue Number ADP-698 ## Overview - Adds assets to the responses of the coin selections endpoints. - Adds assets to the `/byron-wallets` endpoints. ## Comments Co-authored-by: Rodney Lorrimar <[email protected]>
Build failed:
|
So that a set of token bundles can be compared.
46f3009
to
b458c8c
Compare
bors r+ |
2489: Add missing APIs for multi-asset r=rvl a=rvl ## Issue Number ADP-698 ## Overview - Adds assets to the responses of the coin selections endpoints. - Adds assets to the `/byron-wallets` endpoints. ## Comments 2492: API: get and list only assets associated with the wallet r=rvl a=rvl ### Issue Number ADP-603 / ADP-604 ### Overview - The list assets endpoint now returns all assets of the wallet, not just available assets. - The get asset endpoint checks that the asset id really is associated with the wallet. 2493: Let tests and cluster run in pre-mary eras again r=rvl a=rvl ### Issue Number ADP-695 ### Overview Conditionally fund the assets faucet based on era. Co-authored-by: Rodney Lorrimar <[email protected]>
Build failed (retrying...): |
2489: Add missing APIs for multi-asset r=rvl a=rvl ## Issue Number ADP-698 ## Overview - Adds assets to the responses of the coin selections endpoints. - Adds assets to the `/byron-wallets` endpoints. ## Comments Co-authored-by: Rodney Lorrimar <[email protected]>
Build failed:
|
bors r+ |
2489: Add missing APIs for multi-asset r=rvl a=rvl ## Issue Number ADP-698 ## Overview - Adds assets to the responses of the coin selections endpoints. - Adds assets to the `/byron-wallets` endpoints. ## Comments 2492: API: get and list only assets associated with the wallet r=rvl a=rvl ### Issue Number ADP-603 / ADP-604 ### Overview - The list assets endpoint now returns all assets of the wallet, not just available assets. - The get asset endpoint checks that the asset id really is associated with the wallet. 2493: Let tests and cluster run in pre-mary eras again r=rvl a=rvl ### Issue Number ADP-695 ### Overview Conditionally fund the assets faucet based on era. Co-authored-by: Rodney Lorrimar <[email protected]>
Build failed (retrying...): |
2489: Add missing APIs for multi-asset r=rvl a=rvl ## Issue Number ADP-698 ## Overview - Adds assets to the responses of the coin selections endpoints. - Adds assets to the `/byron-wallets` endpoints. ## Comments Co-authored-by: Rodney Lorrimar <[email protected]>
Build failed:
|
bors retry |
Build succeeded: |
Issue Number
ADP-698
Overview
/byron-wallets
endpoints.Comments