All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sss.openstar.nodebuilder.TestBalanceLedgerBuilder.scala Maven / Gradle / Ivy

package sss.openstar.nodebuilder

import sss.openstar.MessageKeys
import sss.openstar.balanceledger.TestBalanceLedger
import sss.openstar.chains.Chains.GlobalChainIdBuilder
import sss.openstar.common.builders.KeyFactoryBuilder
import sss.openstar.db.Builder.RequireDb
import sss.openstar.ledger.LedgerId
import Currencies.TestStarz

trait TestBalanceLedgerBuilder {
  self: NodeConfigBuilder
    with RequireDb
    with GlobalChainIdBuilder
    with GlobalTableNameTagBuilder
    with BlockChainBuilder
    with IdentityServiceBuilder
    with AmountBuilderBuilder
    with KeyFactoryBuilder =>

  lazy val testBalanceLedgerId = LedgerId(MessageKeys.TestBalanceLedger)

  lazy val testStarzBalanceLedger: TestBalanceLedger[TestStarz] = TestBalanceLedger(
    testBalanceLedgerId,
    findPublicKeyFTxOpt,
    keysFactoryLookup
  )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy