Skip to content

Latest commit

 

History

History
76 lines (47 loc) · 1.4 KB

File metadata and controls

76 lines (47 loc) · 1.4 KB

Registry Scripts

Collection of scripts for interacting with the Registry contract.

Usage

All scripts are run via blueprint:

npx blueprint run <script_name> <arguments>

Available Scripts

1. getRegistryData.ts

Reads the current state of the Registry contract

npx blueprint run getRegistryData <registry_address>

Parameters:

  • registry_address - Registry contract address

Example:

npx blueprint run getRegistryData EQA1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef

2. validateRouter.ts

Validates a router in the registry

npx blueprint run validateRouter <registry_address> <router_address>

Parameters:

  • registry_address - Registry contract address
  • router_address - Router address to validate
  • response_address - Address to receive the response

Example:

npx blueprint run validateRouter EQA123... EQB456...

3. getAllRouters.ts

Retrieves all routers from the registry

npx blueprint run getAllRouters <registry_address>

Parameters:

  • registry_address - Registry contract address

Example:

npx blueprint run getAllRouters EQA123...

Note: The response (AllRoutersMessage) will be sent to your address containing the complete router dictionary.

Notes

  • All scripts use 0.05 TON for gas
  • queryId is automatically generated based on current timestamp