feat: add WalletConnect integration, fund, and withdraw commands#7
Open
arein wants to merge 1 commit intochrisling-dev:mainfrom
Open
feat: add WalletConnect integration, fund, and withdraw commands#7arein wants to merge 1 commit intochrisling-dev:mainfrom
arein wants to merge 1 commit intochrisling-dev:mainfrom
Conversation
- Add WalletConnect account type with CWP binary adapter for signing - New `hl fund <amount>` command: deposit USDC to Hyperliquid via Arbitrum bridge - Pre-flight USDC balance check, receipt verification, testnet support - New `hl withdraw <amount>` command: withdraw USDC from Hyperliquid - Address validation on --destination flag - New `lib/cwp.ts`: CWP binary adapter satisfying AbstractViemJsonRpcAccount - DB migration 002: add walletconnect account type and cwp_provider column - Account setup wizard: "Connect via WalletConnect" option with QR code flow - Account listing: conditional Provider column for WalletConnect accounts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
hyperliquid.mp4
Summary
hl fund <amount>command: deposit USDC to Hyperliquid via Arbitrum Bridge2 (approve + transfer, with pre-flight balance check and on-chain receipt verification)hl withdraw <amount>command: withdraw USDC from Hyperliquid to Arbitrum viaExchangeClient.withdraw3()lib/cwp.ts: adapter that proxiessignTypedDatato thewalletconnectCLI binary, satisfyingAbstractViemJsonRpcAccountwalletconnectaccount type andcwp_providercolumnTest plan
pnpm buildcompiles cleanhl account add→ select WalletConnect → scan QR → account savedhl account ls→ shows walletconnect account with providerhl fund 5→ deposits 5 USDC to Hyperliquid (approve + transfer confirmed on-chain)hl withdraw 5→ withdraws 5 USDC from Hyperliquid (signTypedData via WalletConnect)hl account positions→ reads positions correctly🤖 Generated with Claude Code