Skip to content

ton-defi-org/ton-src-fetcher-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ton sources fetcher example

A reference implementation of a script which:

  1. Fetches the verification contract address for a given code cell hash
  2. Checks whether the contract is deployed, which indicates verification exists
  3. Reads verification data, which is a pointer to a JSON stored in IPFS

Usage

  1. npm install
  2. npm install -g ts-node
  3. ts-node index.ts

Output should be similar to:

> ts-node index.ts
💎 Fetching IPFS link for an existing verified code cell hash
isDeployed EQDQFvw7nKq9YQnz4BeMBBYE5MckM7soy3q8EHV-UwWr4oXC true
IPFS Link ipfs://Qmd4B1Xc6hy4XsEBuRh1kRhfwCXtXfT7fimJAD2fuGdMQJ

💎 Fetching IPFS link for a nonexistent code cell hash
isDeployed EQCbX7RvnHaV148Cc-tnkWpDDju4qksbA_84WyMu-g-kHSJ9 false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published