mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-11 08:06:59 +01:00
chore: nut17 import oordering
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
//! 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,
|
||||
@@ -10,11 +15,8 @@ use crate::{
|
||||
},
|
||||
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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user