You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
650 B
22 lines
650 B
6 years ago
|
package com.xsn.explorer.models
|
||
|
|
||
|
import play.api.libs.json.{Json, Writes}
|
||
|
|
||
|
case class LightWalletTransaction(
|
||
|
id: TransactionId,
|
||
|
blockhash: Blockhash,
|
||
|
size: Size,
|
||
|
time: Long,
|
||
|
inputs: List[LightWalletTransaction.Input],
|
||
|
outputs: List[LightWalletTransaction.Output])
|
||
|
|
||
|
object LightWalletTransaction {
|
||
|
|
||
|
case class Input(txid: TransactionId, index: Int)
|
||
|
case class Output(index: Int, value: BigDecimal)
|
||
|
|
||
|
implicit val inputWrites: Writes[Input] = Json.writes[Input]
|
||
|
implicit val outputWrites: Writes[Output] = Json.writes[Output]
|
||
|
implicit val writes: Writes[LightWalletTransaction] = Json.writes[LightWalletTransaction]
|
||
|
}
|