GithubHelp home page GithubHelp logo

koala0x / auto-compound Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oat9002/auto-compound

0.0 0.0 0.0 260 KB

Compound and Query your staking in pancakeswap

License: MIT License

Go 99.50% Shell 0.33% Dockerfile 0.17%

auto-compound's Introduction

auto-compound

  • Query and Auto compound following threshold for cake-cake pool

Development in local

Environment is defined in .env or using command-line argument, -dev in case using the binary file. Default is production.

How to generate pancake contract interface

Prerequisite

  • docker

Step

  1. Clone pancake contract into this repository link
  2. Inside pancake-farm folder, add this config to truffle-config.js
plugins: ["@chainsafe/truffle-plugin-abigen"]
  1. Also add this command in package.json, under scripts section
"go:interface": "truffle compile && truffle run abigen MasterChef"
  1. Run yarn install

  2. Run yarn go:interface

  3. Go back to project root by cd ..

  4. Run

docker run --rm -v <path-to-project>/auto-compound/pancake-farm/abigenBindings:/sources -v <path-to-project>/auto-compound/contracts:/output ethereum/client-go:alltools-latest abigen --bin=/sources/bin/MasterChef.bin --abi=/sources/abi/MasterChef.abi --pkg=masterChef --out=/output/MasterChef.go
  1. Run sudo chmod 755 ./contracts/MasterChef.go

auto-compound's People

Contributors

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