0.16.1 • Published 3 years ago

tinyfox v0.16.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

🦊 tinyfox

Simple lightweight data aggregator for Transfer/Approval events of ERC20 and ERC721 tokens

Npm install tinyfox

How to use (In NodeJS)

(Requires a MongoDB to be installed on the local machine)

    this.tinyFox = new TinyFox()
    await this.tinyFox.init({suffix: 'development'})



    let tinyfoxConfig = {
        contractType: 'ERC20',
        contractAddress: '0xab89a7742cb10e7bce98540fd05c7d731839cf9f' ,
        startBlock: 1316824,
        
        courseBlockGap: 1000, 
        fineBlockGap: 50,
        indexRate: 10000,
        updateBlockNumberRate:60000
    } 

    this.tinyFox.startIndexing( this.web3, tinyfoxConfig )  
    
    this.tinyFox.stopIndexing()   
    
    this.tinyFox.resetState()  
    
    
    

As tinyfox indexes, it starts at 'startBlock' and is collecting events at a pace of 'courseBlockGap' blocks read per 'indexRate' of time.
It stores these events inside of a mongo database named 'tinyfox_{{suffix}}' and inside of a collection named 'event_data'

Once tinyfox synchronizes to the front of the blockchain data (current state) then it will use the 'fineBlockGap' to remain synchronized.

As tinyfox is scraping chaindata for the ERC20/ERC721 token, it is also building a cache of user balances in the tables named 'erc20_balances' and 'erc721_balances'.

Events Supported

    ERC20 Events:  Transfer, Approval, Deposit (weth), Withdrawal (weth), Mint (0xBTC)

    ERC721 Events: Transfer
0.15.8

3 years ago

0.15.9

3 years ago

0.16.0

3 years ago

0.16.1

3 years ago

0.15.4

3 years ago

0.15.5

3 years ago

0.14.6

3 years ago

0.15.6

3 years ago

0.15.7

3 years ago

0.15.0

3 years ago

0.15.1

3 years ago

0.15.2

3 years ago

0.15.3

3 years ago

0.14.5

3 years ago

0.13.6

3 years ago

0.13.7

3 years ago

0.13.8

3 years ago

0.13.9

3 years ago

0.14.0

3 years ago

0.14.1

3 years ago

0.13.2

3 years ago

0.14.2

3 years ago

0.13.3

3 years ago

0.14.3

3 years ago

0.13.4

3 years ago

0.13.5

3 years ago

0.13.0

3 years ago

0.11.0

3 years ago

0.10.0

3 years ago