k06a / TokenFlow

The tool is for visualizing the flow of tokens and ether transfers within a complex transaction. Built to work with 1inch, but can be helpful for other transactions as well. It uses logs and internal transfers to include both token and eth transfers in the figure.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

http://tokenflow.xyz

Example Usage setup:

var traceprocessor = require('tokenflow-geth/tools/traceProcessor');

let traceprocessorInstance = new traceprocessor({YOU PROVIDERCONNECTOR INSTANCE});

traceProcessorInstance.getTransfers("(SOME TRANSACTION HASH)");

Test transactions:

Swap Eth to ERC20 (WBTC). 0xc44e8bd76bec69ff305f0fcc3dccb2965970e145ffc083e0c27a22a06542f528

Swap eth to ERC20 (USDT). Small 0xde3db72870ee89ed21650b6874d74e139a3249b09dd380262271eb50316b0b2d

Swap ERC20 (AKRO) to Eth, multiple eth transfers 0x8d720401121afe4524bb7f6a9842af5cb347e19da9784bbc9419ec53eb563b29

Swap eth to ERC20 (MKR) with balance, multiple eth transfers 0x2e153f44f67835c4f2a85f70efe04e157c932bb5088128a4bf2ac0d41c0e1e0d

Swap ERC20 (OCEAN) to eth, multiple eth transfers 0x9639078bd27009822013c7718a1120ceaada3503b80644c9ec23f056a5337f73

Swap ERC20 (REN) to eth 0x38722e725f3ad157fb14a204891158de987a89eca58406a0911a182552e938c9

Swap ERC20 (DAI) to ERC20 (BAC) with CHI burning 0x77290eaad5271396a9610e0f852acabb8dae9a608f6236c6be1b3f1200f6dede

Swap ERC20 (USDT) to eth with CHI burning 0x1b690cc63824f68ee5e39d2cde8ac9c88139315ba79e76adc7dc9933daea40aa

Swap eth to ERC20 (ALEPH) 0xcc291510957b2a8c05d6b90a040a8a22766eee8522959600bdf4ef40ab510474

About

The tool is for visualizing the flow of tokens and ether transfers within a complex transaction. Built to work with 1inch, but can be helpful for other transactions as well. It uses logs and internal transfers to include both token and eth transfers in the figure.

License:GNU Lesser General Public License v3.0


Languages

Language:JavaScript 55.9%Language:TypeScript 42.3%Language:CSS 1.8%