Search in sources :

Example 16 with Builder

use of org.aion.zero.impl.blockchain.StandaloneBlockchain.Builder in project aion by aionnetwork.

the class BalanceTransferConsensusTest method setup.

@Before
public void setup() {
    Bundle bundle = new Builder().withDefaultAccounts(Collections.singletonList(org.aion.crypto.ECKeyFac.inst().fromPrivate(SENDER_KEY))).withValidatorConfiguration("simple").withAvmEnabled().build();
    this.blockchain = bundle.bc;
    AvmTestConfig.supportOnlyAvmVersion1();
}
Also used : Bundle(org.aion.zero.impl.blockchain.StandaloneBlockchain.Bundle) Builder(org.aion.zero.impl.blockchain.StandaloneBlockchain.Builder) Before(org.junit.Before)

Example 17 with Builder

use of org.aion.zero.impl.blockchain.StandaloneBlockchain.Builder in project aion by aionnetwork.

the class FvmBalanceTransferConsensusTest method setup.

@Before
public void setup() {
    Bundle bundle = new Builder().withDefaultAccounts(Collections.singletonList(org.aion.crypto.ECKeyFac.inst().fromPrivate(SENDER_KEY))).withValidatorConfiguration("simple").withAvmEnabled().build();
    this.blockchain = bundle.bc;
    AvmTestConfig.supportOnlyAvmVersion1();
}
Also used : Bundle(org.aion.zero.impl.blockchain.StandaloneBlockchain.Bundle) Builder(org.aion.zero.impl.blockchain.StandaloneBlockchain.Builder) Before(org.junit.Before)

Aggregations

Builder (org.aion.zero.impl.blockchain.StandaloneBlockchain.Builder)17 StandaloneBlockchain (org.aion.zero.impl.blockchain.StandaloneBlockchain)15 AionTxReceipt (org.aion.base.AionTxReceipt)14 ImportResult (org.aion.zero.impl.core.ImportResult)14 AionBlockSummary (org.aion.zero.impl.types.AionBlockSummary)14 Block (org.aion.zero.impl.types.Block)14 Test (org.junit.Test)14 BigInteger (java.math.BigInteger)13 AionAddress (org.aion.types.AionAddress)5 Bundle (org.aion.zero.impl.blockchain.StandaloneBlockchain.Bundle)3 Before (org.junit.Before)3 AccountState (org.aion.base.AccountState)2 ContractInformation (org.aion.zero.impl.db.ContractInformation)2 AionTransaction (org.aion.base.AionTransaction)1 InternalTransaction (org.aion.types.InternalTransaction)1 MiningBlock (org.aion.zero.impl.types.MiningBlock)1