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

feat: allow users to transfer money to a .stark name #437

Conversation

irisdv
Copy link
Contributor

@irisdv irisdv commented Nov 25, 2024

This PR adds support to sending money to a .stark domain.

Close #185

@irisdv irisdv requested a review from a team as a code owner November 25, 2024 16:46
@irisdv irisdv requested review from Akaryatrh and stanleyyconsensys and removed request for a team November 25, 2024 16:46
Copy link
Collaborator

@stanleyyconsensys stanleyyconsensys left a comment

Choose a reason for hiding this comment

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

Thank you very much for the work @irisdv

We did some revamp on the SNAP, and some of the RPC is consist by new structure

for this API, you can refer to the example of ./rpcs/watch-asset.ts

the major changes are :

  • we use OOP and inherit from a RpcController
  • we use superstruct to validate the input
  • we have NetworkStateManager to get network by chain id
  • we dont do logging of the response, the base RpcController will do it
  • we use jest, but not mocha

@irisdv
Copy link
Contributor Author

irisdv commented Nov 27, 2024

We did some revamp on the SNAP, and some of the RPC is consist by new structure

Thanks @stanleyyconsensys , I updated my PR

Copy link
Collaborator

@stanleyyconsensys stanleyyconsensys left a comment

Choose a reason for hiding this comment

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

Hi @irisdv , overall look good on SNAP side, but just some questions that i wonder on the UI side

Copy link
Collaborator

@stanleyyconsensys stanleyyconsensys left a comment

Choose a reason for hiding this comment

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

Hi @irisdv , the SNAP side look good to me, thanks for the change

but the UI side may have some issue

Copy link
Collaborator

@stanleyyconsensys stanleyyconsensys left a comment

Choose a reason for hiding this comment

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

Hi @irisdv thank you very much for your help

there is not bug at all, just some nit comment to simplify the code and enhance the performance

Copy link
Collaborator

@stanleyyconsensys stanleyyconsensys left a comment

Choose a reason for hiding this comment

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

hi @irisdv , would you mind to do a rebase?

no worry let me do it for you

@stanleyyconsensys stanleyyconsensys changed the base branch from main to feat/transfer_to_stark_name December 4, 2024 03:55
@stanleyyconsensys stanleyyconsensys merged commit b3c39d0 into Consensys:feat/transfer_to_stark_name Dec 4, 2024
9 of 12 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Dec 4, 2024
* feat: transfer to a stark name

* fix: lint errors

* test: update getAddrFromStarkName network

* fix: update to new RPC structure

* chore: lint

* chore: lint

* fix: racing condition in SendModal

* fix: move validate logic out of addressInput & update requests made to snap

* fix: simplify name check in frontend

* fix: resolved addr is validated by superstruct

* chore: add snap permission boundary and update UI text

* chore: update RpcController import location

---------

Co-authored-by: Iris <[email protected]>
@github-actions github-actions bot mentioned this pull request Dec 4, 2024
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.

feat: allow users to transfer money to a .stark name
2 participants