diff --git a/test/invariants/handlers/HandlerEBORequestCreator.t.sol b/test/invariants/handlers/HandlerEBORequestCreator.t.sol index 151227e..1cbeb2d 100644 --- a/test/invariants/handlers/HandlerEBORequestCreator.t.sol +++ b/test/invariants/handlers/HandlerEBORequestCreator.t.sol @@ -73,102 +73,4 @@ contract HandlerEBORequestCreator is BaseHandler { string memory chainId = _getRandomChainId(_chainIdSeed); eboRequestCreator.removeChain(chainId); } - - function handleSetRequestModuleData() external { - // Deploy new request module - EBORequestModule requestModule = new EBORequestModule(oracle, eboRequestCreator, arbitrable); - - // Set up request module parameters - IEBORequestModule.RequestParameters memory requestParams = IEBORequestModule.RequestParameters({ - epoch: START_EPOCH, - chainId: 'mainnet', - accountingExtension: IAccountingExtension(address(horizonAccountingExtension)), - paymentAmount: PAYMENT_AMOUNT - }); - - try eboRequestCreator.setRequestModuleData(address(requestModule), requestParams) { - eboRequestModule = requestModule; - } catch { - return; - } - } - - function handleSetResponseModuleData() external { - // Deploy new response module - BondedResponseModule responseModule = new BondedResponseModule(oracle); - - // Set up response module parameters - IBondedResponseModule.RequestParameters memory responseParams = IBondedResponseModule.RequestParameters({ - accountingExtension: IAccountingExtension(address(horizonAccountingExtension)), - bondToken: GRT, - bondSize: RESPONSE_BOND_SIZE, - deadline: RESPONSE_DEADLINE, - disputeWindow: RESPONSE_DISPUTE_WINDOW - }); - - try eboRequestCreator.setResponseModuleData(address(responseModule), responseParams) { - bondedResponseModule = responseModule; - } catch { - return; - } - } - - function handleSetDisputeModuleData() external { - // Deploy new dispute module - BondEscalationModule disputeModule = new BondEscalationModule(oracle); - - // Set up dispute module parameters - IBondEscalationModule.RequestParameters memory disputeParams = IBondEscalationModule.RequestParameters({ - accountingExtension: IBondEscalationAccounting(address(horizonAccountingExtension)), - bondToken: GRT, - bondSize: DISPUTE_BOND_SIZE, - maxNumberOfEscalations: MAX_NB_ESCALATION, - bondEscalationDeadline: DISPUTE_DEADLINE, - tyingBuffer: TYING_BUFFER, - disputeWindow: DISPUTE_DISPUTE_WINDOW - }); - - try eboRequestCreator.setDisputeModuleData(address(disputeModule), disputeParams) { - bondEscalationModule = disputeModule; - } catch { - return; - } - } - - function handleSetResolutionModuleData() external { - // Deploy new resolution module - ArbitratorModule resolutionModule = new ArbitratorModule(oracle); - - // Set up resolution module parameters - IArbitratorModule.RequestParameters memory resolutionParams = - IArbitratorModule.RequestParameters({arbitrator: address(councilArbitrator)}); - - try eboRequestCreator.setResolutionModuleData(address(resolutionModule), resolutionParams) { - arbitratorModule = resolutionModule; - } catch { - return; - } - } - - function handleSetFinalityModuleData() external { - // Deploy new finality module - EBOFinalityModule finalityModule = new EBOFinalityModule(oracle, eboRequestCreator, arbitrable); - - try eboRequestCreator.setFinalityModuleData(address(finalityModule)) { - eboFinalityModule = finalityModule; - } catch { - return; - } - } - - function handleSetEpochManager() external { - // Deploy new epoch manager - IEpochManager manager = IEpochManager(address(new MockEpochManager())); - - try eboRequestCreator.setEpochManager(epochManager) { - epochManager = manager; - } catch { - return; - } - } }