soulmachine / defi-abigen

already abigen code for main defi projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

already abigen code for main defi projects


Languages

Language:Go 99.9%Language:JavaScript 0.1%