use of org.aion.precompiled.contracts.ATB.BridgeStorageConnector in project aion by aionnetwork.
the class BridgeControllerOwnerTest method beforeEach.
@Before
public void beforeEach() {
IExternalStateForPrecompiled worldState = ExternalStateForTests.usingDefaultRepository();
this.connector = new BridgeStorageConnector(worldState, CONTRACT_ADDR);
PrecompiledTransactionContext context = dummyContext();
this.logs = context.getLogs();
this.controller = new BridgeController(connector, this.logs, CONTRACT_ADDR, OWNER_ADDR);
}
use of org.aion.precompiled.contracts.ATB.BridgeStorageConnector in project aion by aionnetwork.
the class BridgeRingInitializationTest method beforeEach.
@Before
public void beforeEach() {
IExternalStateForPrecompiled worldState = ExternalStateForTests.usingDefaultRepository();
this.connector = new BridgeStorageConnector(worldState, CONTRACT_ADDR);
this.controller = new BridgeController(connector, dummyContext().getLogs(), CONTRACT_ADDR, OWNER_ADDR);
this.controller.initialize();
}
use of org.aion.precompiled.contracts.ATB.BridgeStorageConnector in project aion by aionnetwork.
the class BridgeStorageConnectorTest method beforeEach.
@Before
public void beforeEach() {
IExternalStateForPrecompiled worldState = ExternalStateForTests.usingDefaultRepository();
this.connector = new BridgeStorageConnector(worldState, contractAddress);
}
use of org.aion.precompiled.contracts.ATB.BridgeStorageConnector in project aion by aionnetwork.
the class BridgeControllerRingTest method beforeEach.
@Before
public void beforeEach() {
IExternalStateForPrecompiled worldState = ExternalStateForTests.usingDefaultRepository();
this.connector = new BridgeStorageConnector(worldState, CONTRACT_ADDR);
this.controller = new BridgeController(connector, dummyContext().getLogs(), CONTRACT_ADDR, OWNER_ADDR);
this.controller.initialize();
byte[][] memberList = new byte[members.length][];
for (int i = 0; i < members.length; i++) {
memberList[i] = members[i].getAddress();
}
// setup initial ring structure
this.controller.ringInitialize(OWNER_ADDR.toByteArray(), memberList);
}
Aggregations