Skip to content

ethereumfollowprotocol/onchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published