envoylabs / whoami

An NFT-based user and smart contract nameservice
Apache License 2.0
16 stars 10 forks source link

Subdomain paths composition #62

Closed the-frey closed 2 years ago

the-frey commented 2 years ago

Fixes #61

This makes it impossible to break up paths with any characters like / that are not allowed in normal tokens. In addition, the resolver has been updated to deal with this higher level of potential nesting.

What this means is that in effect all paths are now simply a pair of parent::child meaning that all sub-paths can be fluently composed into a single resolvable path.

Tests have been added for nesting and clearing, as well as to ensure that base tokens are themselves not nested under a path, as this could introduce a cycle.