Skip to content

ston-fi/router-registry

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published