pool

package
v0.0.0-...-b400eb5 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: AGPL-3.0 Imports: 19 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PoolDecorator

func PoolDecorator(db *gorm.DB, fn func(http.ResponseWriter, *http.Request, types.Pool)) func(http.ResponseWriter, *http.Request)

func PoolDecoratorBaseFee

func PoolDecoratorBaseFee(db *gorm.DB, redisClient *redis.Client, fn func(http.ResponseWriter, *http.Request, *Pool)) func(http.ResponseWriter, *http.Request)

Types

type FilterContract

type FilterContract struct {
	// contains filtered or unexported fields
}

func NewFilterContract

func NewFilterContract(address *types.Address, conn bind.ContractCaller) *FilterContract

func NewRPCFilterContract

func NewRPCFilterContract(address *types.Address, rpcURL string) (*FilterContract, error)

func (*FilterContract) Filter

func (fc *FilterContract) Filter(poolID []byte, order *types.Order) (bool, error)

type Pool

type Pool struct {
	SearchTerms     string
	Expiration      uint64
	Nonce           uint
	FeeShare        string
	ID              []byte
	Limit           uint
	SenderAddresses types.NetworkAddressMap
	FilterAddresses types.NetworkAddressMap
	// contains filtered or unexported fields
}

func (*Pool) CheckFilter

func (pool *Pool) CheckFilter(order *types.Order, networkid uint) (bool, error)

func (Pool) Count

func (pool Pool) Count(db *gorm.DB) <-chan uint

func (Pool) Fee

func (pool Pool) Fee() (*big.Int, error)

func (Pool) Filter

func (pool Pool) Filter(query *gorm.DB) (*gorm.DB, error)

func (Pool) QueryString

func (pool Pool) QueryString() string

func (*Pool) SetBaseFee

func (pool *Pool) SetBaseFee(baseFee config.BaseFee)

func (*Pool) SetConn

func (pool *Pool) SetConn(conn bind.ContractCaller)

Jump to

Keyboard shortcuts

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