Skip to content

Commit

Permalink
test(medusa): remove handlers around setters
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJabberwock committed Nov 25, 2024
1 parent 1c33374 commit 98303e6
Showing 1 changed file with 0 additions and 98 deletions.
98 changes: 0 additions & 98 deletions test/invariants/handlers/HandlerEBORequestCreator.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit 98303e6

Please sign in to comment.