-
Notifications
You must be signed in to change notification settings - Fork 10
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
feature/register #3
Conversation
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## develop #3 +/- ##
===========================================
- Coverage 56.64% 54.57% -2.08%
===========================================
Files 13 13
Lines 1061 1061
Branches 245 245
===========================================
- Hits 601 579 -22
- Misses 460 477 +17
- Partials 0 5 +5 |
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.
Nice work! I'm liking the way it's coming along. Most of my notes are around codebase-specific patterns and helpers that just keep things cleaner. We'll want to add more polish around the name-rows
components but I like how it's looking overall!
web/components/bns-name-row.tsx
Outdated
setIsLoading(false); | ||
} | ||
|
||
checkAvailability(); |
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.
There are a few spots where ESLint errors are shown, like here. Mostly all small things but it'd be good to get ESLint validation setup in your editor
namespace: asciiToBytes(namespace), | ||
amount: Number(price), | ||
hashedFqn: hashFqn(name, namespace, '00'), | ||
salt: hexToBytes('00'), |
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.
We should use random hex here, because it'll work better in edge cases where people need to re-submit a preorder. There is a helper in the core
package
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.
was having a bit of trouble using the randomSalt()
function, might have to refactor the hashFqn
as I think its generating different values when registering for both the hashedFqn
and salt
params
also moved client tests to vitest
This is a workaround for running devnet with OrbStack
140b3f0
to
b9d14a4
Compare
Description
Starting point for adding the ability to register BNS names.
Changes
hashFqn
function inside thepackages/core
to match functionality used in other areas of codebase