Skip to content

feat: add Hana Wallet support#95

Merged
azbang merged 4 commits into
azbang:mainfrom
Hana-Technology:feature/hana-wallet
Jul 20, 2026
Merged

feat: add Hana Wallet support#95
azbang merged 4 commits into
azbang:mainfrom
Hana-Technology:feature/hana-wallet

Conversation

@tzechuen

@tzechuen tzechuen commented May 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Hana Wallet as a NEAR Connect sandbox wallet, following the extension-wallet pattern used by OKX. Hana is available as a Chrome extension and as iOS/Android apps.

Files:

  • near-wallets/src/hana.ts — connector source (window.selector.external("hanaWallet.near", ...) pattern, mirrors OKX)
  • repository/hana.js — built executor (reproducible via PACKAGE=hana yarn build)
  • repository/manifest.json — new wallet entry
  • near-wallets/package.jsonbuild:hana script wired into build:wallets
  • README.md / llms.txt — added to the supported-wallets lists

Feature support

Declared in manifest, implemented in source:

  • signMessage
  • signInWithoutAddKey
  • signAndSendTransaction
  • signAndSendTransactions (sequential — Hana extension has no batch endpoint)

Not supported by the Hana extension today: signInAndSignMessage, signInWithFunctionCallKey, signDelegateActions, verifyOwner, createSignedTransaction, signTransaction, signNep413Message. Stubbed to throw "Method not supported" and omitted from manifest features.

@IkerAlus

IkerAlus commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@azbang can we have a pairs of eyes on this one soon? thanks!

kryptopoo and others added 4 commits June 15, 2026 10:41
Squashed from kryptopoo/near-connect#feature/add-hana-wallet
(originally PR #1, 3 commits).
Manifest:
- Point executor at Hana-Technology/near-connect feature branch (was azbang/, 404)
- Switch iOS store URL to /us/ locale (was /vn/)

hana.ts source:
- checkExist throws after triggering install prompt so callers don't fall through to a hana() call that's guaranteed to fail
- signIn validates accountId before returning (was returning [{undefined, undefined}] on incomplete sign-in)
- signAndSendTransaction replaces destructure of getAccounts() result with a length check (the [{accountId}] = [] destructure crashed before the if-check could run)
- signOut swallows errors since the extension exposes no near_disconnect method; comment explains intent
- All error paths preserve cause via { cause: error } and console.error with method name
- signMessage returns normalized { accountId, publicKey, signature } instead of raw extension response
- signAndSendTransactions reports failure index so partial-success state is debuggable
- Drop unused connectorActionsToNearActions import (extension consumes ConnectorAction shape directly per NearService.createAction)
- Top-of-file TODO for vendor-hosted icon replacement

repository/hana.js: rebuilt via yarn build:hana
Replaces the Chrome Web Store CDN icon URL (fragile to extension
republish / CDN ID rotation) with a stable Cloudinary-hosted SVG
provided by the Hana team. Removes the now-resolved TODO in hana.ts.
Add Hana Wallet to the manifest list in README.md and the supported
wallets line in llms.txt. Also drop a stale internal PR reference from
the Hana connector source.
@tzechuen
tzechuen force-pushed the feature/hana-wallet branch from bcae453 to 50de13a Compare June 15, 2026 02:44
@tzechuen

Copy link
Copy Markdown
Contributor Author

@azbang I've just fixed the merge conflicts, thanks

@azbang
azbang merged commit f9c8ae8 into azbang:main Jul 20, 2026
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.

4 participants