battlechain

Deploy, verify, and manage smart contracts on BattleChain L2.

143|26|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/Cyfrin/solskill --skill battlechain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: battlechain
Source: https://github.com/Cyfrin/solskill/tree/main/skills/battlechain
Command: npx skills add https://github.com/Cyfrin/solskill --skill battlechain

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the process of deploying and managing smart contracts on BattleChain, a pre-mainnet L2 environment designed for battle-testing contracts with real funds before mainnet deployment.

Core Features & Use Cases

  • Deployment: Deploy contracts using BCScript, BCDeploy, or BCSafeHarbor inheritance, supporting CreateX and BattleChainDeployer.
  • Agreement Management: Create and manage Safe Harbor agreements for whitehat attacks.
  • Verification: Integrate contract verification with BattleChain's custom block explorer.
  • Use Case: Deploy your audited smart contracts to BattleChain, set up a Safe Harbor agreement, and prepare for whitehat testing to ensure security before mainnet launch.

Quick Start

Use the battlechain skill to deploy my contracts to BattleChain.

Frequently Asked Questions about battlechain

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is a Safe Harbor agreement for whitehat smart contract attacks?

A Safe Harbor agreement allows whitehat hackers to legally exploit and report vulnerabilities in your smart contracts deployed on BattleChain, enabling real-funds security testing before mainnet launch without legal repercussions.

How do I deploy smart contracts to BattleChain using Foundry?

To deploy smart contracts to BattleChain, inherit from BCScript or BCDeploy and use specific Foundry flags like --skip-simulation and --legacy via the battlechain-lib, leveraging CreateX and BattleChainDeployer for execution.

Why do I need to use the --skip-simulation and --legacy flags when deploying?

You need the --skip-simulation and --legacy Foundry flags to ensure successful execution on BattleChain, bypassing standard pre-deployment checks that are incompatible with its pre-mainnet L2 architecture.

Can I verify smart contracts on the BattleChain block explorer?

Yes, you can verify smart contracts by integrating your deployment process with BattleChain's custom block explorer, ensuring deployed contracts are validated and transparent for whitehat testers.

How do I set up a Safe Harbor agreement for my smart contracts?

You can create and manage Safe Harbor agreements by inheriting from BCSafeHarbor within your deployment scripts, which configures the legal framework for whitehat attacks on your BattleChain deployed contracts.

When should I battle-test smart contracts with real funds on a pre-mainnet L2?

You should battle-test smart contracts with real funds on a pre-mainnet L2 like BattleChain after auditing, ensuring your security mechanisms withstand actual financial risk before mainnet deployment.