Skip to content

Comments

feat: add WCT token, balance operation, fix disconnect timeout#16

Merged
arein merged 2 commits intomainfrom
feat/balance-wct-disconnect-timeout
Feb 24, 2026
Merged

feat: add WCT token, balance operation, fix disconnect timeout#16
arein merged 2 commits intomainfrom
feat/balance-wct-disconnect-timeout

Conversation

@arein
Copy link
Member

@arein arein commented Feb 24, 2026

Summary

  • companion-wallet: Add WCT token on Optimism (eip155:10) to the token registry, enabling fund --token wct and drain --token wct. Add balance CWP operation that returns native ETH + all registered ERC-20 balances for an account on a chain.
  • cli-sdk: Time-box relay disconnect() (5s) and transportClose() (3s) to prevent 30s+ hangs after transactions complete.

Together these changes make the companion-wallet fully usable with staking-cli: fund WCT, check balances, then stake.

Test plan

  • npm run build — all 3 packages build
  • npm run test — 142 tests pass (includes 6 new token tests + updated capabilities test)
  • npm run lint — clean
  • Manual E2E: funded WCT + ETH via companion-wallet, ran walletconnect-staking stake 0.1 1 --wallet companion successfully (approve + createLock on Optimism mainnet)
  • companion-wallet balance returns ETH, USDC, WCT balances on Optimism

🤖 Generated with Claude Code

arein and others added 2 commits February 24, 2026 17:36
Add WCT token (0xeF4461891DfB3AC8572cCf7C794664A8DD927945) to the
Optimism token registry, enabling fund/drain with --token wct.

Add balance CWP operation that returns native ETH + all registered
ERC-20 balances for an account on a chain, making it possible to
verify funds before staking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The WalletConnect relay disconnect and WebSocket transport close can
block for 30s+ waiting for acknowledgment. Add 5s and 3s timeouts
respectively so CLI commands exit promptly after transactions complete.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@arein arein merged commit f14eb4d into main Feb 24, 2026
4 checks passed
@github-actions github-actions bot mentioned this pull request Feb 24, 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.

1 participant