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

Includes buyer & seller pubkeys and order creation time upon order transition to Active state #178

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ uuid = { version = "1.3.0", features = [
"serde",
] }
reqwest = { version = "0.11", features = ["json"] }
mostro-core = "0.4.5"
mostro-core = { git = "https://github.com/bilthon/mostro-core.git", branch = "feat_pubkeys_to_smallorder" }
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
config = "0.13.3"
Expand Down
4 changes: 3 additions & 1 deletion src/app/add_invoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ pub async fn add_invoice_action(
order.buyer_pubkey.as_ref().cloned(),
order.seller_pubkey.as_ref().cloned(),
None,
None,
Some(order.created_at),
order.buyer_pubkey.clone(),
order.seller_pubkey.clone(),
);
// We publish a new replaceable kind nostr event with the status updated
// and update on local database the status and new event id
Expand Down
4 changes: 3 additions & 1 deletion src/flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ pub async fn hold_invoice_paid(hash: &str) {
None,
None,
None,
None,
Some(order.created_at),
order.buyer_pubkey.clone(),
order.seller_pubkey.clone(),
);
let status;

Expand Down
2 changes: 2 additions & 0 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,9 @@ pub async fn set_market_order_sats_amount(
None,
None,
None,
Some(order.created_at),
None,
None
);
// We create a Message
let message = Message::new_order(
Expand Down