Skip to content

OmniacsDAO/alloDataR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alloDataR

Introducing an R Package for Effortless Interaction with Allo Protocol Indexer Data

Our R Package simplifies the process of accessing and utilizing Allo Protocol Indexer data for analysis in R while enabling seamless export to CSV files. This package takes the complex, nested JSON output from the indexer, collects, parses, and flattens it, resulting in easily accessible single tables. This streamlined data export capability broadens the community's ability to perform analysis, as the data can even be effortlessly loaded into Excel for further examination.


Walkthrough on YouTube <<< Click Here

Install this package using

devtools::install_github("OmniacsDAO/alloDataR")

The Allo Protocol Indexer is a tool that indexes blockchain events generated by Allo contracts. The indexed data have following structure.

/{chainId}/rounds.json
/{chainId}/prices.json
/{chainId}/projects.json
/{chainId}/rounds/{roundId}/projects.json
/{chainId}/rounds/{roundId}/projects/{projectId}/votes.json
/{chainId}/rounds/{roundId}/projects/{projectId}/contributors.json
/{chainId}/rounds/{roundId}/applications.json
/{chainId}/rounds/{roundId}/applications/{applicationIndex}/votes.json
/{chainId}/rounds/{roundId}/votes.json
/{chainId}/rounds/{roundId}/contributors.json

This R package pulls all the above data and makes it available for use in R and easy CSV downloads.

The package has 2 Functionalities


Pull Data Functionality

Description

Our alloDataR R package contains the codebase that pulls and parses data from Allo Protocol Indexer output.

Walkthrough

1. Get Rounds DataFrame across all chains.

  • roundDF()

Downloading Allo Protocol Rounds

2. Get Projects DataFrame across all chains.

  • projectDF()

Downloading Allo Protocol Projects

3. Get Project wise Contribution Data for a given chain.

  • chainProjectData(42161)

Project Contribution Data (Arbitrum)

4. Get all Contributions Data for a given chain.

  • chainVoteData(42161)

Contribution Data (Arbitrum)

5. Get Project wise Contribution Data across all chains.

  • allProjectData()

Project Contribution Data (All Chains)

6. Get all Contributions Data across all chains.

  • allVoteData()

Contribution Data (All Chains)

Data Export Functionality

Description

Our alloDataR R package contains the codebase to export any of the above data to use with any other tool.

Walkthrough

Get Project wise Contribution Data across all chains

  • data <- allProjectData()
  • write.csv(data,"~/allProjectData.csv")

Get Vote wise Contribution Data across all chains

  • data <- allVoteData()
  • write.csv(data,"~/allVoteData.csv")

About

Get Data for Allo Protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages