Skip to content

FANtium/bank-launch

Repository files navigation

bank-launch

CLI for BANK token launch operations on Solana.

Prerequisites

  • Bun - Fast JavaScript runtime (v1.3.6+)
  • Surfpool - Local Solana validator for development

Installation

bun install

CLI Usage

Initialize keypairs

Generate deployer keypairs for deployment:

./bank init

Options:

  • -f, --force - Forcefully overwrite existing keypairs
  • -o, --output-dir <dir> - Output directory (default: ./secrets)

Launch token

Launch the BANK token on Solana:

./bank launch

Options:

  • -c, --cluster <cluster> - Cluster to connect to: local, devnet, mainnet (default: devnet)
  • -s, --send - Actually send the transactions (dry-run by default)
  • --seed <seed> - Seed for mint derivation (default: bank-launch)

Scripts

Script Command Description
launch:local bun run launch:local Launch token on local cluster
lint bun run lint Run Biome linter
lint:fix bun run lint:fix Run Biome linter with auto-fix
lint:fix:unsafe bun run lint:fix:unsafe Run Biome linter with unsafe auto-fix
type-check bun run type-check Run TypeScript type checking

Surfpool Commands

Manage the local Surfpool validator:

./bank surfpool start          # Start validator with TUI (default)
./bank surfpool start --no-tui # Start validator without TUI
./bank surfpool reset          # Reset validator state
./bank surfpool stop           # Stop validator

Local Development

For local development, you need to start Surfpool first:

./bank surfpool start

This starts a local Solana validator connected to devnet and airdrops SOL to all keypairs in ./secrets/.

Then in another terminal, run the launch:

./bank launch --cluster local --send

You can now run the deposit commands with

./bank deposit --cluster local user-1 1.5 # user-1 keypair deposits 1.5 SOL

About

CLI tool for orchestrating BANK token launch on Solana. Automates multi-step deployment using Metaplex Genesis Protocol with support for private/public sales, Raydium CPMM liquidity pools, and Streamflow vesting schedules.

Topics

Resources

Stars

Watchers

Forks

Contributors