Skip to content

feat: Implement wallet and browse commands for CLI#8

Open
oceanlight-cn wants to merge 2 commits into
ubounty-app:mainfrom
oceanlight-cn:main
Open

feat: Implement wallet and browse commands for CLI#8
oceanlight-cn wants to merge 2 commits into
ubounty-app:mainfrom
oceanlight-cn:main

Conversation

@oceanlight-cn

@oceanlight-cn oceanlight-cn commented Mar 8, 2026

Copy link
Copy Markdown

Summary

Implements wallet connection flow and browse subcommand for the CLI.

Features

Wallet Commands

  • ubounty wallet connect - Connect wallet address with optional ownership verification
  • ubounty wallet show - Display connected wallet
  • ubounty wallet disconnect - Remove wallet from local storage

Browse Command

  • ubounty browse - Discover available bounties from the terminal
  • Support filters: --language, --min-amount, --max-amount, --difficulty
  • Pagination with --limit and --page options
  • Clean, scannable table output using Rich

Examples

ubounty browse --language python --min 50
ubounty browse --difficulty easy --limit 20

Acceptance Criteria

Wallet

  • ✅ Store wallet config in ~/.ubounty/config.json
  • ✅ Address validation for Base network compatibility (0x + 40 hex characters)
  • ✅ Never store private keys
  • ✅ Optional signature verification to prove ownership
  • ✅ Clear warning if overwriting existing wallet

Browse

  • ubounty browse lists open bounties with title, amount, and repo
  • ✅ Support filters: --language, --min-amount, --max-amount, --difficulty
  • ✅ Output should be clean and scannable (no walls of text)
  • ✅ Pagination for large result sets

Security

  • Private keys are NEVER stored
  • Only wallet address is saved locally
  • Optional signature verification flow

Ryan added 2 commits March 8, 2026 11:23
- Add wallet connect/disconnect/show commands
- Store wallet config in ~/.ubounty/config.json
- Validate Base network addresses (0x + 40 hex chars)
- Add optional ownership verification via signature
- Never store private keys
- Show warning when overwriting existing wallet

Implements: ubounty-app#2
- Implement 'ubounty browse' command to list available bounties
- Support filters: --language, --min-amount, --max-amount, --difficulty
- Add pagination with --limit and --page options
- Use Rich table for clean, scannable output
- Include mock data fallback when API is unavailable
@oceanlight-cn oceanlight-cn changed the title feat: Implement wallet connection flow for CLI feat: Implement wallet and browse commands for CLI Mar 9, 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