360 Secure SkillHub
360 安全技能中心

superrare-deploy

核心功能是通过Bankr调用官方RARE工厂,在以太坊(主网/Sepolia)或Base(主网/Sepolia)部署SuperRare主权ERC-721集合,默认干跑模式,仅传入--broadcast或DRY_RUN=0时实际部署,部署后自动解析合约地址并生成JSON格式可审计收据。典型场景为创作者部署专属SuperRare NFT藏品集合,可通过命令行参数或配置文件输入信息,需配置BANKR_API_KEY,依赖cast、jq、curl工具。

aaigotchi
aaigotchi
热度 56.45
最近更新 2026-05-11 17:31:57
分类:开发依赖:代码执行 / 读写文件 / 第三方 API应用场景:API 集成 / 自动化脚本 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add superrare-deploy
Metadata
name
superrare-deploy
description
Deploy a SuperRare Sovereign ERC-721 collection on Ethereum or Base via Bankr. Uses the official RARE factory createSovereignBatchMint path, dry-runs by default, and records auditable deploy receipts.
homepage
https://github.com/aaigotchi/superrare-deploy
metadata
{"openclaw":{"requires":{"bins":["cast","jq","curl"],"env":["BANKR_API_KEY"]},"primaryEnv":"BANKR_API_KEY","optionalEnv":["ETH_MAINNET_RPC","ETH_SEPOLIA_RPC","BASE_MAINNET_RPC","BASE_SEPOLIA_RPC","SUPER_RARE_DEPLOY_CONFIG_FILE","DRY_RUN","BANKR_SUBMIT_TIMEOUT_SECONDS","RECEIPT_WAIT_TIMEOUT_SECONDS","RECEIPT_POLL_INTERVAL_SECONDS"]}}

superrare-deploy

Deploy a SuperRare Sovereign ERC-721 collection through the official RARE factory using Bankr signing.

Scripts

  • ./scripts/deploy-via-bankr.sh --name ... --symbol ... [options]
    • 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:

  • SUPER_RARE_DEPLOY_CONFIG_FILE=/path/to/config.json

Expected keys:

  • chain: mainnet, sepolia, base, or base-sepolia
  • factoryAddress (optional override)
  • rpcUrl (optional override)
  • descriptionPrefix
  • defaultMaxTokens (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. BANKR_API_KEY
  2. systemctl --user show-environment
  3. ~/.openclaw/skills/bankr/config.json
  4. ~/.openclaw/workspace/skills/bankr/config.json

Quick use

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

Timeouts

Optional environment variables:

  • BANKR_SUBMIT_TIMEOUT_SECONDS (default 60)
  • RECEIPT_WAIT_TIMEOUT_SECONDS (default 300)
  • RECEIPT_POLL_INTERVAL_SECONDS (default 5)