Skip to content

feat(aria): add Aria to the all-wallets package and fix adding chains - #602

Open
dblackstone1 wants to merge 2 commits into
hyperweb-io:mainfrom
Orchestra-Labs:feat/aria-all-wallets
Open

dblackstone1 wants to merge 2 commits into
hyperweb-io:mainfrom
Orchestra-Labs:feat/aria-all-wallets

Conversation

@dblackstone1

Copy link
Copy Markdown
Contributor

Aria has had its own cosmos-kit packages since #564, but it was never added to the all-wallets cosmos-kit package, so apps that load wallets from it don't show Aria. This registers it there and fixes two bugs in the Aria extension adapter.

What's changed

  • Added @cosmos-kit/aria-extension and @cosmos-kit/aria-mobile to packages/cosmos-kit (package.json, src/wallets.ts), the same way Gate Wallet was added in Register Gate Wallet and request publishing @cosmos-kit/gatewallet-extension before merge #569, with a test for the new entry.
  • addChain called window.aria.addChain, which Aria doesn't have, so it silently did nothing. It now suggests the chain through experimentalSuggestChain in Keplr's chain format, as the Keplr and Leap adapters do.
  • The reject message now matches the text Aria returns when a user declines, so cosmos-kit shows a rejection instead of an error and a second prompt.
  • Added Aria's website as a download link in the registry.
  • No breaking changes for other wallets.

Action required (maintainers)

  • Please publish a new @cosmos-kit/aria-extension with the adapter fixes before or with this merge.

Impact

  • Aria becomes selectable in apps that use the all-wallets package.
  • Chains outside Aria's built-in list can be added from the app instead of failing with "Unknown chain".

Testing

https://chromewebstore.google.com/detail/cgghllcclkhfpkjhgomhehlebgphifbm

  • Local run of examples/cosmos-kit-nextjs-app-router-example against the adapter built from this branch: Aria shows in the wallet list, connects, and signs.
  • Signed and broadcast on Osmosis mainnet through the adapter: CF40A45D7C00A3DC2341CEDEFF0CC7CEA7ED5A8AECCDD0A2C0D70EA0AA8643E9.
  • aria-extension and aria-mobile build cleanly, and the new cosmos-kit wallets test passes.

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.

1 participant