-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ts): add cross-chain swap action #156
base: master
Are you sure you want to change the base?
Conversation
🟡 Heimdall Review Status
|
Great, thank you very much for building this! Excited to get this in, going to take a look over the coming days and we'll be in touch shortly |
const walletAddress = await wallet.getDefaultAddress(); | ||
const privateKey = walletAddress.export(); | ||
|
||
console.log("Wallet address:", walletAddress.getId()); | ||
console.log("Wallet address type:", typeof walletAddress); | ||
|
||
const client = createWalletClient({ | ||
account: privateKeyToAccount(privateKey as `0x${string}`), | ||
chain: base, | ||
transport: http("https://base-mainnet.g.alchemy.com/v2/2yW47qv-8qJlPfJEg0lzt3VPSSR51H2P"), | ||
}).extend(publicActions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @jlin27 !
We are working on extending AgentKit's wallet support to a more generic interface that will simplify this flow. We anticipate releasing the wallet provider interface in next week's release. I will circle back to this PR once the wallet provider interface is in master.
cc: @murrlincoln
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to hear about the simplified wallet support coming soon!
Will check in and update once it's out. Cheers.
What changed? Why?
cross-chain-swap
enable cross-chain swaps with LiFi SDKHow was this tested?
Some excerpts from the chat:
Qualified Impact
Affected components would include
cdp-agentkit-core/typescript
andcdp-langchain/examples
. If an error occurs, would recommend removing this action.