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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bako ID integration #1180

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

Conversation

luisburigo
Copy link

@luisburigo luisburigo commented Mar 22, 2024

This feature enables sending a transaction by handles in Bako, handle is @ with a identifier name, an example:
@fuel_network 馃憞

{
  "owner": "0x000...",
  "resolver": "0x000...",
}

Check Bako ID docs


Changes:

  • Modify address input to accept a Bech32 or @bako_handle
  • Validations on input address
  • Fetch Bako handle and use the resolver address
  • Include @bako-id/sdk@0.0.6 package
  • Show handle name In transaction approve page
  • Create tests cases

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Comment on lines +62 to +68
if (!name && isReceiver) {
resolveAddressName();
}

if (!isReceiver) {
setAccountName();
}
Copy link
Author

Choose a reason for hiding this comment

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

I added it only to show in the receiver, thinking about the transaction sending flow, what do you think?

If they're not a receiver, there could be a conflict with the wallet name.

Comment on lines +71 to +77
const Name = !name ? (
<ContentLoader width={100} height={17} viewBox="0 0 80 17">
<ContentLoader.Rect x="0" y="0" width="100" height="17" rx="4" />
</ContentLoader>
) : (
`${name}`
);
Copy link
Author

Choose a reason for hiding this comment

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

I added a loader to the name to avoid screen flickering when the search is completed.

@luisburigo luisburigo changed the title (WIP) Bako ID integration Bako ID integration Apr 3, 2024
@luisburigo luisburigo marked this pull request as ready for review April 3, 2024 19:57
@luisburigo luisburigo marked this pull request as draft April 12, 2024 16:11
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.

None yet

2 participants