Skip to content

circlefin/solana-gateway-contracts

Repository files navigation

Circle Gateway Contracts on Solana

Commands

All commands check for installation of rust, solana CLI, and anchor CLI.

# One-time setup (installs Rust, Solana CLI, Anchor, and creates a keypair)
./run.sh setup

# Build all programs (gateway-minter and gateway-wallet)
anchor build

# Clean build artifacts
anchor clean

# Sync program IDs
anchor keys sync

# Run all tests
anchor test

# Format code (checks both Rust and TypeScript/JavaScript)
yarn format

# Auto-fix formatting issues (fixes both Rust and TypeScript/JavaScript)
yarn format:fix

# Lint code (checks both Rust and TypeScript/JavaScript)
yarn lint

The script will automatically use the correct versions of tools as specified in:

  • Anchor.toml for Solana CLI and Anchor versions
  • rust-toolchain.toml for Rust version

About

Official repository for all Solana smart contracts used by Circle Gateway

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors