- in ROOT run
yarn install - cd in to packages/derive-sentio-utils and call
yarn sentio genandyarn build - go back to ROOT and run
yarn sentio build
- Copy paste existing integration
- cd into new project
- rename project name in
package.jsonandsentio.yaml - delete all
node_modules, package-lock.json, yarn.lock, dist - Run
yarn installin ROOT directory (see Using derive-sentio-utils if reusing helper repo) yarn sentio buildandyarn sentio gen- modify
config.ts, processor.js, /utils
npx @sentio/cli login --api-key <api-key>(create API key in sentio dashboard)cd <integrator package>yarn sentio upload --owner derive
- Run
yarn sentio gento generate contracts and schema - Always do
rm -rf distand runyarn buildinside ofderive-sentio-utilsonce done with change - reference the repo in your project's
package.json(see other packages for examples) - Run
yarn buildin the root repo
If adding new graphQL schemas into derive-sentio-utils, make sure to export in index.ts and re-run BOTH yarn sentio build then yarn build (order matters).
Use chisel in terminal
Run bytes32(uint(uint160(<V2_ASSET_ADDRESS>)) << 96) | bytes32(<SUB_ID>)