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 webhook status include list #64

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

dangeross
Copy link
Contributor

This PR implements changes to the swap requests to add the optional webhook status include list.

See BoltzExchange/boltz-backend#632

@@ -589,10 +589,12 @@ pub struct MrhResponse {

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Webhook {
pub struct SubmarineWebhook {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of having three types for webhook which only differ in pub status: Option<Vec<SubSwapStates>>, couldn't we just use a generic for the possible states?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, updated to use a generic type for the Webhook status list

@michael1011 michael1011 merged commit 70c1267 into SatoshiPortal:trunk Aug 7, 2024
4 checks passed
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.

2 participants