← 返回
内容创作 Key 中文

Warren - On-Chain NFT Deploy

Deploy NFT collections permanently on MegaETH blockchain. Images stored on-chain via SSTORE2. Create and launch NFT collections with royalties, minting, and management pages.
在 MegaETH 链上永久部署 NFT,图片通过 SSTORE2 链上存储。支持创建与发行包含版税、铸造及管理页面的 NFT 合集。
planetai87
内容创作 clawhub v1.0.0 1 版本 99781.8 Key: 需要
★ 1
Stars
📥 2,266
下载
💾 137
安装
1
版本
#latest

概述

Warren NFT - On-Chain NFT Collection Deployment

Deploy complete NFT collections with permanent on-chain image storage on MegaETH testnet.

All images are stored using SSTORE2 bytecode storage in a WarrenContainer, and each collection gets its own NFT contract with minting support.

Network: MegaETH Testnet (Chain ID: 6343)

RPC: https://carrot.megaeth.com/rpc

Explorer: https://megaeth-testnet-v2.blockscout.com

How It Works

Your Images → SSTORE2 (on-chain) → WarrenContainer → WarrenLaunchedNFT
                                     /images/1.png     tokenURI renders
                                     /images/2.png     images on-chain
                                     ...
  1. Each image is deployed as a Page contract (fractal tree for >15KB images)
  2. All images are stored in a WarrenContainer NFT at /images/1.png, /images/2.png, etc.
  3. A WarrenLaunchedNFT contract is deployed referencing the container
  4. Minting is enabled and the collection is registered on megawarren.xyz

Setup (One Time)

cd {baseDir}
bash setup.sh

Get testnet ETH: https://docs.megaeth.com/faucet

Genesis Key NFT auto-mints during first deployment (free on testnet).

Deploy NFT Collection

Option 1: From Image Folder

Prepare a folder with numbered images:

my-art/
├── 1.png
├── 2.png
├── 3.png
└── ...

Deploy:

cd {baseDir}
PRIVATE_KEY=0x... node deploy-nft.js \
  --images-folder ./my-art/ \
  --name "Cool Robots" \
  --symbol "ROBOT" \
  --description "100 unique robot NFTs on-chain" \
  --max-supply 100

Option 2: Auto-Generate SVG Art

Generate unique SVG art programmatically:

cd {baseDir}
PRIVATE_KEY=0x... node deploy-nft.js \
  --generate-svg 10 \
  --name "Generative Art" \
  --symbol "GART" \
  --description "AI-generated on-chain art"

Full Configuration

PRIVATE_KEY=0x... node deploy-nft.js \
  --images-folder ./collection/ \
  --name "Cyber Punks" \
  --symbol "CPUNK" \
  --description "On-chain cyberpunk collection" \
  --max-supply 1000 \
  --whitelist-price 0.01 \
  --public-price 0.02 \
  --max-per-wallet 5 \
  --royalty-bps 500

CLI Options

OptionRequiredDefaultDescription
----------------------------------------
--images-folder *-Folder with image files
--generate-svg *-Generate random SVG art (1-256)
--name Yes-Collection name
--symbol Yes-Collection symbol (3-5 chars)
--description NoAutoCollection description
--max-supply NoImage countMaximum mintable NFTs
--whitelist-price No0Whitelist mint price in ETH
--public-price No0Public mint price in ETH
--max-per-wallet No10Mint limit per wallet
--royalty-bps No500Royalty (500 = 5%, max 1000 = 10%)

\* Either --images-folder or --generate-svg is required.

Output

After deployment, you'll receive:

🎉 NFT Collection Deployed!
============================================================
NFT Contract:  0xABC...
Container ID:  15
Image Count:   10
Max Supply:    100
Public Price:  0 ETH (Free)

📋 Management: https://megawarren.xyz/launchpad/0xABC.../
🎨 Mint Page:  https://megawarren.xyz/launchpad/0xABC.../mint
============================================================
  • Management Page: Change mint state, prices, airdrop, withdraw funds
  • Mint Page: Public-facing page for minting your NFTs

Image Requirements

  • Formats: PNG, JPG, JPEG, SVG, GIF, WebP
  • Size: Up to 500KB per image
  • Count: 1-256 images per collection
  • Naming: Sequential (1.png, 2.png) or alphabetical (auto-numbered)
  • Images >15KB are automatically split using fractal tree architecture

Gas Costs (Testnet)

ComponentEstimated Cost
--------------------------
Per image chunk (15KB)~0.002 ETH
Container minting~0.001 ETH
NFT contract deployment~0.003 ETH
10 images (small)~0.03 ETH
50 images (medium)~0.12 ETH
100 images~0.25 ETH

Stress Test Workflows

Quick Test (3 SVGs)

cd {baseDir}
PRIVATE_KEY=0x... node deploy-nft.js --generate-svg 3 --name "Quick Test" --symbol "QT"

Medium Test (20 SVGs)

cd {baseDir}
PRIVATE_KEY=0x... node deploy-nft.js --generate-svg 20 --name "Art Collection" --symbol "ART" --public-price 0.001

Full Test (100 SVGs)

cd {baseDir}
PRIVATE_KEY=0x... node deploy-nft.js --generate-svg 100 --name "Century" --symbol "C100" --max-per-wallet 3

Contract Addresses (Testnet)

ContractAddress
-------------------
Genesis Key NFT0x954a7cd0e2f03041A6Abb203f4Cfd8E62D2aa692
WarrenContainer0xabba293F4eC5811ed15549D11020Df79c7f1Fa0B
ContainerRenderer0x99D70834fdEB882297C97aD67b31B071f9c10E6D

Troubleshooting

"No ETH" → Get testnet ETH from https://docs.megaeth.com/faucet

"GenesisKeyRequired" → Genesis Key auto-mints. If failing, check balance > 0.001 ETH

"Image exceeds 500KB" → Resize or compress images before deployment

"Too many images" → Maximum 256 images per container (TypeRegistry limit)

"TooManyFiles" → Same as above, reduce image count

DB registration warning → Non-critical. Collection still works on-chain. Management/mint pages will load from on-chain data.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 16:41 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,442
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,152
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 858 📥 199,486