0.0.4 • Published 9 months ago

celo-kit v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Celo Kit

A tool box for developers building on the Celo blockchain

Features

  • Tokens: List of top ERC20 tokens on Celo blockchain. (name, symbol, testnet and mainnet contract address)
  • TokenFn: Functions related to tokens
  • AddressFn: Utilities functions for address
  • Contract Address: List of important contract address

Install Package

Using your package manager of choice

npm i celo-kit

Example

// list of all tokens
TokenList 

// USDT token
const USDT: Token = Object.freeze({
  id: TokenId.USDT,
  symbol: TokenId.USDT,
  name: 'USDT',
  color: Color.usdcBlue,
  decimals: 6,
  address: {
    alfajores: '0xBba91F588d031469ABCCA566FE80fB1Ad8Ee3287',
    celo: '0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e',
    baklava: '0x27c586469038A1749B27BF5914DAff7A14227AfB',
  },
});

SVG icons for Tokens

import { Celo } from "celo-kit/icons"

// use in a component
function MyComponent() {

  return (
    <div>
      <img src={Celo} className="size-[50px]" />
    </div>
  )
}

Can be used in React, Svelte, Vue.js and any js library.

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago