Catalog
fauziyasin-s2m4qw/walletconnect-staking

fauziyasin-s2m4qw

walletconnect-staking

Manages the walletconnect-staking CLI for WCT token staking on Optimism. Use when the user wants to stake WCT, unstake, claim rewards, check staking status, or view WCT balance.

v1.0LATEST
NewUpdated Oct 22, 2026

WalletConnect Staking CLI

Goal

Operate the walletconnect-staking CLI to stake/unstake WCT tokens, claim staking rewards, and check positions on Optimism (chain ID 10).

When to use

  • User asks to stake WCT tokens
  • User asks to unstake or withdraw staked WCT
  • User asks to claim staking rewards
  • User asks about their staking position, APY, or rewards
  • User asks about their WCT token balance
  • User mentions walletconnect-staking or WCT staking

When not to use

  • User wants basic wallet connection without staking (use walletconnect skill)
  • User wants to bridge or swap tokens across chains (use walletconnect skill — the swidge command)
  • User is working on the staking-cli source code (just edit normally)
  • User wants to interact with WCT on a chain other than Optimism

Prerequisites

  • Project ID must be configured for write commands (stake, unstake, claim). Set globally with walletconnect config set project-id <id> or override per-command with WALLETCONNECT_PROJECT_ID env var.
  • Binary is at packages/staking-cli/dist/cli.js (or globally linked as walletconnect-staking)
  • Build first if needed: npm run build -w @walletconnect/staking-cli

Commands

# Stake WCT — locks tokens for N weeks
walletconnect-staking stake <amount> <weeks>

# Unstake — withdraw all (only after lock expires)
walletconnect-staking unstake

# Claim staking rewards
walletconnect-staking claim

# Check staking position, rewards, APY (read-only)
walletconnect-staking status --address=0x...

# Check WCT balance (read-only)
walletconnect-staking balance --address=0x...

Default workflow

For write commands (stake, unstake, claim)

  1. Ensure project ID is configured (walletconnect config get project-id)
  2. Run the command — CLI auto-restores session or prompts QR connection
  3. The session must include Optimism (eip155:10). If the existing session doesn't, the CLI disconnects and requests a new one
  4. Inform the user to confirm the transaction in their wallet app
  5. Use 60s+ timeout for all wallet interaction commands

For read-only commands (status, balance)

  1. Use --address=0x... to skip wallet connection entirely
  2. Or let the CLI restore an existing session for the address
  3. No project ID needed when using --address

Important notes

  • Optimism only: All transactions happen on Optimism (chain ID 10)
  • Lock duration: Stake lock time is rounded down to the nearest week boundary
  • Approve flow: stake automatically checks allowance and sends an approve tx first if needed
  • Existing position: stake detects existing positions and calls updateLock instead of createLock
  • Unlock check: unstake refuses to run if the lock hasn't expired yet
  • Read-only shortcut: status and balance work with just --address=0x..., no wallet connection needed
  • APY formula: APY = max((stakeWeight / 1M) * -0.06464 + 12.0808, 0), adjusted by min(weeks, 104) / 52

Validation checklist

  • Project ID is configured (walletconnect config get project-id) for write commands
  • Binary is built and linked (walletconnect-staking --help works)
  • Wallet session includes Optimism chain approval
  • Transaction output (tx hash) is shown to the user
  • Timeouts are 60s+ for wallet interaction commands
  • For read-only queries, --address is used when no session is needed

Examples

Stake 100 WCT for 4 weeks

User: "Stake 100 WCT for a month"
Action: Run `walletconnect-staking stake 100 4`
Note: May send 2 transactions (approve + createLock/updateLock). Inform user to confirm each.

Check staking status

User: "What's my staking position for 0xABC...?"
Action: Run `walletconnect-staking status --address=0xABC...`
Note: No project ID or wallet connection needed.

Check WCT balance

User: "How much WCT do I have?"
Action: Run `walletconnect-staking balance --address=0x...`
Note: If no address provided, ask the user for one or use an existing session.

Overall Score

87/100

Grade

A

Excellent

Grades are signals, not a certification. Always review a skill yourself before use.

Safety

88

Quality

85

Clarity

92

Completeness

82

Summary

This skill operates the walletconnect-staking CLI to manage WCT token staking on Optimism, including stake/unstake operations, reward claims, and position queries. It provides clear command definitions, prerequisite checks, and workflow guidance for both write-heavy (stake, unstake, claim) and read-only (status, balance) operations.

Detected Capabilities

shell executionwallet connection (QR-based)transaction signingenvironment variable readconfiguration read (project-id)blockchain RPC calls

Trigger Keywords

Phrases that agents use to match this skill to user intent.

stake WCT tokensclaim staking rewardscheck staking positionWCT balance queryunstake and withdrawwalletconnect stakingoptimism staking APY

Risk Signals

INFO

Environment variable read for project ID (WALLETCONNECT_PROJECT_ID)

Prerequisites section
INFO

Wallet session restoration and QR connection flow for write commands

Default workflow section
INFO

Automatic approval transaction before stake (if allowance needed)

Important notes section
INFO

60s+ timeout requirement for wallet interaction commands

Important notes section

Use Cases

  • Stake WCT tokens for variable lock periods on Optimism
  • Unstake or withdraw staked WCT after lock expiration
  • Claim accrued staking rewards
  • Query staking position, APY, and accumulated rewards
  • Check WCT token balance for a given address
  • Manage wallet sessions with Optimism chain approval

Quality Notes

  • Excellent scope definition: skill is tightly scoped to WCT staking on Optimism only, with explicit 'when not to use' section.
  • Prerequisites are comprehensive and actionable: project ID configuration, binary location, build instructions are all clearly stated.
  • Clear separation of workflows for write vs. read-only operations, reducing confusion about when wallet connection is required.
  • Transaction flow is well-documented: approve-before-stake, existing position detection, lock expiration checks prevent common errors.
  • Examples provide concrete user intent → action mapping, making agent behavior predictable.
  • Validation checklist is practical and helps verify preconditions before command execution.
  • APY formula is mathematically explicit, enabling accurate position analysis.
  • Security consideration: read-only commands can bypass wallet connection with --address parameter, reducing friction while maintaining safety.
  • Minor: Could benefit from explicit error handling guidance (e.g., 'what if approve fails?', 'what if wallet rejects transaction?').
Model: claude-haiku-4-5-20251001Analyzed: Oct 22, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Use fauziyasin-s2m4qw/walletconnect-staking in your dev environment

Command Palette

Search for a command to run...