orderopts

package
v0.0.0-...-613d1fa Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Order             *zeroex.Order
	SetupMakerState   bool
	SetupTakerAddress common.Address
}

func (*Config) Apply

func (cfg *Config) Apply(opts ...Option) error

Apply applies the given options to the config, returning the first error encountered (if any).

type Option

type Option func(order *Config) error

func ExpirationTimeSeconds

func ExpirationTimeSeconds(expirationTimeSeconds *big.Int) Option

func FeeRecipientAddress

func FeeRecipientAddress(address common.Address) Option

func MakerAddress

func MakerAddress(address common.Address) Option

func MakerAssetAmount

func MakerAssetAmount(amount *big.Int) Option

func MakerAssetData

func MakerAssetData(assetData []byte) Option

func MakerFee

func MakerFee(amount *big.Int) Option

func MakerFeeAssetData

func MakerFeeAssetData(assetData []byte) Option

func SenderAddress

func SenderAddress(address common.Address) Option

func SetupMakerState

func SetupMakerState(b bool) Option

func SetupTakerAddress

func SetupTakerAddress(takerAddress common.Address) Option

func TakerAddress

func TakerAddress(address common.Address) Option

func TakerAssetAmount

func TakerAssetAmount(amount *big.Int) Option

func TakerAssetData

func TakerAssetData(assetData []byte) Option

Jump to

Keyboard shortcuts

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