- Copy paste existing integration
- cd into new project
- rename project name in
package.json
andsentio.yaml
- delete all
node_modules, package-lock.json, yarn.lock, dist
- Run
yarn install
in ROOT directory (see Using derive-sentio-utils if reusing helper repo) yarn sentio build
andyarn sentio gen
- modify
config.ts, processor.js, /utils
npx @sentio/cli login --api-key <api-key>
(create API key in sentio dashboard)yarn sentio upload --owner derive
- Always run
yarn build
inside ofderive-sentio-utils
once done with change - reference the repo in your project's
package.json
(see other packages for examples) - Run
yarn build
in 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>)