Skip to content

Zora Coins SDK #704

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Zora Coins SDK #704

wants to merge 2 commits into from

Conversation

phdargen
Copy link
Contributor

@phdargen phdargen commented May 6, 2025

Description

Implements Zora Coins SDK integration

  • Adds ZoraActionProvider
  • Adds coinIt action to create a coin on Zora with given name, symbol, description and image
  • Image can be local file which is then uploaded to ipfs or https url
  • Requires Pinata API key to upload metadata
  • TODO: Zora SDK fails to verify ipfs:// tokenURI on their gateway. Action thus currently uses hardcoded gateway (https://gateway.pinata.cloud/), should be removed once problem fixed in Zora SDK

Tests

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

Prompt: create new zora coin with name TestInProd, symbol TP, image https://metadata-storage-ftm.s3.us-east-2.amazonaws.com/ai-image-485-1746453858028.png description Testin in prod

-------------------
{"success":true,"transactionHash":"0xc7cf2ab38edf6f54c383ce7c69d77b4d094586a82b2807489b76c7f06609e330","coinAddress":"0x779afc5b2a2D1504756ef1CFba24A4AA13ff1326","imageUri":"https://metadata-storage-ftm.s3.us-east-2.amazonaws.com/ai-image-485-1746453858028.png","uri":"ipfs://bafkreicgfrqvumrlckjs7cxu3lkmb4v6aucbjjp7uu7bnhspip6y4sh5l4","deployment":{"caller":"0xa8c1a5D3C372C65c04f91f87a43F549619A9483f","payoutRecipient":"0xa8c1a5D3C372C65c04f91f87a43F549619A9483f","platformReferrer":"0x7bf90111Ad7C22bec9E9dFf8A01A44713CC1b1B6","currency":"0x4200000000000000000000000000000000000006","uri":"https://gateway.pinata.cloud/ipfs/bafkreicgfrqvumrlckjs7cxu3lkmb4v6aucbjjp7uu7bnhspip6y4sh5l4","name":"TestInProd","symbol":"TP","coin":"0x779afc5b2a2D1504756ef1CFba24A4AA13ff1326","pool":"0x2F83E54620BcDE54d1bC65B2742059535e5eca24","version":"0.7.0"}}
-------------------
The new Zora coin has been successfully created. Here are the details:

- **Name**: TestInProd
- **Symbol**: TP
- **Coin Address**: [0x779afc5b2a2D1504756ef1CFba24A4AA13ff1326](https://etherscan.io/address/0x779afc5b2a2D1504756ef1CFba24A4AA13ff1326)
- **Image URI**: [Image Link](https://metadata-storage-ftm.s3.us-east-2.amazonaws.com/ai-image-485-1746453858028.png)
- **Deployment Transaction Hash**: [0xc7cf2ab38edf6f54c383ce7c69d77b4d094586a82b2807489b76c7f06609e330](https://etherscan.io/tx/0xc7cf2ab38edf6f54c383ce7c69d77b4d094586a82b2807489b76c7f06609e330)

Coin on Zora: https://zora.co/coin/base:0x779afc5b2a2d1504756ef1cfba24a4aa13ff1326

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 May 6, 2025 10:12
@cb-heimdall
Copy link

🟡 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
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 documentation Improvements or additions to documentation action provider New action provider typescript labels May 6, 2025
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