Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.22 KB

File metadata and controls

58 lines (38 loc) · 1.22 KB

Router Registry

A simple smart contract that maintains a registry of validated routers with their metadata. Serves as a trusted source for router validation for other TON contracts.

Quick Start

Installation

npm install

Build Contracts

npm run build

Run Tests

npm test

Code Generation

npm run codegen

Documentation

  • Architecture - Contract structure, methods, and message flows
  • Scripts - Usage guide for all interaction scripts

Key Features

  • Router Registry: Curated list of approved routers with version and type metadata
  • Public Validation: Anyone can validate router legitimacy
  • Admin Management: Add/remove routers with batch operations support
  • Secure Ownership: Two-step admin transfer process

Usage

Interact with deployed contracts using blueprint scripts:

# Get registry state
npx blueprint run getRegistryData <registry_address>

# Validate a router
npx blueprint run validateRouter <registry_address> <router_address>

# Get all routers
npx blueprint run getAllRouters <registry_address>

See Scripts Documentation for complete usage guide.