Skip to content

Smart Contracts for perpetual future contract decentralised exchange with tests and deployement scripts written with hardhat.

License

Notifications You must be signed in to change notification settings

Shailu-s/perpetual-contracts

Repository files navigation

Perpetuals

Generate UML diagram for solidity files

using sol2uml

   npx sol2uml ./contracts/(define file location)

using surya to get uml

   npx surya graph contracts/file location/*.sol | dot -Tpng > ImageName.png
   # example for matching engine folder 
   # npx surya graph contracts/matching-engine/*.sol  | dot -Tpng > MatchingEngine.png
   # For file 
   # npx surya graph contracts/matching-engine/MatchingEngineCore.sol | dot -Tpng > MatchingEngineCore.png

using solgraph to determine function calls and event emits

   npx solgraph ./contracts/file location > contractname.dot
   dot -Tpng contractname.dot -o contractname.png

   # example for matching engine 
   # npx solgraph ./contracts/matching-engine/MatchingEngineCore.sol > MatchingEngine.dot
   # dot -Tpng MatchingEngine.dot -o MyContract.png

Generate documentation

   npx hardhat docgen

About

Smart Contracts for perpetual future contract decentralised exchange with tests and deployement scripts written with hardhat.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published