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 Group API #457

Merged
merged 2 commits into from
Jan 12, 2024
Merged

Add Group API #457

merged 2 commits into from
Jan 12, 2024

Conversation

NicolasDorier
Copy link
Member

@NicolasDorier NicolasDorier commented Jan 9, 2024

Supersede #450
This add a new type of tracked source GroupTrackedSource.

You can create a group and add other tracked sources as children to it.

Any addresses generated by a child will be added automatically to the group.
Removing a children also remove its addresses from the group.

On top of this, I added an API to add addresses directly to a group via /cryptos/{cryptoCode}/groups/{groupId}/addresses API.

Some routes for group API need to be accessed through /cryptos and others directly through /groups.

Last, I removed abstraction of tracked-sources in the routes of NBXplorer. This is due to the fact that many routes doesn't make sense for all the tracked-sources. (For example CreatePSBT depends on the ability to be able to generate addresses, which a group doesn't have)

@NicolasDorier NicolasDorier force-pushed the groupapi branch 3 times, most recently from d45f7eb to decdf06 Compare January 10, 2024 12:11
@NicolasDorier NicolasDorier merged commit 7d70e72 into dgarage:master Jan 12, 2024
1 check passed
@NicolasDorier
Copy link
Member Author

Got ACK from Kukks, we can adjust later if we need more.

@NicolasDorier NicolasDorier deleted the groupapi branch January 12, 2024 00:10
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.

1 participant