Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.42 KB

Syncing-Contracts.md

File metadata and controls

40 lines (26 loc) · 1.42 KB

Syncing Contracts to Spec

▶️ 🍿 All about Contract Groups

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:

  1. Outline your contract deployments within contracts.spec.json.
  2. Ensure each contract has an ABI with the same name inside the abis/ directory.
  3. Sync your contracts via the CLI

Prerequisites

⚒️ Get set up with Spec

Syncing Contracts

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:

  1. Decoded
  2. Enriched with transaction/block/chain-level data
  3. Merged across chains by topic
  4. 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:

Next

⏭️ Adding contract events as Live Tables
⏭️ Writing custom, higher-level, Live Tables