Giter Club home page Giter Club logo

erc20-ticker's Introduction

ERC20 Ticker

This repo includes docker compose configuration and erc20 image code. It can be used to set up ethereum token container for price feeds.

Development

Install dependencies:

yarn install 

Setup Environment:

  1. create a file in root named as env
  2. add following variables according your setup
export FROM_TOKEN="0x0F5D2fB29fb7d3CFeE444a200298f468908cC942"
export FROM_TOKEN_DECIMALS="18"
export TO_TOKEN="0xdAC17F958D2ee523a2206206994597C13D831ec7"
export TO_TOKEN_DECIMALS="6"
export AMOUNT_IN="500"
export PAIR_NAME="MANAUSDT"
export TICKER_MANAGER="http://localhost:8000"
export ETHER_WSS="wss://mainnet.infura.io/ws/v3/...."
  1. run source ./env to load environment variables.

Hint: AMOUNT_IN means how many units it will try to check rate, its required because pancake router increases/decrease rate according units you want to sell or buy.

To use Docker build:

  1. copy/rename docker-compose.yml.example as docker-compose.yml
  2. change contract addresses according your tokens/pair and ticker manager url.
  3. run docker-compose up -d

OPTIONAL: Please support me by contributing to project or to following BSC/ERC/MATIC address. 0x200753090BC55A39Ff790150143D28635f0E87bb

erc20-ticker's People

Contributors

r3alst avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.