contracts

package
v0.0.0-...-61bd5a7 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contracts

type Contracts struct {
	ETHFlip  FlipContract
	BATFlip  FlipContract
	USDCFlip FlipContract

	Flap FlapContract

	Flop FlopContract
}

Contracts defines the contracts used by the backend

func New

func New() Contracts

New returns new contracts

type FlapContract

type FlapContract struct {
	Address      common.Address
	ABI          abi.ABI
	ContractHTTP *flapper.Flapper
	ContractWS   *flapper.Flapper
}

FlapContract defines a flap contract

type FlipContract

type FlipContract struct {
	Address      common.Address
	ABI          abi.ABI
	ContractHTTP *flipper.Flipper
	ContractWS   *flipper.Flipper
}

FlipContract defines a flip contract

type FlopContract

type FlopContract struct {
	Address      common.Address
	ABI          abi.ABI
	ContractHTTP *flopper.Flopper
	ContractWS   *flopper.Flopper
}

FlopContract defines a flop contract

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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