Skip to content

Commit 90e61f6

Browse files
authored
Add last_block_time to light bills endpoint (#646)
1 parent b784207 commit 90e61f6

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 0.4.8
2+
3+
* Fix reject block propagation
4+
* Add `last_block_time` to `LightBitcreditBillResult`
5+
16
# 0.4.7
27

38
* Added basic Dev Mode

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.4.7"
2+
version = "0.4.8"
33
edition = "2024"
44
license = "MIT"
55

crates/bcr-ebill-core/src/bill/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ pub struct LightBitcreditBillResult {
477477
pub issue_date: String,
478478
pub time_of_drawing: u64,
479479
pub time_of_maturity: u64,
480+
pub last_block_time: u64,
480481
}
481482

482483
impl From<BitcreditBillResult> for LightBitcreditBillResult {
@@ -493,6 +494,7 @@ impl From<BitcreditBillResult> for LightBitcreditBillResult {
493494
issue_date: value.data.issue_date,
494495
time_of_drawing: value.data.time_of_drawing,
495496
time_of_maturity: value.data.time_of_maturity,
497+
last_block_time: value.status.last_block_time,
496498
}
497499
}
498500
}

crates/bcr-ebill-wasm/src/data/bill.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ pub struct LightBitcreditBillWeb {
741741
pub issue_date: String,
742742
pub time_of_drawing: u64,
743743
pub time_of_maturity: u64,
744+
pub last_block_time: u64,
744745
}
745746

746747
impl From<LightBitcreditBillResult> for LightBitcreditBillWeb {
@@ -757,6 +758,7 @@ impl From<LightBitcreditBillResult> for LightBitcreditBillWeb {
757758
issue_date: val.issue_date,
758759
time_of_drawing: val.time_of_drawing,
759760
time_of_maturity: val.time_of_maturity,
761+
last_block_time: val.last_block_time,
760762
}
761763
}
762764
}

0 commit comments

Comments
 (0)