@@ -26,9 +26,9 @@ pub struct Tx {
2626 pub coins : Coin ,
2727 #[ serde( skip_serializing_if = "Option::is_none" ) ]
2828 pub memo : Option < String > ,
29- // The timestamp and block height are optional so that the JSON schema
29+ // The block time and block height are optional so that the JSON schema
3030 // reflects that some SNIP-20 contracts may not include this info.
31- pub timestamp : Option < u64 > ,
31+ pub block_time : Option < u64 > ,
3232 pub block_height : Option < u64 > ,
3333}
3434
@@ -64,7 +64,7 @@ pub struct RichTx {
6464 pub coins : Coin ,
6565 #[ serde( skip_serializing_if = "Option::is_none" ) ]
6666 pub memo : Option < String > ,
67- pub timestamp : u64 ,
67+ pub block_time : u64 ,
6868 pub block_height : u64 ,
6969}
7070
@@ -80,7 +80,7 @@ struct StoredLegacyTransfer {
8080 receiver : CanonicalAddr ,
8181 coins : Coin ,
8282 memo : Option < String > ,
83- timestamp : u64 ,
83+ block_time : u64 ,
8484 block_height : u64 ,
8585}
8686
@@ -93,7 +93,7 @@ impl StoredLegacyTransfer {
9393 receiver : api. human_address ( & self . receiver ) ?,
9494 coins : self . coins ,
9595 memo : self . memo ,
96- timestamp : Some ( self . timestamp ) ,
96+ block_time : Some ( self . block_time ) ,
9797 block_height : Some ( self . block_height ) ,
9898 } ;
9999 Ok ( tx)
@@ -239,7 +239,7 @@ struct StoredRichTx {
239239 action : StoredTxAction ,
240240 coins : Coin ,
241241 memo : Option < String > ,
242- timestamp : u64 ,
242+ block_time : u64 ,
243243 block_height : u64 ,
244244}
245245
@@ -256,7 +256,7 @@ impl StoredRichTx {
256256 action,
257257 coins,
258258 memo,
259- timestamp : block. time ,
259+ block_time : block. time ,
260260 block_height : block. height ,
261261 }
262262 }
@@ -267,7 +267,7 @@ impl StoredRichTx {
267267 action : self . action . into_humanized ( api) ?,
268268 coins : self . coins ,
269269 memo : self . memo ,
270- timestamp : self . timestamp ,
270+ block_time : self . block_time ,
271271 block_height : self . block_height ,
272272 } )
273273 }
@@ -279,7 +279,7 @@ impl StoredRichTx {
279279 action,
280280 coins : transfer. coins ,
281281 memo : transfer. memo ,
282- timestamp : transfer. timestamp ,
282+ block_time : transfer. block_time ,
283283 block_height : transfer. block_height ,
284284 }
285285 }
@@ -314,7 +314,7 @@ pub fn store_transfer<S: Storage>(
314314 receiver : receiver. clone ( ) ,
315315 coins,
316316 memo,
317- timestamp : block. time ,
317+ block_time : block. time ,
318318 block_height : block. height ,
319319 } ;
320320 let tx = StoredRichTx :: from_stored_legacy_transfer ( transfer. clone ( ) ) ;
0 commit comments