This file provides guidance to LLM based coding agents when working with code in this repository.
- This is a monorepo for Sugar SDK: a collection of typescript API bindings for underlying smart contracts
- It uses
npmas a package manager
- before running commands, make sure to activate appropriate node env using
nvm use - to build SDK use
cd packages/sugar-sdk && npm run build - to run tests use
npm test
- carefully study the task that is given to you
- come up with a plan
- execute the plan
- try to confirm if results look good
- run tests to verify the integrity of the system
- if test fails, iterate on the solution until all tests pass
TODO - fill this out
TODO - might drop this altogether in favor of lints via hooks
Documentation is located in @packages/docs and uses vitepress (https://vitepress.dev/). Most of the docs are generated based on inline jsdocs in the corresponding modules in @packages/sugar-sdk. For usage examples, check code in packages/demo-node.
TODO - should talk about primitives here and any additional stuff that comes up
TODO - might need to mansplain some stuff to Claude