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