Skip to content

Conversation

@phdargen
Copy link
Contributor

@phdargen phdargen commented Oct 1, 2025

Description

Improving clanker action with smart wallet support

  • fix metadata formatting for optional args
  • bump clanker sdk
  • fixes issue in retrieving tx logs in CdpSmartWalletProvider, where occasionally transactionReceipt is not ready even though userOp was awaited
  • [] use clanker sdk only to build tx, not to sign/submit it such that it should work with smart accounts
    -> new implementation works for server wallet, but not for smart accounts where the tx reverts (see below)

Tests

Chatbot: typescript/examples/langchain-cdp-wallet-chatbot/chatbot.ts
Network: Base mainnet

Prompt:  clank token with name Test,  symbol T and image ipfs://bafybeifpcq3hlckg76vamug6ogf3u7sgosf6pco6d6yeewuxercm4kmksi, vault  20%, lock duration 7 days, vesting 0 days, description testing

-------------------
Clanker token deployed at address 0x2767eeb10f68c7683d0bd1be18e189693268aa8e! View the transaction at 0x0d769d062e8c8af345c43e8ddd3ff09dfb333f41e0910ec3cd8a87ce232a5a72. View the token page at https://clanker.world/clanker/0x2767eeb10f68c7683d0bd1be18e189693268aa8e
-------------------
The Clanker token has been successfully deployed with the following details:

- **Token Name:** Test
- **Symbol:** T
- **Address:** [0x2767eeb10f68c7683d0bd1be18e189693268aa8e](https://clanker.world/clanker/0x2767eeb10f68c7683d0bd1be18e189693268aa8e)
- **Transaction:** [View Transaction](https://etherscan.io/tx/0x0d769d062e8c8af345c43e8ddd3ff09dfb333f41e0910ec3cd8a87ce232a5a72)


Chatbot: typescript/examples/langchain-smart-wallet-chatbot/chatbot.ts
Network: Base mainnet

Prompt:  clank token with name Test,  symbol T and image ipfs://bafybeifpcq3hlckg76vamug6ogf3u7sgosf6pco6d6yeewuxercm4kmksi, vault  20%, lock duration 7 days, vesting 0 days, description testing

-------------------
tokenConfig {
  tokenAdmin: '0xDb48aB111ea896649547c01aaaE9166DebCe11ae',
  name: 'Test',
  symbol: 'T',
  salt: '0x0000000000000000000000000000000000000000000000000000000000000000',
  image: 'ipfs://bafybeifpcq3hlckg76vamug6ogf3u7sgosf6pco6d6yeewuxercm4kmksi',
  metadata: '{"description":"testing","socialMediaUrls":[]}',
  context: '{"interface":"CDP AgentKit"}',
  originatingChainId: 8453n
}
estimateContractGas: 4440980n
estimateGas: 4440980n
receipt {
  smartAccountAddress: '0xDb48aB111ea896649547c01aaaE9166DebCe11ae',
  status: 'failed',
  userOpHash: '0xdfd52b1820820a3c40c797861c5febd4e046a41ddff772190527000881033546'
}
The transaction reverted: failed

Checklist

A couple of things to include in your PR for completeness:

  • Added documentation to all relevant README.md files
  • Added a changelog entry

@phdargen phdargen requested a review from murrlincoln as a code owner October 1, 2025 12:34
@cb-heimdall
Copy link

cb-heimdall commented Oct 1, 2025

🟡 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 0
Sum 1

@github-actions github-actions bot added action provider New action provider wallet provider New wallet provider example New example agent typescript labels Oct 1, 2025
@phdargen phdargen marked this pull request as draft October 1, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action provider New action provider example New example agent typescript wallet provider New wallet provider

Development

Successfully merging this pull request may close these issues.

2 participants