Skip to content

Add Nns#1644

Closed
doubiliu wants to merge 85 commits intoneo-project:masterfrom
bettybao1209:nns-improve
Closed

Add Nns#1644
doubiliu wants to merge 85 commits intoneo-project:masterfrom
bettybao1209:nns-improve

Conversation

@doubiliu
Copy link
Copy Markdown
Contributor

@doubiliu doubiliu commented May 13, 2020

close #1545 Pre-PR #1670 is required.

In this PR, we have completed an NNS implementation.

Where in the software does this update applies to?

  • CLI
  • Plugins
  • RPC (HTTP)
  • SDK

@doubiliu doubiliu changed the title Nns improve An NNS implementation May 14, 2020

ttl = parentDomainState.TimeToLive;
}
Mint(engine, account, tokenId, ttl);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need check whether its parent domain is registered

@doubiliu doubiliu marked this pull request as ready for review May 26, 2020 05:18
@doubiliu doubiliu changed the title An NNS implementation Add Nns May 26, 2020
@shargon
Copy link
Copy Markdown
Member

shargon commented May 26, 2020

Could you ceate two PR, one for NEP11 and other for NS?

@Tommo-L
Copy link
Copy Markdown
Contributor

Tommo-L commented May 26, 2020

@doubiliu will help split it.

@doubiliu doubiliu mentioned this pull request May 26, 2020
@doubiliu
Copy link
Copy Markdown
Contributor Author

Already split

byte[] tokenId = args[0].GetSpan().ToArray();
string name = Encoding.UTF8.GetString(tokenId).ToLower();
string[] domains = name.Split(".");
if (domains.Length > 3) return false; // only the root and first-level name can be registered
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think here should be if (domains.Length > 2) return false;.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

@doubiliu doubiliu closed this Dec 25, 2020
@erikzhang erikzhang mentioned this pull request Jan 5, 2021
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.

NFT assets in NNS scenarios

6 participants