Skip to content
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(oft-solana): create update metadata script #1211

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

Conversation

nazreen
Copy link
Contributor

@nazreen nazreen commented Jan 30, 2025

Testing

LAYERZERO_EXAMPLES_REPOSITORY_REF=#nazreen/oft-solana/update-metadata LZ_ENABLE_SOLANA_OFT_EXAMPLE=1 npx create-lz-oapp@latest

Follow the usual steps until the create step.
After OFT has been created, you can proceed with below.

You can create your own metadata.json with contents like below:

{
    "name": "Kaos Fried Chicken",
    "symbol": "KFC",
    "description": "One Chicken, Billions of Stomachs",
    "image": "https://nandos.com.my/wp-content/uploads/2023/04/logo.png"
}

or the one I've already uploaded: https://ipfs.io/ipfs/bafkreidhlizbsd5djgulf36gjmv26cwu46tfmvoz3z5erlhvsirfqayxxy

To test the new command:

npx hardhat lz:oft:solana:update-metadata --eid <EID> --mint <MINT> --uri https://ipfs.io/ipfs/<CID>

@DanL0 DanL0 requested a review from EWCunha January 30, 2025 09:38
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.

1 participant