-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat: allow users to transfer money to a .stark name #437
Conversation
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.
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
Thanks @stanleyyconsensys , I updated my PR |
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.
Hi @irisdv , overall look good on SNAP side, but just some questions that i wonder on the UI side
packages/wallet-ui/src/components/ui/molecule/AddressInput/AddressInput.view.tsx
Outdated
Show resolved
Hide resolved
packages/wallet-ui/src/components/ui/organism/Header/SendModal/SendModal.view.tsx
Outdated
Show resolved
Hide resolved
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.
Hi @irisdv , the SNAP side look good to me, thanks for the change
but the UI side may have some issue
packages/wallet-ui/src/components/ui/organism/Header/SendModal/SendModal.view.tsx
Outdated
Show resolved
Hide resolved
packages/wallet-ui/src/components/ui/organism/Header/SendModal/SendModal.view.tsx
Outdated
Show resolved
Hide resolved
packages/wallet-ui/src/components/ui/organism/Header/SendModal/SendModal.view.tsx
Outdated
Show resolved
Hide resolved
packages/wallet-ui/src/components/ui/organism/Header/SendModal/SendModal.view.tsx
Outdated
Show resolved
Hide resolved
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.
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
packages/wallet-ui/src/components/ui/organism/Header/SendModal/SendModal.view.tsx
Outdated
Show resolved
Hide resolved
packages/wallet-ui/src/components/ui/organism/Header/SendModal/SendModal.view.tsx
Show resolved
Hide resolved
packages/wallet-ui/src/components/ui/organism/Header/SendModal/SendModal.view.tsx
Outdated
Show resolved
Hide resolved
packages/wallet-ui/src/components/ui/molecule/AddressInput/AddressInput.view.tsx
Outdated
Show resolved
Hide resolved
packages/wallet-ui/src/components/ui/molecule/AddressInput/AddressInput.view.tsx
Show resolved
Hide resolved
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.
hi @irisdv , would you mind to do a rebase?
no worry let me do it for you
b3c39d0
into
Consensys:feat/transfer_to_stark_name
* 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]>
This PR adds support to sending money to a .stark domain.
Close #185