Skip to content

Latest commit

 

History

History
72 lines (55 loc) · 2.4 KB

README.md

File metadata and controls

72 lines (55 loc) · 2.4 KB

Note

The project is under active development.


EFP logo


Start new PR in StackBlitz Codeflow discord chat x account

Ethereum Follow Protocol

A native Ethereum protocol for following and tagging Ethereum accounts.

onchain

This repo demonstrates how to build state from contract history according to Ethereum Follow Protocol rules.

Env Variables

Set values for base, optimism and etherum rpc urls and the address to recover history for. You can use a local rpc or a provider like Alchemy or Infura.

Installation

To install the project using Bun, follow these steps:

  1. Install Bun: If you haven't already, install Bun by running:

    curl -fsSL https://bun.sh/install | bash
  2. Clone the Repository: Clone the project repository to your local machine:

    git clone https://github.com/ethereumfollowprotocol/onchain.git
    cd onchain
  3. Install Dependencies: Use Bun to install the project dependencies:

    bun install
  4. Setup Environment Variables: Copy the .env-example file to .env and enter rpc urls and user address

    cp .env-example .env
  5. Build EFP State: fetch, parse and store EFP onchain events:

    bun run build-state
  6. Get Following By Contract Calls: Get following data using contract calls:

    bun run following-contract
  7. Get Following using built state: Get following data using locally recovered historical state:

    bun run following-history
  8. Get Followers using built state: Get follower data using locally recovered historical state:

    bun run followers-history