@@ -4,7 +4,7 @@ import com.alexitc.playsonify.models.ordering.OrderingQuery
4
4
import com .alexitc .playsonify .models .pagination .{Limit , Offset , PaginatedQuery }
5
5
import com .xsn .explorer .models .LightWalletTransaction
6
6
import com .xsn .explorer .models .persisted .Transaction
7
- import com .xsn .explorer .services .{AddressService , TransactionService }
7
+ import com .xsn .explorer .services .{AddressService , TPoSContractService , TransactionService }
8
8
import com .xsn .explorer .util .Extensions .BigDecimalExt
9
9
import controllers .common .{Codecs , MyJsonController , MyJsonControllerComponents }
10
10
import javax .inject .Inject
@@ -13,6 +13,7 @@ import play.api.libs.json._
13
13
class AddressesController @ Inject () (
14
14
addressService : AddressService ,
15
15
transactionService : TransactionService ,
16
+ tposContractService : TPoSContractService ,
16
17
cc : MyJsonControllerComponents )
17
18
extends MyJsonController (cc) {
18
19
@@ -60,6 +61,10 @@ class AddressesController @Inject() (
60
61
def getUnspentOutputs (address : String ) = public { _ =>
61
62
addressService.getUnspentOutputs(address)
62
63
}
64
+
65
+ def getTPoSContracts (address : String ) = public { _ =>
66
+ tposContractService.getBy(address)
67
+ }
63
68
}
64
69
65
70
object AddressesController {
0 commit comments