Skip to content

Commit 6aede9d

Browse files
authored
remove unneeded NodeId trait (#552)
1 parent 36133f4 commit 6aede9d

File tree

16 files changed

+27
-38
lines changed

16 files changed

+27
-38
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 0.3.17
2+
3+
* Use NodeId and BillId types internally instead of strings
4+
* Removed `NodeId` trait and replaced it with method
5+
16
# 0.3.16
27

38
* Set the BTC network in the identity and check, if the persisted network is the same as the one configured in the application, failing if it doesn't.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace.package]
2-
version = "0.3.16"
2+
version = "0.3.17"
33
edition = "2024"
44
license = "MIT"
55

crates/bcr-ebill-api/src/service/bill_service/blocks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use bcr_ebill_core::{
99
BillAcceptBlockData, BillEndorseBlockData, BillMintBlockData,
1010
BillOfferToSellBlockData, BillRecourseBlockData, BillRecourseReasonBlockData,
1111
BillRejectBlockData, BillRejectToBuyBlockData, BillRequestRecourseBlockData,
12-
BillRequestToAcceptBlockData, BillRequestToPayBlockData, BillSellBlockData, NodeId,
12+
BillRequestToAcceptBlockData, BillRequestToPayBlockData, BillSellBlockData,
1313
},
1414
},
1515
company::{CompanyBlock, CompanySignCompanyBillBlockData},

crates/bcr-ebill-api/src/service/bill_service/data_fetching.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use super::{Error, Result};
55
use bcr_ebill_core::ValidationError;
66
use bcr_ebill_core::bill::BillMintStatus;
77
use bcr_ebill_core::bill::validation::get_expiration_deadline_base_for_req_to_pay;
8-
use bcr_ebill_core::blockchain::bill::block::NodeId;
98
use bcr_ebill_core::constants::RECOURSE_DEADLINE_SECONDS;
109
use bcr_ebill_core::contact::{BillParticipant, Contact};
1110
use bcr_ebill_core::identity::IdentityType;

crates/bcr-ebill-api/src/service/bill_service/issue.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ use bcr_ebill_core::{
55
bill::{BillIssueData, BillKeys, BillType, BitcreditBill, validation::validate_bill_issue},
66
blockchain::{
77
Blockchain,
8-
bill::{
9-
BillBlockchain,
10-
block::{BillIssueBlockData, NodeId},
11-
},
8+
bill::{BillBlockchain, block::BillIssueBlockData},
129
},
1310
contact::{BillAnonParticipant, BillIdentParticipant, BillParticipant},
1411
util::BcrKeys,

crates/bcr-ebill-api/src/service/bill_service/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ pub mod tests {
237237
BillEndorseBlockData, BillMintBlockData, BillOfferToSellBlockData,
238238
BillParticipantBlockData, BillRecourseReasonBlockData, BillRejectBlockData,
239239
BillRequestRecourseBlockData, BillRequestToAcceptBlockData,
240-
BillRequestToPayBlockData, BillSellBlockData, BillSignatoryBlockData, NodeId,
240+
BillRequestToPayBlockData, BillSellBlockData, BillSignatoryBlockData,
241241
},
242242
},
243243
},

crates/bcr-ebill-api/src/service/bill_service/payment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use bcr_ebill_core::{
77
Blockchain,
88
bill::{
99
BillOpCode, OfferToSellWaitingForPayment, RecourseWaitingForPayment,
10-
block::{BillRecourseReasonBlockData, NodeId},
10+
block::BillRecourseReasonBlockData,
1111
},
1212
},
1313
company::{Company, CompanyKeys},

crates/bcr-ebill-api/src/service/bill_service/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use bcr_ebill_core::bill::{
3131
BillIssueData, BillValidateActionData, PastPaymentDataPayment, PastPaymentDataRecourse,
3232
PastPaymentDataSell, PastPaymentResult, PastPaymentStatus,
3333
};
34-
use bcr_ebill_core::blockchain::bill::block::{BillParticipantBlockData, NodeId};
34+
use bcr_ebill_core::blockchain::bill::block::BillParticipantBlockData;
3535
use bcr_ebill_core::company::{Company, CompanyKeys};
3636
use bcr_ebill_core::constants::{
3737
ACCEPT_DEADLINE_SECONDS, PAYMENT_DEADLINE_SECONDS, RECOURSE_DEADLINE_SECONDS,

crates/bcr-ebill-api/src/service/notification_service/default_service.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use std::sync::Arc;
33

44
use async_trait::async_trait;
55
use bcr_ebill_core::blockchain::BlockchainType;
6-
use bcr_ebill_core::blockchain::bill::block::NodeId;
76
use bcr_ebill_core::contact::{BillAnonParticipant, BillParticipant, ContactType};
87
use bcr_ebill_persistence::nostr::{
98
NostrChainEvent, NostrChainEventStoreApi, NostrQueuedMessage, NostrQueuedMessageStoreApi,

crates/bcr-ebill-api/src/service/notification_service/nostr.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
use async_trait::async_trait;
2-
use bcr_ebill_core::{
3-
blockchain::{BlockchainType, bill::block::NodeId},
4-
contact::BillParticipant,
5-
util::crypto,
6-
};
2+
use bcr_ebill_core::{blockchain::BlockchainType, contact::BillParticipant, util::crypto};
73
use bcr_ebill_transport::{
84
chain_keys::ChainKeyServiceApi,
95
event::EventEnvelope,

0 commit comments

Comments
 (0)