Commit Graph

249 Commits

Author SHA1 Message Date
Cosmos4k
95b1f6c403 Customize as GHOST Keychain v0.0.1 2026-10-30 05:15:04 -04:00
Patricio
e66446edc3
fix: derive raw vs extrinsic signing from the request channel (#1624)
The signing popup decided whether to show the message view or the
transaction view by inspecting fields on the payload (`data`,
`blockNumber`), while the background picks the signing behaviour from the
message channel the request arrived on. Those two are independent and the
payload comes from the dapp, so they can disagree.

`RequestSign` becomes a discriminated union on `channel`, set by the
background from the message type. Correlating the discriminant with the
payload type means consumers narrow through `isExtrinsicRequest` rather
than casting, so the display and the signing path can no longer drift
apart. `Tabs.extrinsicSign` also rejects a payload carrying a truthy
`data`, since that field has no meaning on that channel.

Also branches the signing render on the request rather than on decoded
state. Paging between two queued requests of different shapes could
otherwise commit one frame using the previous request's decoded payload.

Tests added under `signer channel` in `Extension.spec.ts`.
2026-07-31 12:11:11 -03:00
Francis O'Brien
bc320ec762
Allow Ledger generic app accounts to sign on any chain (#1613)
* feat(ui): allow generic Ledger app to derive from any chain via polkadot slip44

* feat: allow Ledger generic app accounts to sign on any chain

* fix(extension-ui): guard generic ledger init and stabilize i18n deps
2026-03-30 16:44:34 -04:00
Francis O'Brien
62b7395023
Improve Ledger reliability and signing (WebHID, lifecycle, mismatch guard) (#1611)
* fix: prefer WebHID over WebUSB for Ledger transport to fix Flex/Nano X connectivity

* fix(ui): release Ledger transport with explicit disconnect lifecycle

* fix(ui): align Ledger app mode with reactive settings context

* refactor(ui): keep useLedger render phase pure for init errors

* fix(ui): apply popup-aware routing to Ledger connection links

* fix(ui): harden Ledger signing error handling and mismatch UX

- Remove chain.name being set as specName from merkleizeMetadata payload
- Use reactive SettingsContext ledgerApp instead of settings.get() snapshot
- Guard no-metadata signing path with setIsBusy(false) + early return
- Detect signer mismatch by normalizing addresses and block signing when mismatched
2026-03-26 15:30:08 -04:00
Francis O'Brien
ff42d99624
fix: set chainSpecific account type and disable Ethereum switch (#1608) 2026-03-12 14:48:38 -04:00
Tarik Gul
a1c87fa383
Set headers to 2026 (#1609) 2026-03-12 19:27:39 +02:00
Tarik Gul
48ef4046ef
Add AHM warning page (#1601) 2025-11-14 11:39:34 -05:00
Tarik Gul
a154f9bd54
Ethereum Ledger signing (#1542)
* [TESTING] Ecdsa signing

* remove hardcoding

* Remove consoles

* Fix import of exdsa accounts from ledger

* Add signing

* Add correct keypair type to hardware meta

* lint

* Update ui libs to 3.14.1

* Most recent changes

* Detect chain type and hash message accordingly

* testing logs

* Only use pubkey

* Make Ethereum signing work

* lint

* Remove rogue console.logs

* Change to isHex()

---------

Co-authored-by: Valentin Fernandez <tinchofernandez8@gmail.com>
2025-09-17 12:51:33 -03:00
rajk93
f6bb408b56
fix: signing extrinsics on ledger device (#1579) 2025-07-30 16:51:55 +05:30
Tarik Gul
3d37f5918c
Update polkadot-js deps (#1571)
* Update polkadot-js deps

* chore: minor change

* chore: updated yarn.lock

* fix: tests

* fix: lint issues

* fix: build issues

* fix: replace sleep with waitForRateLimit for better rate limiting in tests

* Revert "fix: replace sleep with waitForRateLimit for better rate limiting in tests"

* fix: increase sleep duration in tests for better stability

* fix: remove sleep function and update State constructor for rate limiting

* chore: minor change

---------

Co-authored-by: Arjun Porwal <porwalarjun95@gmail.com>
2025-07-04 15:07:41 +03:00
rajk93
1202a5d0c6
Fixed missing checkmark for connected accounts (website access) (#1567)
* fix: missing checkmark for connected accounts

* fix: lint

* chore: sanitize raw ip while considering localhost urls/ip

* fix: connect accounts for authorization
2025-06-26 22:24:01 +05:30
Tarik Gul
73cedbb824
2025 (#1493)
* 2025

* Enable ci execution of diff

* Update extra files

* fix webpack config header
2025-01-03 02:15:31 +02:00
Francis O'Brien
52acbc830a
feat: add cancel authorization request functionality and improve UI components (#1491) 2024-12-20 09:03:36 -05:00
Thibaut Sardan
fd94590ece
Ability to Reject an authentication request instead of ignoring it (#1453)
* Reject instead of ignore

* lint
2024-09-05 08:32:22 -04:00
Tarik Gul
61060c669d
Enable "Chain Specific App" setting (#1445)
* Allow for use of chain specific app

* Cleanup ordering of metadata check

* Update ui to 3.9.1

* Add error for when chain is null

* Add setbusy
2024-08-13 14:22:17 -04:00
Francis O'Brien
737e8b3e78
Fix SignArea and ToastProvider timeout (#1444)
* fix: correctly set and clean up signingArea alarms

* fix: revert ToastProvider to use setTimeout

* revert SignArea to use setTimeout
2024-08-12 12:03:11 -04:00
Francis O'Brien
f9d6f5f9c0
send ping before subscriptions (#1441) 2024-08-12 09:15:16 -04:00
Francis O'Brien
07605cacc1
Fix: ensure the service worker is awake before every port message (#1433)
* fix: ensure there is an open port connection before sending a port message

* chore: remove unnecessary console.log

* fix: prevent Error: Invalid url messages when setting a non http active tab

* fix test
2024-08-06 11:51:57 -04:00
Alberto Nicolas Penayo
324f66c48c
feat: add support for Ledger Migration App (#1422)
* added warning

* linting
2024-07-29 14:24:51 -03:00
Alberto Nicolas Penayo
d2f164084c
feat: Add support for the Ledger Generic App (#1408)
* initial commit

* issue with payload

* test commit

* cleanup

* Update signer and get result back to client

* Cleanup

* removed getMetadataRaw and useMetadataRaw

* updated metadata update message

* added assert checks

* updated prefix search for Ledger

* fixed ledger account import

---------

Co-authored-by: tarikgul <tariksnow37@gmail.com>
2024-07-29 09:03:36 -03:00
Ryan Lee
727c61663c
chore: update module resolution to bundler (#1387)
* chore: update module resolution to bundler

* fix: linter issues

* fix jest

* fix: build

* use import type

* lint
2024-07-08 15:15:17 -04:00
Tarik Gul
b6d42c28b5
Transition from manifest v2 to v3 for chrome (#1367)
* Update manifest.json

* replace `extension.getUrl` to `runtime.getUrl`

* Update localStorage to async chrome.storage.local

* Change action to browserAction

* fix bug

* revert async changes

* revert test change

* Fix localStorage breaking change

* .extension -> .runtime

* fix undefined behaviour

* fixed tests

* lint

* Up some callbacks to async

* Change where extractMetadata is called

* fix  in mock

* Update background field to take in type

* Change background.js to service_worker.js

* Update id and request origin for service worker

* updated chrome mock

* 13 tests passing

* Fix async issue

* switch naming back to original

* linting

* Fix linting in base

* remove timeOut

* added permission to alarms in manifest

* fixed alarms uncaught errors

* Cleanup addr for tests

---------

Co-authored-by: bee344 <alberto.penayo@parity.io>
2024-07-07 22:32:42 -04:00
Tarik Gul
0870530cb8
Adjust ui imports for deterministic bundling (#1383)
* Adjust ui imports for deterministic bundling

* Update instructions in docs
2024-07-02 11:22:50 -04:00
Ryan Lee
db6f2fd328
feat: display asset id in xcm format (#1345) 2024-04-16 08:46:51 -04:00
Ryan Lee
f92b94132e
feat(extension-ui): extrinsic asset id (#1331)
* feat(extension-ui): extrinsic asset id

* add ellipsis preview
2024-03-28 10:53:22 -04:00
Jaco
ca595cdfab
2024 (#1302)
* 2024

* 2024
2024-01-08 15:05:09 +02:00
Jaco
0870570407
Adjust styles for styled-components 6.x (#1279)
* Adjust styles for styled-components 6.x

* Additional cleanups

* Cleanups

* Adjust

* styled with <Props>

* Adjust

* Additional

* Theme jiggling

* Non-vars overrides

* Adjust

* Adjust

* Adjust
2023-08-20 09:39:29 +03:00
Jaco
8487f528bd
Bump deps (#1278) 2023-08-18 10:22:07 +03:00
Jaco
c7dac675e0
Adjust hooks for index import (#1271) 2023-07-11 11:07:38 +03:00
Jaco
4ca3237988
Use bytes wrapping from @polkadot/util (#1266) 2023-06-21 09:20:12 +03:00
Jaco
727f14f2c3
Adjust object index typings (#1265)
* Adjust object index typings

* CHANGELOG

* Bump common

* Bumpo ui

* 0.46.5

* Bump util
2023-06-12 08:50:26 +03:00
Jaco
6281664517
Bump dev (w/ eslint config adj) (#1259) 2023-05-21 12:39:36 +03:00
Jaco
350bbac74c
0.46.1 (#1252)
* 0.46.1

* Reset deps
2023-04-22 13:26:17 +03:00
Jaco
9fe7868f2c
Import cleanups (#1246) 2023-04-03 09:31:55 +03:00
Jaco
a5380d268f
Move type-only imports (w/ verbatimModuleSyntax) (#1245) 2023-04-02 11:49:57 +03:00
Giovanny Gongora
6fc725279b
change textarea for div to show the mnemonic seed (#1147) 2023-03-21 17:12:13 +02:00
Jaco
6b37a01700
Bump dev deps (#1234) 2023-03-18 12:43:16 +02:00
Jaco
16113a8a2d
Bump to TS 5.0 (#1233)
* Bump to TS 5.0

* Fix dev-test imports
2023-03-17 08:07:56 +02:00
Jaco
d8af2080a1
Bump dev (#1232)
* Bump dev

* Adjust
2023-03-15 17:16:59 +02:00
Jaco
7204a4be15
Align tsconfig to allow moduleResolution: nodenext (#1225)
* Align tsconfig to allow moduleResolution: nodenext

* Remove nodenext node.d.ts reference

* Adjust danling imports
2023-03-09 19:53:03 +02:00
Jaco
6bfddb09e8
Use .js imports in src (#1224)
* Use .js imports in src

* Bump dev

* Add WP extension aliases
2023-03-09 11:04:13 +02:00
Jaco
7316b54987
Bump dev deps (#1221) 2023-03-06 14:09:58 +02:00
Jaco
cbd60d68e3
Add empty loader for image files (#1216) 2023-02-26 14:07:04 +02:00
Jaco
c9edeea445
Bump dev deps (#1215)
* Bump dev deps

* Bump deps
2023-02-25 14:18:38 +02:00
Jaco
3b2dedc05d
Bump deps (#1213) 2023-02-20 13:13:31 +02:00
Jaco
a45f7f951c
Bump dev (#1203)
* Bump dev

* Adjust with swc-style mocks

* Comment mock imports
2023-02-05 11:02:19 +02:00
Thibaut Sardan
f1bd0d86ac
add search by address (#1198) 2023-01-25 10:44:20 +02:00
Jaco
c5a5e5f907
Bump GH actions (#1199)
* Bump GH actions

* Adjust i18next with <string>
2023-01-25 10:36:49 +02:00
Jaco
c71492a5f4
Update headers for 2023 (#1189) 2023-01-01 10:23:00 +02:00
Jaco
e65f98e6f2
Bump dev (w/ deprecation warnings) (#1185) 2022-12-14 09:04:03 +02:00