Search in sources :

Example 56 with BtcLockSenderProvider

use of co.rsk.peg.btcLockSender.BtcLockSenderProvider in project rskj by rsksmart.

the class BridgeSupportRSKIP220NewMethodsTest method getBridgeSupport.

private BridgeSupport getBridgeSupport(BridgeConstants constants, BtcBlockStoreWithCache.Factory blockStoreFactory, ActivationConfig.ForBlock activations) {
    BridgeStorageProvider provider = mock(BridgeStorageProvider.class);
    Repository track = mock(Repository.class);
    BridgeEventLogger eventLogger = mock(BridgeEventLogger.class);
    BtcLockSenderProvider btcLockSenderProvider = mock(BtcLockSenderProvider.class);
    Block executionBlock = mock(Block.class);
    return new BridgeSupport(constants, provider, eventLogger, btcLockSenderProvider, new PeginInstructionsProvider(), track, executionBlock, new Context(constants.getBtcParams()), new FederationSupport(constants, provider, executionBlock), blockStoreFactory, activations);
}
Also used : BtcLockSenderProvider(co.rsk.peg.btcLockSender.BtcLockSenderProvider) Repository(org.ethereum.core.Repository) PeginInstructionsProvider(co.rsk.peg.pegininstructions.PeginInstructionsProvider) Block(org.ethereum.core.Block) BridgeEventLogger(co.rsk.peg.utils.BridgeEventLogger)

Aggregations

BtcLockSenderProvider (co.rsk.peg.btcLockSender.BtcLockSenderProvider)56 PeginInstructionsProvider (co.rsk.peg.pegininstructions.PeginInstructionsProvider)51 Test (org.junit.Test)49 ActivationConfig (org.ethereum.config.blockchain.upgrades.ActivationConfig)47 RskAddress (co.rsk.core.RskAddress)41 ActivationConfigsForTest (org.ethereum.config.blockchain.upgrades.ActivationConfigsForTest)40 MutableRepository (org.ethereum.db.MutableRepository)40 Repository (org.ethereum.core.Repository)38 Block (org.ethereum.core.Block)35 InternalTransaction (org.ethereum.vm.program.InternalTransaction)35 co.rsk.bitcoinj.core (co.rsk.bitcoinj.core)28 SimpleRskTransaction (co.rsk.peg.simples.SimpleRskTransaction)26 Transaction (org.ethereum.core.Transaction)26 PegTestUtils.createBaseInputScriptThatSpendsFromTheFederation (co.rsk.peg.PegTestUtils.createBaseInputScriptThatSpendsFromTheFederation)22 PegTestUtils.createBaseRedeemScriptThatSpendsFromTheFederation (co.rsk.peg.PegTestUtils.createBaseRedeemScriptThatSpendsFromTheFederation)22 ECKey (org.ethereum.crypto.ECKey)21 LockWhitelist (co.rsk.peg.whitelist.LockWhitelist)15 Script (co.rsk.bitcoinj.script.Script)14 BtcLockSender (co.rsk.peg.btcLockSender.BtcLockSender)10 BtcTransaction (co.rsk.bitcoinj.core.BtcTransaction)9