===========================================
POP UP CHAIN
===========================================

Deploy a chain (parachain)

Usage: pop up [OPTIONS] [PATH]
       pop up <COMMAND>

Commands:
  network   Launch a local network by specifying a network configuration file
  paseo     Launch a local Paseo network
  kusama    Launch a local Kusama network
  polkadot  Launch a local Polkadot network
  westend   Launch a local Westend network

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

Options:
      --path <PATH>  Path to the project directory
  -h, --help         Print help

Chain deployment options:
  -i, --id <ID>                        ID to use. If not specified, a new ID will be reserved
      --skip-registration              Flag to skip the registration step and only deploy
      --chain-spec <CHAIN_SPEC>        Path to the chain spec file. If provided, it will be used
                                       to generate genesis artifacts
  -G, --genesis-state <GENESIS_STATE>  Path to the genesis state file. If not specified, it will
                                       be generated
  -C, --genesis-code <GENESIS_CODE>    Path to the genesis code file. If not specified, it will
                                       be generated
      --relay-chain-url <RELAY_CHAIN_URL>  Websocket endpoint of the relay chain
      --proxy <PROXIED_ADDRESS>        Proxied address. Your account must be registered as a
                                       proxy which can act on behalf of this account
      --profile <PROFILE>              Build profile [default: release]

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

# Launch local network (development)
cd my-chain
pop up

# Launch specific relay chain
pop up polkadot
pop up kusama
pop up westend
pop up paseo

# Deploy to testnet with specific ID
pop up --id 2000 --relay-chain-url wss://paseo-rpc.dwellir.com

# Deploy with custom chain spec
pop up --chain-spec ./my-spec.json --relay-chain-url wss://paseo-rpc.dwellir.com

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

Local Network (pop up):
- Launches relay chain (Polkadot/Kusama/etc)
- Registers parachain ID
- Deploys your chain
- All running locally

Testnet/Mainnet Deployment:
- Reserves parachain ID
- Uploads chain runtime
- Deploys to target relay chain
- Requires funded account

===========================================
EXAMPLES
===========================================

# Start local development network
pop up

# Launch local Polkadot relay chain
pop up polkadot

# Deploy to Paseo testnet
pop up --id 4001 --relay-chain-url wss://paseo-rpc.dwellir.com

# Deploy with proxy account
pop up --id 2000 \
  --relay-chain-url wss://paseo-rpc.dwellir.com \
  --proxy 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY

# Skip registration (already registered)
pop up --id 2000 --skip-registration --relay-chain-url wss://paseo-rpc.dwellir.com

===========================================
NETWORKS
===========================================

Local Development:
  pop up polkadot
  pop up kusama
  pop up westend
  pop up paseo

Paseo Testnet (recommended):
  wss://paseo-rpc.dwellir.com
  Use for testing before mainnet

Kusama:
  wss://kusama-rpc.dwellir.com
  Production canary network

Polkadot:
  wss://polkadot-rpc.dwellir.com
  Production mainnet

===========================================
IMPORTANT
===========================================

- Parachain ID must be registered on relay chain
- Requires funded account for testnet/mainnet
- Genesis state and code generated automatically
- Use --profile release for production

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

# Save parachain ID from output
PARA_ID=2000

# Call chain extrinsic
pop call chain \
  --pallet System \
  --function remark \
  --args "Hello from my chain"

See: call/chain.txt
