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

implement UTxO by Address local state query #341

Merged
merged 35 commits into from
Dec 12, 2023

Conversation

falcucci
Copy link
Contributor

@falcucci falcucci commented Nov 26, 2023

fixes #317

@falcucci falcucci marked this pull request as ready for review November 26, 2023 23:37
responses

* adding a new parameter to the `get_utxo_by_address` query to allow for multiple addresses to be passed in.
* adding a new tag to support address encoding using [minicbor](https://github.com/agilulf/minicbor).
* moving the `address` type from `pallas-addresses` to `pallas`.
* updating imports and usages of `miniprotocols` to use the `pallas` namespace.
pallas-network/Cargo.toml Outdated Show resolved Hide resolved
the changes made to `codec.rs` include:
- replacing `metadatum` with `value` in the `decode` and `encode` implementations for `request`
- replacing `metadatum` with `value` in the `decode` and `encode` implementations for `metadatum`
- replacing `metadatum` with `value` in the definition of `multiasset` in the `mod.rs` file
updates the codec and mod modules in the `pallas-network` project to fix a bug. it removes the `int` type from the `pallas_codec::utils` module in the `mod.rs` file, and removes the `tag` type from the `pallas_codec::minicbor` module in the `codec.rs` file.
the changes include:
- updating `use pallas_codec::utils` to include `bytes`, `tagwrap`, and `anycbor`
- adding a `hex_datum` string with a corresponding `datum` byte array and a `tag`
- adding an `inline_datum` field to the `localstate::queries_v16::values` values
- adding the `inline_datum` to the `keyvaluepairs` array for the `utxo` query
- updating the `keyvaluepairs` array for the `utxo` query response
- updating the `keyvaluepairs` array for the `contract` query
- updating the `keyvaluepairs` array for the `contract` query response
@scarmuega scarmuega merged commit 6f1b152 into txpipe:main Dec 12, 2023
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.

feat: implement GetUTxOByAddress local state query
2 participants