@@ -6,6 +6,29 @@ import {LibOwnableRoles} from "@diamond/libraries/LibOwnableRoles.sol";
66import {DiamondArgs, FacetCut} from "@diamond-storage/DiamondStorage.sol " ;
77import {FunctionDoesNotExist} from "@diamond-errors/DiamondErrors.sol " ;
88
9+ /*
10+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣤⡤⠤⠤⠴⠶⠒⠒⠛⠋⠉⠉⠙⠛⠒⠒⠶⠦⠤⠤⣤⣤⣀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
11+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣶⠟⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠻⣶⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
12+ ⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣛⣽⡟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢻⣭⣳⣦⣄⡀⠀⠀⠀⠀⠀⠀⠀
13+ ⠀⠀⠀⠀⠀⣠⡾⠋⠉⢩⡟⠉⠛⢶⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⠶⠋⠉⢿⡉⠉⠙⢷⣄⠀⠀⠀⠀⠀
14+ ⠀⠀⠀⣠⣾⠏⠀⠀⣰⠏⠀⠀⢀⣠⡼⠿⣷⠒⠒⠶⠦⠤⢤⣤⣤⣄⣀⣀⣀⣀⣀⣀⣤⣤⣤⠤⠤⠴⠶⠒⠒⣾⠻⢥⣄⡀⠀⠀⠻⣄⠀⠀⠹⣷⡀⠀⠀⠀
15+ ⠀⢀⣴⡿⠃⠀⢀⣼⣇⡤⠖⠛⠉⠁⠀⠀⠘⣧⡀⠀⠀⠀⠀⠀⠀⢈⣩⡭⠟⠻⢯⣍⡁⠀⠀⠀⠀⠀⠀⢀⡾⠁⠀⠀⠈⠉⠛⠶⣤⣹⣆⠀⠀⠘⢿⣦⡀⠀
16+ ⢰⣯⢟⣀⡤⢶⡿⢻⡁⠀⠀⠀⠀⠀⠀⠀⠀⠈⢷⡀⠀⢀⣠⡴⠞⠋⠁⠀⠀⠀⠀⠈⠙⠳⢦⣄⡀⠀⢠⡾⠁⠀⠀⠀⠀⠀⠀⠀⠀⢈⡟⢿⠶⣤⣈⠻⣿⡆
17+ ⢿⣟⠉⠁⢠⡞⠁⠸⡇⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⢿⣾⡉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢉⣷⡿⣤⣀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠃⠈⢷⡄⠈⠙⣻⡇
18+ ⠈⢿⣷⣴⡏⠀⠀⠀⣿⠀⠀⠀⢀⣀⡤⠖⠛⠉⠀⣸⠀⠙⢶⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠾⠋⠀⡇⠀⠉⠛⠶⣤⣀⠀⠀⠀⠀⡿⠀⠀⠀⢻⣤⢾⡟⠀
19+ ⠀⠀⠻⣎⣛⣦⣄⣀⣸⣤⡤⠖⠋⠁⠀⠀⠀⠀⠀⣿⠀⠀⠀⠈⠳⣦⡀⠀⠀⠀⠀⢀⡴⠟⠁⠀⠀⠀⣷⠀⠀⠀⠀⠀⠉⠙⠲⣤⣴⣇⣀⣠⣶⣋⣱⠏⠀⠀
20+ ⠀⠀⠀⠙⢳⣍⠉⠛⢯⣍⠙⠳⠦⣄⣀⣀⣀⣀⣤⣿⣄⡀⠀⠀⠀⠈⠛⢦⣀⣠⡶⠋⠀⠀⠀⠀⣀⣤⣿⣄⣀⣀⣀⣀⣤⠴⠞⠋⣡⡾⠋⢉⣤⠟⠃⠀⠀⠀
21+ ⠀⠀⠀⠀⠀⠈⠻⣦⡀⠈⠻⣶⡒⠛⠋⠛⠿⢭⣄⡀⢈⣙⣛⣶⣖⣒⣒⡛⠛⠛⢛⣓⣒⣲⣖⣛⣋⡁⢀⣠⡭⠟⠛⠙⠛⢓⣶⠛⠁⢀⡴⠟⠁⠀⠀⠀⠀⠀
22+ ⠀⠀⠀⠀⠀⠀⠀⠀⠙⢶⣄⠈⢿⣦⣀⠀⠀⠀⠈⠹⣏⠉⠀⠀⠀⠀⠉⠉⣻⡏⠉⠉⠀⠀⠀⠀⠉⣹⠏⠁⠀⠀⠀⣠⣶⡟⠁⣠⠾⠋⠀⠀⠀⠀⠀⠀⠀⠀
23+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠳⣬⡹⣟⢷⣄⠀⠀⠀⠙⣦⠀⠀⠀⠀⠀⢀⡟⣷⠀⠀⠀⠀⠀⠀⣼⠃⠀⠀⠀⣠⠞⡿⢋⣴⠞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
24+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⢾⣷⡈⠳⣤⡀⠀⠘⢧⡀⠀⠀⠀⢸⠃⢸⡄⠀⠀⠀⢀⡾⠁⠀⢀⣴⠟⣡⣾⡵⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
25+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠻⣦⡈⠛⢦⣀⠈⢷⡀⠀⠀⡾⠀⠈⣧⠀⠀⢀⡾⠁⣀⡴⠋⢁⣴⠟⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
26+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠛⢦⡀⠙⢷⣌⣷⡀⢰⡇⠀⠀⢹⡄⢠⡟⣠⠾⠋⣠⡴⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
27+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢶⣄⠙⠿⣷⣾⠁⠀⠀⠈⣧⣿⠞⠁⣠⡾⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
28+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠳⣦⡊⢻⣄⠀⠀⣰⠏⢁⡴⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
29+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⢶⣽⡄⣰⣫⠶⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
30+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠻⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
31+ */
932/// @notice Implements EIP-2535 Diamond proxy pattern, allowing dynamic addition, replacement, and removal of facets
1033/// @author David Dada
1134/// @author Modified from Nick Mudge (https://github.com/mudgen/diamond-3-hardhat/blob/main/contracts/Diamond.sol)
0 commit comments