go-defi

command module
v0.0.0-...-682c145 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

A golang sdk for working with DeFi protocols and general utilities for working with ethereum-compatible blockchains.

packages

  • bclient
  • bindings
  • cli
  • config
  • database
  • sushiswap
  • uniswap
  • utils

bclient

Provides a wrapper around the ethclient package

bindings

Provides code generated by abigen for working with smart contracts:

  • bindings/erc20 provides generated code for working with ERC20 contracts
  • bindings/oneinch/v2 provides generated code for working with OneInch V2 router contracts
  • bindings/oneinch/v3 provides generated code for working with OneInch V3 router contracts
  • unicrypt/presalefactory provides generated code for working with UniCrypt presale factories
  • uniswap/* provides generated code for working with Uniswap V2 contracts (note these can also be used for working with the corresponding sushiswap contracts)

cli

cli package

config

configuration management package

database

database management packlage

sushiswap

Wrapper around go-ethereum's ethclient package for using sushiswap v2.

uniswap

Wrapper around go-ethereum's ethclient package for using uniswap v2.

testenv

Provides a wrapper around the SimulatedBackend allowing for an in-memory blockchain. It is particularly useful for local smart contract development, or developing backend dApps.

utils

Provides utility functions including all goethereum book utils, a helper to make bind.TransactOpts safe for concurrent use, as well as a general Blockchain interface that satisfies all functions provided by simulated backend, as well as ethclient which is useful for drop-in replacement of actual RPC clients, and test environments.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package bclient provides a wrapper around go-ethereum's ethclient package
Package bclient provides a wrapper around go-ethereum's ethclient package
bindings
Package cli provides a base cli package
Package cli provides a base cli package
Package config provides a flexible configuration management type, allowing for the usage of YAML files or environment variables.
Package config provides a flexible configuration management type, allowing for the usage of YAML files or environment variables.
Package database provides a wrapper around the gorm package providing convenience functions around database management, model creation, etc...
Package database provides a wrapper around the gorm package providing convenience functions around database management, model creation, etc...
Package sushiswap provdies a Golang client wrapper for SushiswapV2
Package sushiswap provdies a Golang client wrapper for SushiswapV2
Package uniswap provdies a Golang client wrapper for UniswapV2
Package uniswap provdies a Golang client wrapper for UniswapV2
Package utils provides a set of interfaces, helper functions, and authentication management helpers
Package utils provides a set of interfaces, helper functions, and authentication management helpers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL