Skip to content

feat: add Aria extension wallet (Cosmos, EVM, Solana) - #56

Open
dblackstone1 wants to merge 3 commits into
hyperweb-io:mainfrom
dblackstone1:feat/aria-extension
Open

dblackstone1 wants to merge 3 commits into
hyperweb-io:mainfrom
dblackstone1:feat/aria-extension

Conversation

@dblackstone1

Copy link
Copy Markdown

Adds @interchain-kit/aria-extension, an adapter for the Aria browser wallet.

Aria injects:

  • window.aria: a Keplr-compatible Cosmos provider
  • window.aria.ethereum: an EIP-1193 provider
  • window.aria.solana: a Phantom-style Solana provider

The adapter registers Cosmos, EVM and Solana wallets for it, following the existing extension wallets.

One difference from Keplr: Aria's enable connects the site without checking the chain, so a chain Aria doesn't know only fails later at getKey with "Unknown chain". AriaCosmosWallet.connect asks for the key on connect and suggests the chain then, as an enable failure does for Keplr.

Testing

  • Unit tests in wallets/aria-extension/__tests__; lint and typecheck pass.
  • examples/react with Aria (Playwright, unfunded wallet): cosmoshub-4, juno-1, osmosis-1, Sepolia and Solana devnet all connect through one approval. The Osmosis and Solana sends open the right approval, which was then rejected.
  • A live Osmosis send through the example page's "Send Token to:": 6DAB5296…74048, code 0, 0.001 OSMO.

🤖 Generated with Claude Code

Add @interchain-kit/aria-extension so dApps can connect to the Aria
extension: window.aria (Keplr-compatible) for Cosmos chains and
window.aria.ethereum for EVM chains.

Aria's enable connects the site without checking the chain, so a chain
outside Aria's list only fails at getKey with "Unknown chain". The Cosmos
wallet asks for the key on connect and suggests the chain then, as an
enable failure does for Keplr.
Aria injects a Phantom-style Solana provider at window.aria.solana. The adapter registered only
Cosmos and EVM, so a Solana chain failed with: Unsupported chain type: "solana".
SolanaWallet's sign methods name no chain, so Aria simulated and sent every Solana
request on mainnet. Connect now calls Aria's changeCluster with the chain's cluster:
the one its RPC names (as Solana's wallet adapter reads an endpoint), else its
genesis-hash chain ID, else mainnet.
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