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
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 : To pull all types of data for Allo Protocol
- Export Data : To export the Allo Protocol data
Our alloDataR
R package contains the codebase that pulls and parses data from Allo Protocol Indexer output.
roundDF()
projectDF()
chainProjectData(42161)
chainVoteData(42161)
allProjectData()
allVoteData()
Our alloDataR
R package contains the codebase to export any of the above data to use with any other tool.
data <- allProjectData()
write.csv(data,"~/allProjectData.csv")
data <- allVoteData()
write.csv(data,"~/allVoteData.csv")