Skip to content

Repository used for gathering & decoding Algorand Smart Contracts to calculate TVL & user holdings

Notifications You must be signed in to change notification settings

IsCrecTu/StateDecoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository for snippets of code used for state decoding of various Algorand applications

How to add an application type

For a new application type, create a new directory in /src/application_types (NOT IN src/common). Name it using the unique ID of your application type (e.g. TMPL for Template). Keep the ID unique but as short as possible (4 characters).

You can copy a template from /src/common/TMPL/Template.py or /src/common/TMPL/Template.ts. Afterward simply implement all the required methods to fit your new application type.

After you are done, add your new decoding file to APPLICATION_TYPES in main.py for the Python implementation and main.ts for the TypeScript implementation.

Code linting

Python:

    black .

TypeScript:

    yarn prettier --write .

About

Repository used for gathering & decoding Algorand Smart Contracts to calculate TVL & user holdings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published