defiswap-dump
v1.0.3
Published
Static set of addresses (Crypto.com DeFi Swap Ethereum mainnet)
Downloads
456
Maintainers
Readme
defiswap-dump
Static set of addresses (Crypto.com DeFi Swap Ethereum mainnet). New pairs updates happen every hour at GitHub Action update.yml via uniswap-v2-loader
Data:
dump_pairs.bin2 Kb+dump_tokens.bin660 b+dump_p2tt.bin600 b+
Output format
load and subscribe` methods return collection of pools/pairs.
[
...
{
id: 6,
pair: '0x6491f4cf9c084ef8fc055eaaf735bdceccf69370',
token0: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
token1: '0xdac17f958d2ee523a2206206994597c13d831ec7'
},
...
]where:
6- pair/pool index at factory contract
0x6491f4cf9c084ef8fc055eaaf735bdceccf69370- USDT/USDC AMM contract address
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48- USDT ERC-20 token contract address
0xdac17f958d2ee523a2206206994597c13d831ec7- USDC ERC-20 token contract address
API
Same implementation as other Uniswap v2 based protocols.
Base API reference: uniswap-v2-loader.
Predefined filename with value dump & csv: false.
Usage CLI/API:
> node -e "require('defiswap-dump').load().then(pairs => console.log(pairs.length))"
> 100