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

mint: fix REST encoding of mint RPC #319

Merged
merged 3 commits into from
Jun 1, 2023
Merged

mint: fix REST encoding of mint RPC #319

merged 3 commits into from
Jun 1, 2023

Conversation

guggero
Copy link
Member

@guggero guggero commented May 23, 2023

This is a follow-up to #286 which allowed developers to specify any raw
bytes as a hex string in the REST API (instead of the library default of
base64).
The only area where that change didn't apply is the URI part of REST
calls. For those we need to use a string field to support hex encoding,
the same way we already did for the universe REST API.

@guggero guggero requested review from Roasbeef and jharveyb May 23, 2023 21:14
This is a follow-up to #286 which allowed developers to specify any raw
bytes as a hex string in the REST API (instead of the library default of
base64).
The only area where that change didn't apply is the URI part of REST
calls. For those we need to use a string field to support hex encoding,
the same way we already did for the universe REST API.
This is a purely cosmetic change that just makes it a bit more apparent
that we are using different URIs for the same gRPC method to make usage
of the universe API easier for REST users.
Copy link
Collaborator

@jharveyb jharveyb left a comment

Choose a reason for hiding this comment

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

LGTM - IIUC we already display these fields in hex so I think copy & paste should continue working.

@lightninglabs-deploy
Copy link

@Roasbeef: review reminder

Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

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

LGTM 🧊


- selector: universerpc.Universe.QueryAssetRoots
get: "/v1/taproot-assets/universe/roots/group-key/{id.group_key_str}"
additional_bindings:
Copy link
Member

Choose a reason for hiding this comment

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

👍

@Roasbeef Roasbeef added this pull request to the merge queue Jun 1, 2023
Merged via the queue into main with commit f5b31f3 Jun 1, 2023
11 checks passed
@guggero guggero deleted the mint-rest-hex branch June 1, 2023 07:06
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

4 participants