Skip to content
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 support for the QueryUTxO via the new IPC API #2238

Merged
merged 2 commits into from
Jan 7, 2021

Conversation

dcoutts
Copy link
Contributor

@dcoutts dcoutts commented Dec 22, 2020

There are still quite a few queries to cover. This covers just the
QueryUTxO one. This requires exporting a UTxO type.

For now the UTxO type has no interesting instances but the newtype
wrapper is exposed which just uses the other API types in a simple way.

newtype UTxO era = UTxO (Map TxIn (TxOut era))

Comment on lines 39 to 40
Cardano.Api.IPC
Cardano.Api.Query
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you also need to remove these from other-modules

There are still quite a few queries to cover. This covers just the
QueryUTxO one. This requires exporting a UTxO type.

For now the UTxO type has no interesting instances but the newtype
wrapper is exposed which just uses the other API types in a simple way.

newtype UTxO era = UTxO (Map TxIn (TxOut era))

Co-authored-by: Jordan Millar <jordan.millar@iohk.io>
Copy link
Contributor Author

@dcoutts dcoutts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jimbo4350 Thanks for the rebasing! Looks good.

@dcoutts
Copy link
Contributor Author

dcoutts commented Jan 5, 2021

bors merge

iohk-bors bot added a commit that referenced this pull request Jan 5, 2021
2238: Add support for the QueryUTxO via the new IPC API r=dcoutts a=dcoutts

There are still quite a few queries to cover. This covers just the
QueryUTxO one. This requires exporting a UTxO type.

For now the UTxO type has no interesting instances but the newtype
wrapper is exposed which just uses the other API types in a simple way.
```
newtype UTxO era = UTxO (Map TxIn (TxOut era))
```

Co-authored-by: Duncan Coutts <duncan@well-typed.com>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jan 5, 2021

Build failed:

@dcoutts
Copy link
Contributor Author

dcoutts commented Jan 5, 2021

bors merge

iohk-bors bot added a commit that referenced this pull request Jan 5, 2021
2238: Add support for the QueryUTxO via the new IPC API r=dcoutts a=dcoutts

There are still quite a few queries to cover. This covers just the
QueryUTxO one. This requires exporting a UTxO type.

For now the UTxO type has no interesting instances but the newtype
wrapper is exposed which just uses the other API types in a simple way.
```
newtype UTxO era = UTxO (Map TxIn (TxOut era))
```

Co-authored-by: Duncan Coutts <duncan@well-typed.com>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jan 5, 2021

Build failed:

@dcoutts
Copy link
Contributor Author

dcoutts commented Jan 7, 2021

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jan 7, 2021

@iohk-bors iohk-bors bot merged commit 96f88a7 into master Jan 7, 2021
@iohk-bors iohk-bors bot deleted the dcoutts/api-ipc-query-utxo branch January 7, 2021 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants