superrare-deploy
Deploy a SuperRare Sovereign ERC-721 collection through the official RARE factory using Bankr signing.
Scripts
- Builds calldata for
createSovereignBatchMint(string,string) or
createSovereignBatchMint(string,string,uint256).
- Defaults to dry-run unless
--broadcast is passed or
DRY_RUN=0.
- Submits through Bankr, waits for the onchain receipt, parses the deployed collection address from logs, and writes a JSON receipt.
Config
Default config path:
- -
config.json in this skill directory
Override with:
Expected keys:
- -
chain: mainnet, sepolia, base, or INLINECODE11 - INLINECODE12 (optional override)
- INLINECODE13 (optional override)
- INLINECODE14
- INLINECODE15 (optional)
Defaults and safety
- - Dry-run is the default. Deployment only broadcasts with
--broadcast or DRY_RUN=0. - Supported chains for RARE factory deployment are
mainnet, sepolia, base, and base-sepolia. - If
--max-tokens is omitted, the 2-argument factory call is used. - Successful broadcasts write receipts into
receipts/.
Bankr API key resolution
- 1. INLINECODE24
- INLINECODE25
- INLINECODE26
- INLINECODE27
Quick use
CODEBLOCK0
Timeouts
Optional environment variables:
- -
BANKR_SUBMIT_TIMEOUT_SECONDS (default 60) - INLINECODE30 (default
300) - INLINECODE32 (default
5)
superrare-deploy
通过使用Bankr签名,经由官方RARE工厂部署SuperRare Sovereign ERC-721集合。
脚本
- - ./scripts/deploy-via-bankr.sh --name ... --symbol ... [options]
- 为createSovereignBatchMint(string,string)或createSovereignBatchMint(string,string,uint256)构建调用数据。
- 默认执行模拟运行,除非传递--broadcast参数或设置DRY_RUN=0。
- 通过Bankr提交,等待链上回执,从日志中解析已部署的集合地址,并写入JSON回执。
配置
默认配置路径:
可通过以下方式覆盖:
- - SUPERRAREDEPLOYCONFIGFILE=/path/to/config.json
预期的键值:
- - chain:mainnet、sepolia、base或base-sepolia
- factoryAddress(可选覆盖)
- rpcUrl(可选覆盖)
- descriptionPrefix
- defaultMaxTokens(可选)
默认值与安全性
- - 默认执行模拟运行。仅当使用--broadcast或设置DRY_RUN=0时才会广播部署。
- RARE工厂部署支持的链为mainnet、sepolia、base和base-sepolia。
- 如果省略--max-tokens,则使用双参数工厂调用。
- 成功广播会将回执写入receipts/目录。
Bankr API密钥解析
- 1. BANKRAPIKEY
- systemctl --user show-environment
- ~/.openclaw/skills/bankr/config.json
- ~/.openclaw/workspace/skills/bankr/config.json
快速使用
bash
cp config.example.json config.json
./scripts/deploy-via-bankr.sh \
--name AAi Genesis \
--symbol AAI
./scripts/deploy-via-bankr.sh \
--name AAi Base Genesis \
--symbol AAI \
--chain base \
--broadcast
超时设置
可选环境变量:
- - BANKRSUBMITTIMEOUTSECONDS(默认值60)
- RECEIPTWAITTIMEOUTSECONDS(默认值300)
- RECEIPTPOLLINTERVAL_SECONDS(默认值5)