Skip to content

Demonstrate how to listen to Opensea ERC1155 compatible NFT transfer event logs. The logs are converted into a unified format and persisted to a local database

Notifications You must be signed in to change notification settings

Adekoreday/ERC1155Listner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERC1155 LISTENER

This codebase consist of the following functionalities

  1. Listening to the Ethereum test or mainnet blockchain transfer event logs. The logs should be are into a unified format and persisted to a local database.

  2. dashboard rest API that returns a list of JSON objects having the following fields

  • sender address
  • receiver address
  • smart-contract address
  • balance of sender
  • balance of receiver
  • amount of token sent

To make changes

Solidity version To setup this project kindly downgrade your solidity compiler version by

brew uninstall solidity
pip3 install solc-select
solc-select install 0.4.24
solc-select use 0.4.24

Generate contract abi

solc --abi erc1155.sol | awk '/JSON ABI/{x=1;next}x' > erc1155.abi 
abigen --abi=erc1155.abi --pkg=token --out=erc1155.go

Setup mongodb using the compose file in this repo

    docker-compose up

Url of the Mongo Instance is

mongodb://localhost:27018

Run the application

go run cmd/main.go 

Pending Features

  • Rate limit and throtlling
  • unit test of core logic
  • ci pipelines config files

About

Demonstrate how to listen to Opensea ERC1155 compatible NFT transfer event logs. The logs are converted into a unified format and persisted to a local database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published