Repository navigation
feat(typescript): add RugShield action provider for pre-trade DEX swap simulation and honeypot detection - #1631
Open
ak10082247-max wants to merge 1 commit into
Conversation
…p simulation and honeypot detection
This branch has not been deployed
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.
Description
Adds the RugShield Action Provider (
@coinbase/agentkit), enabling autonomous trading agents on Base and Solana to perform sub-second, pre-trade DEX swap simulations, honeypot detection, buy/sell tax audits, and LP lock verification via x402 micropayments.Capabilities Included:
scan_token: Comprehensive pre-trade swap simulation (verifies Uniswap V2 buy/sell execution, computes exact buy/sell tax bps, checks liquidity depth, and returns trading recommendation:SAFE,CAUTION,DANGEROUS).check_honeypot: Fast boolean honeypot check to confirm whether a token can be sold on DEX pools before submitting swaps.token_god_mode: Top token holder distribution, whale cluster mapping, and smart-money orderflow breakdown.Supported networks: Base Mainnet (
8453), Base Sepolia (84532), and Solana Mainnet (5eykt...).Zero-Wallet Instant Evaluation
If no x402 payment signature is configured, the provider gracefully falls back to instant preliminary evaluation (
/v1/scan/preview) and provides 1 free daily full scan per agent. Full paid requests settle gaslessly via RFC/x402 in USDC.Tests
Unit tests included in
src/action-providers/rugshield/rugshieldActionProvider.test.ts:Checklist
typescript/agentkit/README.mdsrc/action-providers/rugshield/README.mdsrc/action-providers/index.ts.changeset/add-rugshield-action-provider.md)