===========================================
POP BUILD CONTRACT
===========================================

Build a smart contract

Usage: pop build [OPTIONS] [PATH]

Arguments:
  [PATH]  Directory path without flag for your project [default: current directory]

Options:
      --path <PATH>          Directory path with flag for your project [default: current directory]
  -p, --package <PACKAGE>    The package to be built
  -r, --release              For production, always build in release mode to exclude debug features
      --profile <PROFILE>    Build profile [default: debug]
  -f, --features <FEATURES>  List of features that project is built with, separated by commas
  -h, --help                 Print help

Contract options:
      --metadata <METADATA>  Which specification to use for contract metadata [possible values: ink,
                             solidity]

===========================================
USAGE
===========================================

# Build from inside contract directory
cd my-contract
pop build

# Build release (recommended for deployment)
pop build --release

# Build from outside directory
pop build --path ./my-contract --release

# Build specific package
pop build --package my-contract --release

# Build contract with Solidity ABI
pop build --release --metadata solidity

===========================================
OUTPUT FILES
===========================================

Generated in target/ink/:

my_contract.contract
  Complete deployment bundle (bytecode + metadata)
  Use this file for deployment

my_contract.polkavm
  Compiled PolkaVM bytecode

my_contract.json
  Contract metadata (ABI)
  Contains constructor and message signatures

===========================================
WHAT IT DOES
===========================================

- Compiles Rust code to PolkaVM bytecode (ink! v6)
- Generates contract metadata (ABI)
- Creates .contract bundle for deployment
- Applies optimizations in --release mode
- Generate Solidity-compatible artifacts in `target/ink/` with `--metadata solidity`:
  *.abi - Solidity ABI file for contract interaction
  *.json - Metadata compatible with Ethereum tooling

===========================================
NEXT STEPS
===========================================

pop test
pop up --use-wallet

See: test/contract.txt, up/contract.txt
