Skip to content

feat(action-providers): add ctccActionProvider for Base Mainnet smart-contract inspection - #1686

Open
jamesbjgates-web wants to merge 2 commits into
coinbase:mainfrom
jamesbjgates-web:feat/ctcc-token-control-action-provider
Open

jamesbjgates-web wants to merge 2 commits into
coinbase:mainfrom
jamesbjgates-web:feat/ctcc-token-control-action-provider

Conversation

@jamesbjgates-web

Copy link
Copy Markdown

Summary

Adds CtccActionProvider for deterministic smart-contract authority and control inspection on Base Mainnet (eip155:8453).

Autonomous treasury and trading agents built on CDP AgentKit frequently interact with new tokens or protocol contracts. Standard retail 'risk scores' provide subjective ratings that do not prevent developer pause calls or proxy implementation upgrades from locking agent assets.

CtccActionProvider queries CTCC™ (Cinqueport Token Control Check) via the published @cinqueport/ctcc-x402@1.0.0 library to extract raw structural facts directly from the chain:

  • Contract Bytecode: Bytecode presence and byte length.
  • ERC-20 Metadata: Name, symbol, decimals, and total supply.
  • Authority & Governance: Current owner() / admin() addresses.
  • Circuit Breakers: Live paused() state detection.
  • Proxy Architecture: EIP-1967 logic implementation address and beacon pointers.

Integration Details

  • Automatically wires walletProvider: EvmWalletProvider directly into CtccClient({ signer: walletProvider }) for seamless x402 payment signing.
  • Includes checkTokenControl action with strict address validation.
  • Includes full unit test coverage and changeset.

Settlement Protocol

Operates via HTTP 402 Payment Required (x402 v2) settling $0.01 USDC (10,000 atomic units) per check to 0x14d4035290a31B81E99e2DEE26ef0a10e5Aa4d75 on Base Mainnet.

References

@cb-heimdall

Copy link
Copy Markdown

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/2
Emergency override progress: 0/5
These approvals do not satisfy normal or CODEOWNER requirements because the commit identity is unverified.
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
1 if authored by an app that is not allowlisted and lacks verified human attribution 0
Sum 2

@github-actions github-actions Bot added documentation Improvements or additions to documentation action provider New action provider typescript labels Nov 26, 2026

This branch has not been deployed

No deployments
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