-
Notifications
You must be signed in to change notification settings - Fork 90
feat: gridplus cleanup #741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
148 commits
Select commit
Hold shift + click to select a range
539650f
feat: add GridPlus Lattice hardware wallet support
gomesalexandre 48b6e24
chore: remove debug console logs from GridPlus implementation
gomesalexandre 211393a
feat: enable Solana support in GridPlus wallet
gomesalexandre 6bce868
fix: add firmware version check for Solana ED25519 support
gomesalexandre 6526fe8
feat: use SDK fetchSolanaAddresses wrapper with localStorage state
gomesalexandre 3b5abf0
feat: convert Solana address buffers to base58
gomesalexandre 48e82d6
feat: cache 10 Solana addresses from batch fetch
gomesalexandre 267973c
chore: bump versions to 1.62.4-alpha.58
gomesalexandre a64d17b
feat: YOLO implementation - BTC, Dogecoin, Solana signing all in one go
gomesalexandre 834906b
chore: bump versions to 1.62.4-alpha.59
gomesalexandre 87873b4
feat(gridplus): add Cosmos and THORChain address derivation support
gomesalexandre 8ef5c68
fix(gridplus): use bech32 v1.1.4 to match other packages
gomesalexandre e9765a8
feat(gridplus): implement getPublicKeys() for UTXO chain support
gomesalexandre d2e76be
feat(gridplus): implement Cosmos/THORChain signing and fix getPublicKeys
gomesalexandre 1092a6d
feat(gridplus): fix Cosmos/THORChain getAddress path parsing and expo…
gomesalexandre b105f2d
chore(release): publish 1.62.4-alpha.63
gomesalexandre a221d38
feat: optimize EVM address fetching and fix runtime errors
gomesalexandre 8a54185
chore(release): publish 1.62.4-alpha.64
gomesalexandre 6f63b5c
feat: fix Cosmos/THOR paths and add MAYAchain support
gomesalexandre 171306b
chore(release): publish 1.62.4-alpha.65
gomesalexandre b71c46a
fix: prevent device pairing trigger on reconnection
gomesalexandre ddab861
chore(release): publish 1.62.4-alpha.66
gomesalexandre 15b206d
debug: add comprehensive logging to GridPlus adapter and transport
gomesalexandre a4c7838
chore(release): publish 1.62.4-alpha.67
gomesalexandre 69eb8bf
fix: retry client.connect() before pairing to establish ephemeral keys
gomesalexandre 5cc3d12
chore(release): publish 1.62.4-alpha.68
gomesalexandre faeb2aa
fix(gridplus): remove client duplication bug - use SDK's getClient()
gomesalexandre 25aea58
fix: correct Cosmos SDK chain derivation paths to use full 5-level BI…
gomesalexandre 8364683
chore: bump version to 1.62.4-alpha.70
gomesalexandre 09d3b3e
feat: compress Cosmos SDK pubkeys for GridPlus
gomesalexandre 3c4dcfc
fix: Solana address caching in GridPlus
gomesalexandre 1501360
feat(gridplus): optimize device requests with store-first lookup and …
gomesalexandre 27184b2
chore(release): publish 1.62.4-alpha.73
gomesalexandre a112fc2
chore(release): publish 1.62.4-alpha.74
gomesalexandre 54bc98a
feat: simplify GridPlus to fetch single address per request
gomesalexandre 833cd06
fix: add prefix to cache key for Cosmos-based chains
gomesalexandre 0d821fd
chore(release): publish 1.62.4-alpha.75
gomesalexandre 56799b5
chore: bump to 1.62.4-alpha.75
gomesalexandre d35fd23
fix: use fetchAddresses for all UTXO coins in btcGetAddress
gomesalexandre 20e451e
feat: implement client-side address derivation for GridPlus UTXO coins
gomesalexandre b8af28c
fix(gridplus): Fix transaction signing for Solana, Bitcoin, and Cosmo…
gomesalexandre 971b0e8
fix(gridplus): add signerPath to Bitcoin prevOuts
gomesalexandre 6bc2899
fix(gridplus): harden all Solana path indices for ED25519
gomesalexandre e173aae
fix(gridplus): use SHA256 hashType for Cosmos/THOR/MAYA signing
gomesalexandre 95a3544
fix(gridplus): use ETH_MSG protocol for EIP-712 signing
gomesalexandre a5bf305
fix(gridplus): fix Bitcoin fee calculation and Solana path
gomesalexandre ce41f60
feat: optimize GridPlus reconnection with localStorage client cache
gomesalexandre f73f033
fix: GridPlus EIP-712 signing and Solana transaction support
gomesalexandre 5db155c
chore(gridplus): remove debug console.logs and process.nextTick polyfill
gomesalexandre e2f0223
chore(release): publish 1.62.4-alpha.106
gomesalexandre 974c72a
chore(gridplus): remove all debug console.logs
gomesalexandre b86a114
chore(release): publish 1.62.4-alpha.107
gomesalexandre 99c1774
refactor(gridplus): rename privKey to sessionId with documentation
gomesalexandre dab51f9
fix(gridplus): various improvements and fixes
gomesalexandre bfcc50b
docs: revert SafeCard cache isolation attempts and document findings
gomesalexandre 5bea341
feat(gridplus): clear address cache on initialize for SafeCard isolation
gomesalexandre 667339d
wip: GridPlus UTXO signing fixes and cache improvements
gomesalexandre 2496c55
feat: WEEEHEEE DOGE SIGNING WORKS
gomesalexandre 2dae532
feat: weehee
gomesalexandre 11a97c7
feat: WEEEHEE BCH SIGNING
gomesalexandre 06e8f52
chore: remove debug console.log statements from GridPlus implementation
gomesalexandre 65df154
[skip ci] chore: cleanup GridPlus transport configuration
gomesalexandre 4019510
[skip ci] chore: replace let with IIFE and remove AI comments
gomesalexandre ac92a17
[skip ci] refactor: split GridPlus gridplus.ts into constants and utils
gomesalexandre 7250736
[skip ci] refactor: deduplicate UtxoAccountType enum in GridPlus
gomesalexandre fbdbc80
[skip ci] refactor: remove redundant code from GridPlus implementation
gomesalexandre a7518db
refactor(hdwallet-gridplus): extract ethereum module and cleanup
gomesalexandre 3d16361
feat: extract Solana module for GridPlus wallet (Phase 3)
gomesalexandre ecb69f6
refactor(hdwallet-gridplus): extract Bitcoin, Cosmos, and ThorMaya ch…
gomesalexandre b1d949c
refactor(hdwallet-gridplus): improve type safety and code organization
gomesalexandre 7bf72e3
refactor(hdwallet-gridplus): remove Highlander-style type hacks
gomesalexandre 400c47b
refactor: modernize GridPlus TypeScript implementation
gomesalexandre c4ab6b7
refactor: convert remaining helper functions to arrow syntax
gomesalexandre 07f6945
fix: correct BitcoinCash script type support
gomesalexandre 4b7910f
refactor: improve GridPlus code quality and documentation
gomesalexandre 9c1527f
refactor: move ethGetAddress to ethereum.ts module [skip ci]
gomesalexandre 6d2118d
refactor(gridplus): clean up Bitcoin support and method organization
gomesalexandre a7e1991
fix: revert suspicious dependency changes in Ledger packages
gomesalexandre 5b02330
fix: revert lerna auto-changes to package.json files
gomesalexandre 897107b
chore: publish hdwallet packages to 1.62.4-alpha.184
gomesalexandre 0054076
chore: remove @types/node resolution and publish alpha.187
gomesalexandre 3a42470
chore: remove unnecessary package resolutions
gomesalexandre b3d812a
fix: revert Ledger and Trezor to @ethereumjs/common ^2.4.0
gomesalexandre 0b8609c
chore: update hdwallet to alpha.189
gomesalexandre 5128b09
chore: bump all packages to alpha.190
gomesalexandre d3493f2
chore: update hdwallet packages to alpha.200
gomesalexandre 71698cf
[skip ci] fix(gridplus): prevent wallet disconnection on modal close
gomesalexandre e6a6f4b
fix(gridplus): correct P2SH scriptPubKey generation for SegWit addresses
gomesalexandre 221c4f9
feat: tackle prettier comments
gomesalexandre 74c1c3e
fix: lint
gomesalexandre 12fdd04
fix(gridplus): use writeBigUInt64LE for Bitcoin amounts and fix funct…
gomesalexandre 9acb5be
fix(gridplus): use correct spend output for Bitcoin signing
gomesalexandre 8f573df
fix: ai spew but not so spew comment
gomesalexandre 8f95928
fix(gridplus): fix BIP143 uint32 encoding for vout/version/locktime
gomesalexandre 7598cc8
fix(gridplus): add P2SH-P2WPKH (wrapped SegWit) support for Litecoin
gomesalexandre 53e4b5e
fix(gridplus): add missing runtime dependencies to package.json
gomesalexandre 1d181b6
fix(ethereumjs): restore Ledger/Trezor/KeepKey to v3.2.0, isolate Gri…
gomesalexandre 1f274ab
high level cleanup
kaladinlight 4d320ab
Merge branch 'feat_gridplus' of github.com:shapeshift/hdwallet into f…
kaladinlight 4a77cbf
fix(gridplus): address PR feedback on device capabilities and features
gomesalexandre 542ec1c
fix(gridplus): fix solana signature and clean scripts for publishing
gomesalexandre 9c0ecb9
chore: add experimental logging to compare GridPlus address flags
gomesalexandre 69b5105
chore: add comprehensive flag testing for all chain address derivations
gomesalexandre 3a11f1e
Revert "chore: add comprehensive flag testing for all chain address d…
gomesalexandre d09bdfd
Revert "chore: add experimental logging to compare GridPlus address f…
gomesalexandre d5f8849
chore: revert experimental logging commits
gomesalexandre 23d3f80
chore: update hdwallet packages to 1.62.4-alpha.222
gomesalexandre e2e9656
fix(gridplus): correct Solana support flag inconsistency
gomesalexandre d218440
cosmossdk cleanup
kaladinlight 8be56c9
[skip ci] feat: more logs to be reverted
gomesalexandre 313f1a9
cleanup solana
kaladinlight fffe4ae
extra cosmossdk nitpicks
kaladinlight 118d544
Merge branch 'feat_gridplus' of github.com:shapeshift/hdwallet into f…
kaladinlight b38d035
ethereum cleanup
kaladinlight 8e642cd
buffer type check for extra safety
kaladinlight d5b20c2
handle null decoder def
kaladinlight 1c340be
fix signature type checks and concat
kaladinlight e6cef79
fix arbitrary ethereumjs chain ids
kaladinlight f1a2301
extra calldata checks and debug log
kaladinlight 3af26cb
fix: GridPlus transaction signing with TransactionFactory
gomesalexandre 7771b87
wip
kaladinlight a006c53
merge branch
kaladinlight 7cf5efd
mend
kaladinlight 44f271f
working bitcoin signing
kaladinlight 3659197
Merge branch 'master' into feat_gridplus_suggestions
kaladinlight ef8798d
fix tests and lint
kaladinlight 387cc32
fix tests and lint
kaladinlight 3fe11d7
remove broken p2sh case
kaladinlight b8527af
Merge branch 'feat_gridplus_suggestions' of github.com:shapeshift/hdw…
kaladinlight cfbf183
fix patch missing arg
kaladinlight 2a3abe6
Merge branch 'master' into feat_gridplus_suggestions
kaladinlight 840a36f
more patch fixes
kaladinlight effc03e
fix tests and merge
kaladinlight cfdc239
build/publish cleanup
kaladinlight 5e1447d
fix: restore _isGridPlus property for wallet detection
gomesalexandre 78d03b8
gridplus native btc signing for single output no op return data
kaladinlight 0ff803d
chore(release): publish 1.62.10-alpha.0
kaladinlight 86c4f31
chore(release): publish 1.62.10-alpha.1
kaladinlight 9378ec5
replace session id with active wallet id
kaladinlight d20f782
simplify signature extraction
kaladinlight b9786d3
debug
kaladinlight 1939f8f
chore(release): publish 1.62.10-alpha.2
kaladinlight 9758bb1
lint and update sandbox
kaladinlight fab7c52
id naming clarification
kaladinlight 421c783
remove log
kaladinlight 1fb072e
Merge origin/master into feat_gridplus_suggestions
gomesalexandre a5e861a
feat: temp yarn.lock bump
gomesalexandre ea1b172
chore(release): publish 1.62.11
gomesalexandre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -115,6 +115,7 @@ <h4>Select</h4> | |
| <button id="ledgerwebhid">Pair Ledger (webHID)</button> | ||
| <button id="portis">Pair Portis</button> | ||
| <button id="native">Pair Native</button> | ||
| <button id="gridplus">Pair GridPlus</button> | ||
| <button id="metaMask">Pair MetaMask</button> | ||
| <button id="phantom">Pair Phantom</button> | ||
| <button id="vultisig">Pair Vultisig</button> | ||
|
|
@@ -450,6 +451,40 @@ <h3>Mnemoic Required</h3> | |
| </div> | ||
| </div> | ||
|
|
||
| <div id="#deviceIdModal" class="modal" aria-hidden="true"> | ||
| <div class="modal-dialog"> | ||
| <div class="modal-header"> | ||
| <h3>Device ID Required</h3> | ||
| <p>Enter your device id</p> | ||
| </div> | ||
| <div class="modal-body"> | ||
| <form> | ||
| <input id="#deviceIdInput" type="text" /> | ||
| </form> | ||
| </div> | ||
| <div class="modal-footer"> | ||
| <button class="button button-outline" onclick="deviceIdEntered()">Pair</button> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div id="#pairingCodeModal" class="modal" aria-hidden="true"> | ||
| <div class="modal-dialog"> | ||
| <div class="modal-header"> | ||
| <h3>Pairing Code Required</h3> | ||
| <p>Enter your pairing code</p> | ||
| </div> | ||
| <div class="modal-body"> | ||
| <form> | ||
| <input id="#pairingCodeInput" type="text" /> | ||
| </form> | ||
| </div> | ||
| <div class="modal-footer"> | ||
| <button class="button button-outline" onclick="pairingCodeEntered()">Pair</button> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <script src="https://unpkg.com/[email protected]/dist/debug.js"></script> | ||
| <script type="module" src="./index.ts"></script> | ||
| </body> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.