Plug 0.5.2: DAB Contact Sync šŸ“’ Account Switching šŸ§³ and More!

Today weā€™re dropping a user experience focused update for both your wallet & connecting to dApps through Plug.

Plug
Plug
4 min readJun 15, 2022

--

Another release?! Yes, you heard right ā€” weā€™ve been putting some extra elbow grease in behind the scenes to streamline the development process of Plug, and itā€™s starting to pay off šŸ’Ŗ

For this update weā€™ve been focusing on improving the user experience of Plug across dApps and devices by syncing your contacts & allowing dApps to elegantly handle account switching.

If thatā€™s not enough, weā€™ve also got some honorable mentions that span from subtle quality of life UI improvements to smaller but empowering developer features.

As always, you can download Plug v0.5.2 from the Chrome Web Store, & Firefox Add-on Store, or get it from GitHub!

Contact Syncing Ć  la DAB ā›²ļø

With our iOS app recently released (& Android getting close šŸ¤«), your wallet in Plug is becoming accessible from more and more places, making continuity across wallet instances evermore important.

A few weeks ago, DAB released its on-chain private address book so that users could manage a private list of contacts that they can bring with them across dApps ā€” this is a no-brainer integration for Plug.

The move to a private synced contact list in Plug will go on behind the scenes. Once Plug updates to 0.5.2 on your device, all of your existing contacts in Plug will automatically be pushed to DABā€™s Address Book, effectively syncing your contacts anywhere your wallet in Plug goes.

The best part? You donā€™t have to do a thing! šŸ”„

Account Switching šŸ—æ

Weā€™re also empowering dApps to create experiences that automatically adapt to account switches in this update.

No more need for refreshing the page and accepting a new whitelist pop-up when you switch your account! Account switching gives dApps the freedom to handle these switches in whatever elegant way they see fit.

If youā€™re a userā€¦

When youā€™re switching your account, Plug will check to see if youā€™re connected to a dApp and prompt you to add whitelist permissions to the account youā€™re switching to (if you havenā€™t already connected to the dApp).

The rest is up to the dApp devs to add ā€” let your favorite dApp know about this update by sending them this blog so they can integrate it!

If youā€™re a developerā€¦

Good news, this update is backwards compatible šŸ¤

To enable account switching, Plugā€™s in-page provider has received an update that adds a new optional parameter named onConnectionUpdate to the requestConnect method that is used to initiate connects to wallets in Plug.

This callback can be configured to do whatever your dApp wants, like say, get the principal of the new account and make requests for data that other canisters have saved against that principal (like token or NFT balances).

Ready to start integrating? Visit our updated docs and example code.

Honorable Mentions āœØ

Plug v0.5.2 is also coming with a few smaller goodies, letā€™s go over them in rapid fire.

ICScan Support

Weā€™ve moved to ICScan as Plugā€™s block explorer of choice. As a start, ICP transactions in Plug will link out to ICScanā€™s expanded details page.

However, weā€™re also working with the ICScan team to expand their block-explorer beyond the ICP ledger by adding CAP history to the mix. This will allow for transaction history to also span all dApp & canister events logged to CAP.

NFT Focus View Changes

We changed a few small things on the NFT focus view layout that we thought made for better UX in preparation for more features coming to this view from future integrations with Jelly.

Can you spot them? šŸ˜‰

Exporting .pem Files Fix

Finally, right!? Exports of .pem files from Plug are now importable to any version of DFX (latest at time of writing is 0.10.0).

Weā€™ve been tackling a bug since DFX updated to 0.8.1, feels good to get this one off our chest.

DIP721v2 Sending Patch

The title says it all, we patched a šŸž where NFTs built on the DIP721v2 standard couldnā€™t be transferred through Plug.

This means that Crowns are now able to be transferred.

Zoom / Multiple Screen Fix on Chrome

This is a weird one.. Chrome made an update that sometimes broke pop-ups, like Plug connection modals, if you had changed your zoom or screen settings.

Without getting into the semantics, weā€™ve fixed the issue & users can get back to connecting to their favorite dApps with Plug!

Plug into the Internet Computer šŸ”Œ

Thatā€™s all from us today! This has been a quick update with powerful enhancements to the quality of life of both users & dApps that use Plug!

Got an idea, need help with anything (especially around account switching integration), or want to jam with the team? Then hop into our Discord!

--

--

Plug
Plug
Editor for

Plug is an Internet Computer browser crypto wllet & authentication provider.