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

feature/register #3

Merged
merged 40 commits into from
Aug 10, 2023
Merged

feature/register #3

merged 40 commits into from
Aug 10, 2023

Conversation

ryanwaits
Copy link
Contributor

Description

Starting point for adding the ability to register BNS names.

Changes

  • added api script in the root to improve the development and deployment process
  • started adding tailwind components for the user interface
  • updated the hashFqn function inside the packages/core to match functionality used in other areas of codebase

@codecov-commenter
Copy link

codecov-commenter commented Jun 12, 2023

Codecov Report

Merging #3 (140b3f0) into develop (71650a9) will decrease coverage by 2.08%.
The diff coverage is n/a.

❗ 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     

see 7 files with indirect coverage changes

Copy link
Contributor

@hstove hstove left a 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/Register.tsx Outdated Show resolved Hide resolved
setIsLoading(false);
}

checkAvailability();
Copy link
Contributor

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

web/components/profile.tsx Outdated Show resolved Hide resolved
web/components/Register.tsx Outdated Show resolved Hide resolved
web/components/bns-name-row.tsx Outdated Show resolved Hide resolved
web/components/bns-name-row.tsx Outdated Show resolved Hide resolved
web/common/hooks/use-name-register.ts Outdated Show resolved Hide resolved
web/common/hooks/use-name-register.ts Outdated Show resolved Hide resolved
web/common/hooks/use-name-register.ts Outdated Show resolved Hide resolved
namespace: asciiToBytes(namespace),
amount: Number(price),
hashedFqn: hashFqn(name, namespace, '00'),
salt: hexToBytes('00'),
Copy link
Contributor

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

Copy link
Contributor Author

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

@hstove hstove changed the base branch from main to develop August 10, 2023 17:00
@hstove hstove marked this pull request as ready for review August 10, 2023 17:01
@hstove hstove merged commit d5b54ec into develop Aug 10, 2023
1 check passed
@hstove hstove deleted the feature/register branch August 10, 2023 17:03
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.

3 participants