Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameService: minor improvements, part 5 #29

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

AnnaShaleva
Copy link
Member

The fifth part of NNS contract update, depends on #23, #25, #26 and #27. Waiting for other parts to be merged.

Includes:

  1. SOA records support.
  2. Auth errors refactoring.
  3. Arbitrary-level domains registration support.

@AnnaShaleva AnnaShaleva force-pushed the nns-upd-5 branch 3 times, most recently from 35a4c9a to 7cd55f7 Compare September 14, 2022 16:41
And refactor GetRecords/GetAllRecords along the way, move commonly
used code to a separate function.

Originally introduced in
nspcc-dev/neofs-contract@432c02a.
And move commonly used code to a separate methods.

Originally introduced in
nspcc-dev/neofs-contract@4b86891.
Creation token key from ID can be performed in a single place, there's
no need to repeat the following code each time on token-related
operations:

```
ByteString tokenKey = GetKey(tokenId);
```
If conflicting records '*.domain' are present on new domain
registration, then `isAvailable` should return false for this
domain. `renew` should be aware of multy-fragment domains. Ref.
nspcc-dev/neofs-contract@f25296b.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant