Skip to content

Remove @base-org/account dependency and do not depend on Coinbase Spend Permissions#64

Merged
robdimarco-atxp merged 4 commits intomainfrom
robdimarco/atxp-308-support-farcaster-mini-apps
Sep 22, 2025
Merged

Remove @base-org/account dependency and do not depend on Coinbase Spend Permissions#64
robdimarco-atxp merged 4 commits intomainfrom
robdimarco/atxp-308-support-farcaster-mini-apps

Conversation

@robdimarco-atxp
Copy link
Copy Markdown
Contributor

@robdimarco-atxp robdimarco-atxp commented Sep 19, 2025

Summary

This shim replaces the Base Account SDK's requestSpendPermission and prepareSpendCallData functions with
new functions that are based on ERC20 approvals instead of Coinbase Spend Permissions.

The upside is that it will work with any Base wallet/connector, not just certain Coinbase app versions.

Testing

  • Updated unit tests
  • Was able to perform a transaction on Farcaster.

// Coinbase CDP Paymaster and Bundler endpoints
const COINBASE_BUNDLER_URL = 'https://api.developer.coinbase.com/rpc/v1/base';
const COINBASE_PAYMASTER_URL = 'https://api.developer.coinbase.com/rpc/v1/base';
const COINBASE_API_KEY = 'snPdXqIzOGhRkGNJvEHM5bl9Hm3yRO3m';
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@napoleond Should this be checked in?

@robdimarco-atxp robdimarco-atxp changed the title Fix unit tests after removing @base-org/account dependency Remove @base-org/account dependency and do not depend on Coinbase Spend Permissions Sep 19, 2025
@robdimarco-atxp robdimarco-atxp force-pushed the robdimarco/atxp-308-support-farcaster-mini-apps branch from ffa9eef to a15cdf8 Compare September 22, 2025 00:12
@robdimarco-atxp robdimarco-atxp force-pushed the robdimarco/atxp-308-support-farcaster-mini-apps branch from a15cdf8 to 54112a7 Compare September 22, 2025 12:22
@robdimarco-atxp robdimarco-atxp merged commit 422e09a into main Sep 22, 2025
1 check passed
@robdimarco-atxp robdimarco-atxp deleted the robdimarco/atxp-308-support-farcaster-mini-apps branch September 22, 2025 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants