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.
 
 
 
 
 
 

17 lines
412 B

package com.xsn.explorer.models
import play.api.libs.functional.syntax._
import play.api.libs.json.{Reads, __}
case class TransactionVIN(txid: TransactionId, voutIndex: Int)
object TransactionVIN {
implicit val reads: Reads[TransactionVIN] = {
val builder = (__ \ 'txid).read[TransactionId] and (__ \ 'vout).read[Int]
builder.apply { (txid, index) =>
TransactionVIN(txid, index)
}
}
}