Skip to content

v2.5.0

Choose a tag to compare

@iamssen iamssen released this 12 Nov 09:33
· 127 commits to main since this release

Features

If multiple extensions are installed in the user browser, wallet-provider now allows the user to choose which extension to access.

API Changes

  • Changed connect(ConnectType)connect(ConnectType, identifier?)
    • If you just run connect(ConnectType), wallet-provider will automatically float the option. If you run the identifier together, it will be connected directly.
    • You can get identifier from availableConnections below
  • Added const { availableConnections } = useWallet()

To extension developers

For this update, extension developers must inject additional information into the web app. Please refer to this link. https://github.com/terra-money/station/blob/main/extension/inpage.js#L12

Please change the name and target of the stream used by your extension. (e.g. https://github.com/terra-money/station/blob/main/extension/contentScript.js#L100) And if you register your Extension with your identifier on terraWallets (e.g. https://github.com/terra-money/station/blob/main/extension/inpage.js#L8), the user will be able to select and use Extension.

This function requires the following conditions.

  • Web app updated to wallet-provider 2.5.0 or later.
  • Extensions with identifier rules

If one of the following conditions is present, it will not work well.

  • Web app with wallet-provider installed below 2.5.0.
    • Anchor, Mirror, Pylon and TFL products will update in few days
  • If an extension to which the identifier rule is not applied is installed together

It will take time for everything to be updated. Please refer to the above and guide when users have a problem.