You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/toplevel-alias/README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ The top-level alias registry is a `dm3` protocol extension to provide a decentra
12
12
13
13
-**Alias Management:** Allows setting of aliases for given names with specific format rules.
14
14
-**Ownership Control:** Utilizes OpenZeppelin's `Ownable` contract to restrict certain functionalities to the contract owner.
15
-
-**Format Validation:** Enforces aliases to start with a dot, be at least a certain length, and follow a specific pattern.
15
+
-**Format Validation:** Enforces aliases must not start with a dot, be at least a certain length, and follow a specific pattern.
16
16
17
17
## Contract Functions
18
18
@@ -21,8 +21,8 @@ The top-level alias registry is a `dm3` protocol extension to provide a decentra
21
21
-**Description:** Sets an alias for a given name (= top-level).
22
22
-**Access:** Restricted to the contract owner.
23
23
-**Parameters:**
24
-
-`_name`: The name (top-level domain) to map the alias to. Must not be empty and start with ".".
25
-
-`_alias`: The alias to be set for the given name. Must start with a dot and follow the format rules.
24
+
-`_name`: The name (top-level domain) to map the alias to. Must not be empty and not start with ".".
25
+
-`_alias`: The alias to be set for the given name. Must not start with a dot and follow the format rules.
26
26
27
27
### Other Functions
28
28
@@ -31,7 +31,7 @@ The top-level alias registry is a `dm3` protocol extension to provide a decentra
31
31
32
32
## Format Rules for Aliases
33
33
34
-
- The alias must start with a dot (e.g., `.example`).
34
+
- The alias must not start with a dot (e.g.,`example` and not`.example`).
35
35
- It must have at least three characters before the dot and at least two characters after the dot.
36
36
- The total length of the alias must be within the predefined maximum limit.
37
37
@@ -52,7 +52,7 @@ The contract comes with a suite of tests to verify its functionalities. To run t
52
52
53
53
## Contributing
54
54
55
-
Contributions to the `TopLevelAliasRegistry` subproject of the `dm3` project are welcome. Please ensure that any major changes are discussed via issues before submitting a pull request.
55
+
Contributions to the `TopLevelAliasRegistry` sub-project of the `dm3` project are welcome. Please ensure that any major changes are discussed via issues before submitting a pull request.
0 commit comments