Skip to content

Commit 886e705

Browse files
authored
RESUME_ROLE check for GateSeal, TWG roles test (#521)
* Fix permissions tests * Add RESUME_ROLE check on gate_seal for WQ * Fix number of holders check for RESUME_ROLE
1 parent 4602db1 commit 886e705

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

tests/acceptance/test_gate_seal_acceptance.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def test_gate_seal(contract: Contract, gate_seal_committee: Account, reseal_mana
3434
assert contracts.withdrawal_queue.address in sealables
3535

3636
_check_role(contracts.withdrawal_queue, "PAUSE_ROLE", reseal_manager.address)
37+
_check_role(contracts.withdrawal_queue, "RESUME_ROLE", reseal_manager.address, 1)
3738

3839
assert contract.get_seal_duration_seconds() == GATE_SEAL_PAUSE_DURATION
3940
assert contract.get_expiry_timestamp() == GATE_SEAL_EXPIRY_TIMESTAMP

tests/regression/test_permissions.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
CS_FEE_ORACLE_ADDRESS,
5555
CS_ORACLE_HASH_CONSENSUS_ADDRESS,
5656
CS_PERMISSIONLESS_GATE_ADDRESS,
57+
TRIGGERABLE_WITHDRAWALS_GATEWAY,
58+
VEB_TWG_GATE_SEAL,
5759
CS_VETTED_GATE_ADDRESS,
5860
CS_PARAMS_REGISTRY_ADDRESS,
5961
CS_STRIKES_ADDRESS,
@@ -456,6 +458,18 @@ def protocol_permissions():
456458
"RECOVERER_ROLE": [],
457459
}
458460
},
461+
TRIGGERABLE_WITHDRAWALS_GATEWAY: {
462+
"contract_name": "TriggerableWithdrawalsGateway",
463+
"contract": contracts.triggerable_withdrawals_gateway,
464+
"type": "CustomApp",
465+
"roles": {
466+
"DEFAULT_ADMIN_ROLE": [contracts.agent],
467+
"ADD_FULL_WITHDRAWAL_REQUEST_ROLE": [VALIDATORS_EXIT_BUS_ORACLE, CS_EJECTOR_ADDRESS],
468+
"PAUSE_ROLE": [VEB_TWG_GATE_SEAL, RESEAL_MANAGER],
469+
"RESUME_ROLE": [RESEAL_MANAGER],
470+
"TW_EXIT_LIMIT_MANAGER_ROLE": [],
471+
}
472+
},
459473
INSURANCE_FUND: {
460474
"contract_name": "InsuranceFund",
461475
"contract": contracts.insurance_fund,

0 commit comments

Comments
 (0)