npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@keepix/tokens

v0.0.25

Published

Keepix Tokens And Coins List

Downloads

9

Readme

Keepix.tokens

Upload yours token, coin to get displayed in the Keepix Wallet

Add a Coin

  1. fork the project.
  2. add your coin on the coins.json file. (Take example on the others coins already in)
  3. add your icon 64x64 png in the ./icons directory.

Add a Token

  1. fork the project.
  2. add your token on the tokens.json file. (Take example on the others tokens already in)
  3. add your token icon 64x64 png in the ./icons directory.

Rpcs

Rpcs is the list of public rpc for evm blockchain and tezos.

Functions

getPriceByPoolBalance function used for compare the balance of one address in TokenA with TokenB and return the value of one tokenA in TokenB
Can be mult by an target currency like if tokenB is WETH you can multiply by ETH for having the price of tokenA in USD.

"getPriceByPoolBalance" {
  "tokenA": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599", // Address of the token you want price
  "tokenB": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", // WETH token address
  "tokenADecimals": 8, // number of decimals of the tokenA in his smart contract
  "tokenBDecimals": 18, // number of decimals of the tokenB in his smart contract
  "poolAddress": "0xceff51756c56ceffca006cd410b03ffc46dd3a58", // Pool or smart contract addres where we will compare the balances
  "blockchain": "ethereum", // target blockchain (ethereum, bsc, avalanche, ...) (WARNING: Only EVM blockchain)
  "mulBy": "ETH" // [Optionnal] this will multiply the result by the provided SYMBOL 
}

getPriceByPoolUniswapV3 function used for compare the balance of one Uniswapv3 pool address in TokenA with TokenB (tick price) and return the value of one tokenA in TokenB
Can be mult by an target currency like if tokenB is WETH you can multiply by ETH for having the price of tokenA in USD.
Works on Pancakeswapv3 and Uniswapv3 (on bsc and ethereum)

"getPriceByPoolBalance" {
  "tokenA": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599", // Address of the token you want price
  "tokenB": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", // WETH token address
  "tokenADecimals": 8, // number of decimals of the tokenA in his smart contract
  "tokenBDecimals": 18, // number of decimals of the tokenB in his smart contract
  "poolAddress": "0xceff51756c56ceffca006cd410b03ffc46dd3a58", // Uniswapv3 Pool addres where we will compare the balances
  "blockchain": "ethereum", // target blockchain (ethereum, bsc, avalanche, ...) (WARNING: Only EVM blockchain)
  "mulBy": "ETH" // [Optionnal] this will multiply the result by the provided SYMBOL 
}

getBalanceByQuery function
For non evm blockchain or not supported by the keepix natively you can use getBalanceByQuery function for adding one method for getting the balance of the wallet.

"getBalanceByQuery": {
      "url": "https://blockchain.info/balance?active=$address", // url of the query (Only JSON returned body is supported) $address is replaced by the wallet address
      "method": "GET", // methods GET or POST
      "body": { // body is JSON.stringify and $address is replaced by the wallet address before posting.
          "example": "of body for POST cases $address"
      },
      "resultEval": "result['$address'].final_balance" // eval executed with the variable result (result of the query JSON) for find the variable of the balance correctly also you can parse the value for returning the correct decimals.
}