Skip to content

Commit

Permalink
add MainnetIntegration.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbir committed Sep 9, 2024
1 parent ff9ecd6 commit e850879
Show file tree
Hide file tree
Showing 2 changed files with 880 additions and 21 deletions.
42 changes: 21 additions & 21 deletions test/HoleskyIntegration.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ contract HoleskyIntegration is Test {
factory = new ProofSubmitterFactory();
}

function test_ProofSubmitterGettingBalance() external {
function test_ProofSubmitterGettingBalance_Holesky() external {
uint256 deposited = 10 ether;

vm.startPrank(clientAddress);
Expand All @@ -74,7 +74,7 @@ contract HoleskyIntegration is Test {
assertEq(deposited, actualBalance);
}

function test_ProofSubmitterExecuteOnPodFromOwner() external {
function test_ProofSubmitterExecuteOnPodFromOwner_Holesky() external {
uint256 deposited = 10 ether;

vm.startPrank(clientAddress);
Expand All @@ -99,7 +99,7 @@ contract HoleskyIntegration is Test {
vm.stopPrank();
}

function test_ProofSubmitterExecuteOnRewardsCoordinatorFromOwner()
function test_ProofSubmitterExecuteOnRewardsCoordinatorFromOwner_Holesky()
external
{
uint256 deposited = 10 ether;
Expand All @@ -122,7 +122,7 @@ contract HoleskyIntegration is Test {
vm.stopPrank();
}

function test_ProofSubmitterExecuteOnPodFromServiceViaEntryPoint()
function test_ProofSubmitterExecuteOnPodFromServiceViaEntryPoint_Holesky()
external
{
uint256 deposited = 10 ether;
Expand Down Expand Up @@ -178,7 +178,7 @@ contract HoleskyIntegration is Test {
);
}

function test_ProofSubmitterExecuteOnRewardsCoordinatorFromServiceViaEntryPoint()
function test_ProofSubmitterExecuteOnRewardsCoordinatorFromServiceViaEntryPoint_Holesky()
external
{
uint256 deposited = 10 ether;
Expand Down Expand Up @@ -207,7 +207,7 @@ contract HoleskyIntegration is Test {
);
}

function test_WithdrawAndTopUp() external {
function test_WithdrawAndTopUp_Holesky() external {
uint256 deposited = 10 ether;

vm.startPrank(clientAddress);
Expand Down Expand Up @@ -274,7 +274,7 @@ contract HoleskyIntegration is Test {
vm.stopPrank();
}

function test_OnlyOwnerModifier() external {
function test_OnlyOwnerModifier_Holesky() external {
vm.startPrank(clientAddress);
eigenPodManager.createPod();
ProofSubmitter proofSubmitter = factory.createProofSubmitter{
Expand All @@ -298,7 +298,7 @@ contract HoleskyIntegration is Test {
proofSubmitter.withdrawFromEntryPoint();
}

function test_OnlyOperatorOrOwnerModifier() external {
function test_OnlyOperatorOrOwnerModifier_Holesky() external {
vm.startPrank(clientAddress);
eigenPodManager.createPod();
ProofSubmitter proofSubmitter = factory.createProofSubmitter{
Expand Down Expand Up @@ -327,7 +327,7 @@ contract HoleskyIntegration is Test {
proofSubmitter.setOperator(nobody);
}

function test_OnlyEntryPointModifier() external {
function test_OnlyEntryPointModifier_Holesky() external {
vm.startPrank(clientAddress);
eigenPodManager.createPod();
ProofSubmitter proofSubmitter = factory.createProofSubmitter{
Expand Down Expand Up @@ -364,7 +364,7 @@ contract HoleskyIntegration is Test {
proofSubmitter.validateUserOp(userOp, userOpHash, 0);
}

function test_PredictProofSubmitterAddress() external {
function test_PredictProofSubmitterAddress_Holesky() external {
address expectedAddress = factory.predictProofSubmitterAddress(
clientAddress
);
Expand All @@ -383,7 +383,7 @@ contract HoleskyIntegration is Test {
);
}

function test_CreateProofSubmitterTwice() external {
function test_CreateProofSubmitterTwice_Holesky() external {
vm.startPrank(clientAddress);
eigenPodManager.createPod();

Expand All @@ -403,15 +403,15 @@ contract HoleskyIntegration is Test {
vm.stopPrank();
}

function test_GetReferenceProofSubmitter() external view {
function test_GetReferenceProofSubmitter_Holesky() external view {
address referenceProofSubmitter = factory.getReferenceProofSubmitter();
assertFalse(
referenceProofSubmitter == address(0),
"Reference ProofSubmitter should not be zero address"
);
}

function test_SupportsInterface() external view {
function test_SupportsInterface_Holesky() external view {
bool supportsIProofSubmitterFactory = factory.supportsInterface(
type(IProofSubmitterFactory).interfaceId
);
Expand All @@ -434,7 +434,7 @@ contract HoleskyIntegration is Test {
);
}

function test_CreateProofSubmitterWithZeroValue() external {
function test_CreateProofSubmitterWithZeroValue_Holesky() external {
vm.startPrank(clientAddress);
eigenPodManager.createPod();

Expand All @@ -450,7 +450,7 @@ contract HoleskyIntegration is Test {
);
}

function test_SetOperator() external {
function test_SetOperator_Holesky() external {
vm.startPrank(clientAddress);
eigenPodManager.createPod();
ProofSubmitter proofSubmitter = factory.createProofSubmitter{
Expand All @@ -477,7 +477,7 @@ contract HoleskyIntegration is Test {
vm.stopPrank();
}

function test_ExecuteCall() external {
function test_ExecuteCall_Holesky() external {
vm.startPrank(clientAddress);
eigenPodManager.createPod();
ProofSubmitter proofSubmitter = factory.createProofSubmitter{
Expand Down Expand Up @@ -539,7 +539,7 @@ contract HoleskyIntegration is Test {
);
}

function test_AddDeposit() external {
function test_AddDeposit_Holesky() external {
vm.startPrank(clientAddress);
eigenPodManager.createPod();
ProofSubmitter proofSubmitter = factory.createProofSubmitter{
Expand All @@ -560,7 +560,7 @@ contract HoleskyIntegration is Test {
vm.stopPrank();
}

function test_ExecuteBatch() external {
function test_ExecuteBatch_Holesky() external {
uint256 deposited = 10 ether;

vm.startPrank(clientAddress);
Expand Down Expand Up @@ -640,7 +640,7 @@ contract HoleskyIntegration is Test {
);
}

function test_ExecuteBatchWrongArrayLengths() external {
function test_ExecuteBatchWrongArrayLengths_Holesky() external {
uint256 deposited = 10 ether;

vm.startPrank(clientAddress);
Expand Down Expand Up @@ -687,7 +687,7 @@ contract HoleskyIntegration is Test {
);
}

function test_SetAllowedFunctionForContract() external {
function test_SetAllowedFunctionForContract_Holesky() external {
vm.startPrank(clientAddress);

eigenPodManager.createPod();
Expand Down Expand Up @@ -743,7 +743,7 @@ contract HoleskyIntegration is Test {
);
}

function test_RemoveAllowedFunctionForContract() external {
function test_RemoveAllowedFunctionForContract_Holesky() external {
vm.startPrank(clientAddress);

eigenPodManager.createPod();
Expand Down
Loading

0 comments on commit e850879

Please sign in to comment.