Skip to content

btb-finance/btb-orbit-chain

Repository files navigation

BTB Finance - Arbitrum L3 Chain

BTB Finance is an Arbitrum Layer 3 chain built using AnyTrust and Arbitrum Orbit technology.

Website Twitter Follow

Chain Specifications

  • Chain Name: BTB Orbit
  • Chain ID: 91738291
  • Consensus: AnyTrust
  • Parent Chain: Arbitrum One
  • Features:
    • Custom token bridge
    • Optimized gas settings
    • 3-validator AnyTrust setup
    • High-performance sequencer

Prerequisites

  1. Node.js v16 or higher
  2. Access to Arbitrum One RPC
  3. Three validator addresses
  4. Sequencer address
  5. Sufficient ETH in deployer wallet

Environment Setup

  1. Clone the repository
  2. Copy .env.example to .env
  3. Fill in the required environment variables:
# Network Configuration
ARBITRUM_RPC=                  # Arbitrum One RPC URL
PRIVATE_KEY=                   # Deployer wallet private key

# Validator Setup
VALIDATOR_1_ADDRESS=           # First validator address
VALIDATOR_2_ADDRESS=           # Second validator address
VALIDATOR_3_ADDRESS=           # Third validator address

# Sequencer Configuration
SEQUENCER_ADDRESS=             # Sequencer address

# Token Bridge (Optional)
L1_TOKEN_ADDRESS=              # Address of L1 token to bridge

Deployment Steps

  1. Install dependencies:
npm install
  1. Deploy the complete L3 chain:
npx ts-node scripts/deploy-full-chain.ts

This script will:

  • Create the L3 chain
  • Configure validators
  • Set up the sequencer
  • Deploy the token bridge
  • Save all deployment information

Chain Components

1. Node Configuration

  • Located in node-config.json
  • Defines chain parameters
  • Configures AnyTrust settings
  • Sets up validator requirements

2. Chain Configuration

  • Located in orbit-config.json
  • Defines chain ID and name
  • Configures gas parameters
  • Sets up parent chain connection

3. Token Bridge

  • Enables asset transfers between L2 and L3
  • Supports ERC-20 tokens
  • Configurable gateway

Post-Deployment

After deployment, you'll receive:

  1. Chain RPC endpoint
  2. Bridge contract addresses
  3. Validator configuration
  4. Sequencer information

All information is saved in chain-deployment-info.json

Security Considerations

  1. Secure key management for:
    • Validators
    • Sequencer
    • Bridge admin
  2. Regular monitoring of:
    • Validator performance
    • Bridge operations
    • Network health

Development and Testing

  1. Test contracts:
npx hardhat test
  1. Local development:
npx hardhat node

Resources

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published