Browse Source
This is a piece for #18, we need to retrieve paginated transactions for a given address. NOTE: This commit doesn't include tests in order to work in the frontend concurrently, tests will be included before the release.prometheus-integration
6 changed files with 116 additions and 6 deletions
@ -0,0 +1,16 @@ |
|||||
|
package com.xsn.explorer.models |
||||
|
|
||||
|
import play.api.libs.json.{Json, Writes} |
||||
|
|
||||
|
case class TransactionWithValues( |
||||
|
id: TransactionId, |
||||
|
blockhash: Blockhash, |
||||
|
time: Long, |
||||
|
size: Size, |
||||
|
sent: BigDecimal, |
||||
|
received: BigDecimal) |
||||
|
|
||||
|
object TransactionWithValues { |
||||
|
|
||||
|
implicit val writes: Writes[TransactionWithValues] = Json.writes[TransactionWithValues] |
||||
|
} |
Loading…
Reference in new issue