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.
 
 
 
 
 
 

21 lines
669 B

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, value: BigDecimal)
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]
}