File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ contracts
8383│ └── ASBT — "A minimal implementation of an SBT"
8484├── utils
8585│ ├── ABlockGuard — "Protect against flashloans"
86+ │ ├── ADeployerGuard — "Prevent proxy initialization frontrunning"
8687│ └── Globals — "Some commonly used constants"
8788├── presets — "Presets for the library contracts"
8889├── interfaces — "Interfaces for the library contracts"
Original file line number Diff line number Diff line change @@ -13,15 +13,17 @@ pragma solidity ^0.8.21;
1313 * ## Usage example:
1414 *
1515 * ```
16- * contract ProtectedImpl is ADeployerGuard {
16+ * contract ProtectedERC20 is ADeployerGuard, ERC20 {
1717 * constructor() ADeployerGuard(msg.sender) {}
1818 *
19- * function __ERC20_init (
19+ * function __ProtectedERC20_init (
2020 * string memory name_,
2121 * string memory symbol_,
2222 * ) external initializer onlyDeployer {
2323 * __ERC20_init(name_, symbol_);
2424 * }
25+ *
26+ * ...
2527 * }
2628 * ```
2729 */
You can’t perform that action at this time.
0 commit comments