Skip to content

docs(examples): add CDP integration end-to-end test harness#84

Draft
amiecorso wants to merge 1 commit into
coinbase:mainfrom
amiecorso:amie/cdp-integration-test-harness
Draft

docs(examples): add CDP integration end-to-end test harness#84
amiecorso wants to merge 1 commit into
coinbase:mainfrom
amiecorso:amie/cdp-integration-test-harness

Conversation

@amiecorso
Copy link
Copy Markdown
Contributor

Summary

  • New examples/cdp-integration-test/ directory with a two-step TypeScript harness that exercises the full CDP integration with SpendRouter against a local cdp-service stack and Base Sepolia.
  • Step 1 creates an EOA + smart wallet + spend permission, then verifies the cdp-service substitution (spender = SpendRouter, extraData = encoded routing) and the SDK dispatch decision synchronously.
  • Step 2 uses the EOA executor to actually call SpendRouter.spendAndRoute() onchain, decoding the resulting tx to prove the SDK targeted the right contract.
  • Reference run produced a successful Base Sepolia tx 0x6025f0bf... where to = SpendRouter, function = spendAndRoute.

Context

Used as pre-release verification for the CDP SpendRouter integration work. Local-stack setup, methodology, and gaps documented in the Coinbase-internal wiki writeup linked from the harness README.

Open as draft

Marking as draft — this is for internal verification/onboarding, not active maintenance. Happy to convert to ready-for-review or close depending on the team's preference for examples in this repo.

@cb-heimdall
Copy link
Copy Markdown

🟡 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants