battlechain-tutorial

Generate Foundry deployment scripts for BattleChain smart contracts.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires cyfrin/battlechain-lib, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the complex process of preparing and deploying smart contracts to BattleChain, ensuring all necessary configurations and agreements are in place for secure testing.

Core Features & Use Cases

  • Guided Deployment Wizard: Walks users through a series of questions to gather all required information for BattleChain deployment.
  • Script Generation: Automatically creates Foundry deployment scripts tailored to the user's project and BattleChain requirements.
  • Safe Harbor Agreement Creation: Facilitates the setup of legal agreements to protect whitehats during security testing.
  • Use Case: A developer wants to deploy their new DeFi protocol to BattleChain for security audits. This Skill guides them through selecting contracts, configuring bounty terms, and generating the deployment and agreement scripts.

Quick Start

Use the battlechain-tutorial skill to deploy my contracts to BattleChain.

Frequently Asked Questions about battlechain-tutorial

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

FAQPage Schema
How do I deploy smart contracts to BattleChain for a security audit?

Deploying smart contracts to BattleChain requires gathering project details and generating Foundry scripts. This process ensures a secure and compliant pre-mainnet testing environment by managing contract inventory and dependencies.

What is a Safe Harbor agreement in smart contract security testing?

A Safe Harbor agreement in smart contract security testing is a legal setup that protects whitehats during testing. It is facilitated by configuring specific bounty terms and attack mode requests before deploying to the testing network.

Can I use Foundry scripts to configure bounty terms for my DeFi protocol?

Yes, you can use generated Foundry scripts to configure bounty terms for your DeFi protocol. The deployment wizard walks you through selecting contracts and setting up the necessary terms for BattleChain security audits.

Do I need to set up attack mode requests before deploying to BattleChain?

Yes, setting up attack mode requests is required before deploying to BattleChain. Managing these requests alongside Safe Harbor agreements ensures that your pre-mainnet testing environment remains secure and compliant for whitehat auditors.

What's the best way to manage external dependencies for BattleChain deployment?

The best way to manage external dependencies for BattleChain deployment is through an automated guided wizard. It collects your project details and generates the necessary scripts to inventory contracts and handle dependencies securely.