Skip to content

Commit

Permalink
chore: nut17 import oordering
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Nov 10, 2024
1 parent d46d4c5 commit 4e2c013
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
14 changes: 8 additions & 6 deletions crates/cdk/src/nuts/nut17/mod.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
//! Specific Subscription for the cdk crate
use super::{BlindSignature, CurrencyUnit, PaymentMethod};
use std::{ops::Deref, sync::Arc};

use serde::{Deserialize, Serialize};

mod on_subscription;

use crate::cdk_database::{self, MintDatabase};
pub use crate::pub_sub::SubId;
use crate::nuts::{BlindSignature, CurrencyUnit, PaymentMethod};
use crate::{
nuts::{
MeltQuoteBolt11Response, MeltQuoteState, MintQuoteBolt11Response, MintQuoteState,
ProofState,
},
pub_sub::{self, Index, Indexable, SubscriptionGlobalId},
};
use serde::{Deserialize, Serialize};
use std::{ops::Deref, sync::Arc};

mod on_subscription;

pub use crate::pub_sub::SubId;
pub use on_subscription::OnSubscription;

/// Subscription Parameter according to the standard
Expand Down
3 changes: 2 additions & 1 deletion crates/cdk/src/nuts/nut17/on_subscription.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
//! On Subscription
//!
//! This module contains the code that is triggered when a new subscription is created.
use std::{collections::HashMap, sync::Arc};

use super::{Kind, NotificationPayload};
use crate::{
cdk_database::{self, MintDatabase},
nuts::{MeltQuoteBolt11Response, MintQuoteBolt11Response, ProofState, PublicKey},
pub_sub::OnNewSubscription,
};
use std::{collections::HashMap, sync::Arc};

#[derive(Default)]
/// Subscription Init
Expand Down

0 comments on commit 4e2c013

Please sign in to comment.