Git Product home page Git Product logo

defi-abigen's Introduction

How to generate your own!

Step 1

  1. In a truffle based project, add @chainsafe/truffle-plugin-abigen

npm i --save @chainsafe/truffle-plugin-abigen

  1. then in truffle-config, add the plugin
  plugins: ["@chainsafe/truffle-plugin-abigen"],
  compilers: {
...
  1. now you run truffle run abigen
  2. then use the script i added in this repo, generate.js, the name field is the name of your contract
  3. Find the generated go files in custom_contracts directory

defi in golang

getting the abigen version of defi contracts is a pain - but i already did it for you

Includes

aave, compound, plain erc20, uniswap, chainlink price feed

example

Example included shows how to watch for aave flashloans

defi-abigen's People

Contributors

ezynda3 avatar fxfactorial avatar sdan avatar soulmachine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

defi-abigen's Issues

How to generate the Go files?

Awesome repo, and works with latest Go (1.16.3)! 👍

Could you post the steps to produce these Go files?

I'd like to create one for a standard ERC721 contract.

同学,您这个项目引入了126个开源组件,存在3个漏洞,辛苦升级一下

检测到 fxfactorial/defi-abigen 一共引入了126个开源组件,存在3个漏洞

漏洞标题:jwt-go 安全漏洞
缺陷组件:github.com/dgrijalva/[email protected]+incompatible
漏洞编号:CVE-2020-26160
漏洞描述:jwt-go是个人开发者的一个Go语言的JWT实现。
jwt-go 4.0.0-preview1之前版本存在安全漏洞。攻击者可利用该漏洞在使用[]string{} for m[\"aud\"](规范允许)的情况下绕过预期的访问限制。
影响范围:(∞, 4.0.0-preview1)
最小修复版本:4.0.0-preview1
缺陷组件引入路径:main@->github.com/dgrijalva/[email protected]+incompatible

另外还有3个漏洞,详细报告:https://mofeisec.com/jr?p=ida674

No uniswap factory

The factory is missing in the defi-abigen/contracts/uniswap/ directory, can you add it? Thanks a lot

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.