-
Notifications
You must be signed in to change notification settings - Fork 17
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: port changes from C# NNS #267
base: master
Are you sure you want to change the base?
Commits on Sep 14, 2022
-
[nspcc-dev#266] nns: Add
admin
to propertiesFollow the https://github.com/neo-project/non-native-contracts/blob/14f43ba8cf169323b61c23a3a701ac77d9a4e3eb/src/NameService/NameService.cs#L69. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 16aaaa6 - Browse repository at this point
Copy the full SHA 16aaaa6View commit details -
[nspcc-dev#266] nns: Return empty Array from
resolve
instead of NullIn case if no records of the specified type found. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 80e5bcb - Browse repository at this point
Copy the full SHA 80e5bcbView commit details -
[nspcc-dev#266] nns: Fix safe methods list
`getRecord` doesn't exist since nspcc-dev@6ea4573. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 53e0e91 - Browse repository at this point
Copy the full SHA 53e0e91View commit details -
[nspcc-dev#266] nns: Return empty Array from getRecords instead of Null
And adjust method usages along the way. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b584d5a - Browse repository at this point
Copy the full SHA b584d5aView commit details -
[nspcc-dev#266] nns: Fix typo in the method description
Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8213ba5 - Browse repository at this point
Copy the full SHA 8213ba5View commit details -
[nspcc-dev#266] nns: Restrict the maximum number of records with the …
…same type Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b1f5864 - Browse repository at this point
Copy the full SHA b1f5864View commit details -
[nspcc-dev#266] nns: Move common code to a separate method
Reuse getAllRecords for GetAllRecords. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 48c96ec - Browse repository at this point
Copy the full SHA 48c96ecView commit details -
[nspcc-dev#266] nns: Fix CNAME resolution rules
Do not include CNAME to the resulting list if we're looking for another record type. If it's CNAME than it must be resolved. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f65bbc0 - Browse repository at this point
Copy the full SHA f65bbc0View commit details -
[nspcc-dev#266] nns: Remove unused config file
Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fe266fd - Browse repository at this point
Copy the full SHA fe266fdView commit details -
[nspcc-dev#266] nns: Refactor record-related operations code
Do not move parts of SetRecord/AddRecord to a separate functions, it makes the contract code more complicated. Also, improve documentation a bit. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 22f2700 - Browse repository at this point
Copy the full SHA 22f2700View commit details -
[nspcc-dev#266] nns: Move common record checking code to a separate f…
…unction Don't repeat it each time. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e5ad839 - Browse repository at this point
Copy the full SHA e5ad839View commit details -
[nspcc-dev#266] nns: Accept token ID as an argument for storeRecord
It doesn't save VM opcodes, but allows to keep record key creation logic in a single place which prevents the code from bugs appearance. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 86d171e - Browse repository at this point
Copy the full SHA 86d171eView commit details -
[nspcc-dev#266] nns: Reuse storeRecord for storing SOA record
Less code repeating. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b5d1b61 - Browse repository at this point
Copy the full SHA b5d1b61View commit details -
[nspcc-dev#266] nns: Move token key creation to a separate function
Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2d8ba9d - Browse repository at this point
Copy the full SHA 2d8ba9dView commit details -
[nspcc-dev#266] nns: reuse existing context in tokenIDFromName
Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c2e411c - Browse repository at this point
Copy the full SHA c2e411cView commit details -
[nspcc-dev#266] nns: Keep
isAvailable
in sync withregister
If conflicting records '*.domain' are present on new domain registration, then `isAvailable` should return false for this domain. Ref. nspcc-dev@f25296b. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6f49a54 - Browse repository at this point
Copy the full SHA 6f49a54View commit details -
[nspcc-dev#266] nns: Use millisecondsInSeconds constant where appropr…
…iate Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 37d5f56 - Browse repository at this point
Copy the full SHA 37d5f56View commit details
Commits on Sep 15, 2022
-
[nspcc-dev#267] nns: Make domain registration price dependant on length
Add corresponding migration and bump version along the way. Port neo-project/non-native-contracts@8ac2b80. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 41b5f0c - Browse repository at this point
Copy the full SHA 41b5f0cView commit details -
[nspcc-dev#267] common: Fix typo in the comment
Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0fe6360 - Browse repository at this point
Copy the full SHA 0fe6360View commit details -
[nspcc-dev#267] nns: Accept expiration period in
renew
Port neo-project/non-native-contracts#13. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6ab4a65 - Browse repository at this point
Copy the full SHA 6ab4a65View commit details -
[nspcc-dev#267] nns: Add SetAdmin event
Port neo-project/non-native-contracts#11. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a21a6a8 - Browse repository at this point
Copy the full SHA a21a6a8View commit details -
[nspcc-dev#267] nns: Add Renew event
Port neo-project/non-native-contracts#31. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 21bd76e - Browse repository at this point
Copy the full SHA 21bd76eView commit details