-
Notifications
You must be signed in to change notification settings - Fork 14
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
add reverse record #15
base: master
Are you sure you want to change the base?
Conversation
cloud8little
commented
Jun 16, 2022
•
edited
Loading
edited
- add setReverseRecord method, if there is any domain name ever set TXT record with this address, set successful. if the domain name is expired, set failed.
- add getReverseRecord method, if there is any domain name ever set TXT record with this address, and setReverseRecord already, get the name. if the domain name is expired, get failed.
- when register for expired token, clear the reverse record.
StorageContext context = Storage.CurrentContext; | ||
StorageMap reverseMap = new(context, Prefix_ReverseRecord); | ||
string record = GetRecord(name, RecordType.TXT); | ||
if (record == owner.ToAddress(53)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to use the protocol settings value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to use the protocol settings value
how to get the settings value from smart contract?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System.Runtime.GetAddressVersion
Any update on this? |
@cloud8little any plan to complete this? |
We have a seperate smart contract to analyze the reverse record now. |