Skip to content

feat: add PumpClaw action provider#950

Open
clawd800 wants to merge 3 commits intocoinbase:mainfrom
clawd800:feat/pumpclaw-action-provider
Open

feat: add PumpClaw action provider#950
clawd800 wants to merge 3 commits intocoinbase:mainfrom
clawd800:feat/pumpclaw-action-provider

Conversation

@clawd800
Copy link

@clawd800 clawd800 commented Feb 13, 2026

Summary

Adds a PumpClaw action provider for interacting with the PumpClaw token factory and swap router on Base mainnet (Uniswap V4).

Actions Implemented

Action Description
create_token Deploy a new ERC20 token via PumpClaw factory with configurable supply and initial FDV
get_token_info Query token metadata from factory registry (name, symbol, creator, pool, etc.)
list_tokens Paginated listing of all tokens in the factory
buy_token Buy tokens with ETH via SwapRouter
sell_token Sell tokens for ETH via SwapRouter (handles ERC20 approval)
set_image_url Update token image URI (creator-only)

Contracts (Base Mainnet)

Contract Address
Factory 0xe5bCa0eDe9208f7Ee7FCAFa0415Ca3DC03e16a90
SwapRouter 0x3A9c65f4510de85F1843145d637ae895a2Fe04BE

Both contracts are verified on Basescan.

Architecture

  • Follows existing action provider patterns (similar structure to wow and moonwell providers)
  • Minimal ABIs — only the functions required for each action
  • Uses viem for ABI encoding and formatUnits for display
  • Zod schemas with address validation via isAddress
  • Automatic token approval flow in sell_token (checks allowance before approving)

Testing

Full Jest test coverage for all 6 actions:

  • Network support validation (Base mainnet only)
  • Success and failure paths for each action
  • Edge cases: insufficient balance, non-creator access, empty token lists, invalid addresses

Files

typescript/agentkit/src/action-providers/pumpclaw/
├── pumpclawActionProvider.ts       # Provider implementation (6 actions)
├── pumpclawActionProvider.test.ts  # Test suite
├── constants.ts                    # Addresses, ABIs, network helpers
├── schemas.ts                      # Zod input schemas
├── index.ts                        # Exports
└── README.md                       # Documentation

Plus one-line addition to action-providers/index.ts for the export.

Add comprehensive PumpClaw action provider for Base mainnet with the following actions:
- create_token: Create new tokens with Uniswap V4 liquidity (FREE, 0 ETH)
- get_token_info: Get detailed token information from factory registry
- list_tokens: List all tokens created on PumpClaw
- buy_token: Buy tokens with ETH via SwapRouter
- sell_token: Sell tokens for ETH via SwapRouter (with automatic approval)
- set_image_url: Update token image (creator only)

Key features:
- FREE deployment (0 ETH cost)
- 80% creator fees on all trades
- LP locked forever (cannot rug)
- Built on Uniswap V4

Factory: 0xe5bCa0eDe9208f7Ee7FCAFa0415Ca3DC03e16a90
SwapRouter: 0x3A9c65f4510de85F1843145d637ae895a2Fe04BE

Includes:
- Comprehensive test coverage with Jest mocks
- Proper Zod schemas with validation
- Error handling for all edge cases
- Network support: Base mainnet only
@cb-heimdall
Copy link

cb-heimdall commented Feb 13, 2026

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

@github-actions github-actions bot added documentation Improvements or additions to documentation action provider New action provider typescript labels Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action provider New action provider documentation Improvements or additions to documentation typescript

Development

Successfully merging this pull request may close these issues.

2 participants