Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions script/DeployCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,16 @@
FirewallAccess firewallAccess = FirewallAccess(getDeployedAddress("V1_FACCESS"));
ExternalFirewall externalFirewall = ExternalFirewall(getDeployedAddress("V1_FEXTERNAL"));
address vault = getDeployedAddress("V1_VAULT");
bytes32 DEFAULT_ADMIN_ROLE = firewallAccess.DEFAULT_ADMIN_ROLE();

Check warning on line 35 in script/DeployCore.sol

View workflow job for this annotation

GitHub Actions / lint

Variable name must be in mixedCase

/// will renounce later below
firewallAccess.grantRole(FIREWALL_ADMIN_ROLE, msg.sender);
firewallAccess.grantRole(PROTOCOL_ADMIN_ROLE, msg.sender);

firewallAccess.grantRole(DEFAULT_ADMIN_ROLE, admin);
firewallAccess.grantRole(PROTOCOL_ADMIN_ROLE, admin);
firewallAccess.grantRole(FIREWALL_ADMIN_ROLE, admin);

/// let protected contract execute checkpoints on the external firewall
firewallAccess.grantRole(CHECKPOINT_EXECUTOR_ROLE, vault);
firewallAccess.grantRole(CHECKPOINT_EXECUTOR_ROLE, firewallRouter);
Expand All @@ -51,5 +56,6 @@

firewallAccess.renounceRole(FIREWALL_ADMIN_ROLE, msg.sender);
firewallAccess.renounceRole(PROTOCOL_ADMIN_ROLE, msg.sender);
firewallAccess.renounceRole(DEFAULT_ADMIN_ROLE, msg.sender);
}
}
Loading