config

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: 11 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseFee

type BaseFee interface {
	Get() (*big.Int, error)
	Set(*big.Int) error
}

func NewBaseFee

func NewBaseFee(client *redis.Client) BaseFee

type FeeToken

type FeeToken interface {
	Get(order *types.Order) (types.AssetData, error)
	Set(types.AssetData) error
}

func NewRpcFeeToken

func NewRpcFeeToken(rpcURL string) (FeeToken, error)

func StaticFeeToken

func StaticFeeToken(address types.AssetData) FeeToken

type TokenProxy

type TokenProxy interface {
	Get(order *types.Order) (*types.Address, error)
	GetById(order *types.Order, proxyID [4]byte) (*types.Address, error)
	Set(*types.Address) error
}

func NewRpcTokenProxy

func NewRpcTokenProxy(rpcURL string) (TokenProxy, error)

func StaticTokenProxy

func StaticTokenProxy(address *types.Address) TokenProxy

Jump to

Keyboard shortcuts

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