Before tapping into live data from your contracts, you first need to sync them into your namespace on Spec.
Doing this is a simple 3-step process:
- Outline your contract deployments within
contracts.spec.json
. - Ensure each contract has an ABI with the same name inside the
abis/
directory. - Sync your contracts via the CLI
To sync your contracts to your namespace, run the following command from the root folder of this repository:
$ spec sync contracts
sync-contracts.mp4
All of the events in your multi-chain deployments will then be:
- Decoded
- Enriched with transaction/block/chain-level data
- Merged across chains by topic
- Published to Spec and made available as Live Tables
Additionally, all of your contracts and their respective events will then be visible on your namespace's page in the ecosystem:
⏭️ Adding contract events as Live Tables
⏭️ Writing custom, higher-level, Live Tables