Coder Social home page Coder Social logo

toolkit's Introduction

The Crypto Farm Toolkit

A toolkit for interacting with smart contracts

Usage: node app COMMAND [OPTIONS]

Options

  • --env file JSON file to use [defaults to env.json]
  • --token string Token contract address to interact with
  • --wbnb string WBNB Token contract to interact with [defaults to mainnet contract]
  • --router string Router contract to interact with [defaults to PCSv2]
  • --factory string Factory contract to interact with [defaults to PCS]
  • --gasLimit integer Gas limit to use [defaults to 2000000]
  • --gasPrice integer Gas Price to use [defaults to 7]
  • --deadline integer Seconds to allow transaction to process before revert [defaults to 120]
  • --slippage integer Slippage to use (percentage) [defaults to 1]
  • --depositAmount float Amount of BNB to Wrap
  • --withdrawAmount float Amount of BNB to Unrwap
  • --purchaseAmount float Amount of [token] to buy in BNB
  • --sellAmount float Amount of [token] to sell for BNB
  • --sellDelay integer SOON: Delay (in ms) to add before selling (EXPERT)
  • --sellPercent integer SOON: Percentage of [token] to sell (EXPERT)

Command List

  • approve - Approve your Tokens for sale on [router]
  • buy - Buy tokens using [router]
  • sell - Sell tokens using [router]
  • balance - Balance of BNB in wallet
  • tokenBalance - Balance of [token] in wallet
  • deposit - Wrap BNB
  • withdraw - UnWrap BNB
  • getPair - Get Pancake Pair contract from [token]
  • getReserves - Get Reserves for [token]`
  • txpool - SOON: EXPERT: Snipe direct liquidity events using [router]
  • dxsale - SOON: ELITE: Snipe dxSale finalizations

Examples

Buy 0.1 BNB Worth of CAKE

$ node app buy --token 0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82 --purchaseAmount 0.1

Sell 10 CAKE for BNB

$ node app sell --token 0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82 --sellAmount 10

Wrap 0.1 BNB using WBNB Contract

$ node app deposit --depositAmount 0.1

toolkit's People

Contributors

phatjay76 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.