exchange

package
v0.0.0-...-e0722c7 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(opts *bind.TransactOpts, in *opensea.Order) (buy *Order, buySig *Sig, sell *Order, sellSig *Sig, metadata [32]byte, err error)

Types

type Exchange

type Exchange struct {
	Address common.Address
	// contains filtered or unexported fields
}

func NewExchange

func NewExchange(rpc string, exchangeAddress string) (*Exchange, error)

func (Exchange) AtomicMatch

func (e Exchange) AtomicMatch(opts *bind.TransactOpts, buy *Order, buySig *Sig, sell *Order, sellSig *Sig, metadata [32]byte) (*types.Transaction, error)

type Order

type Order struct {
	Exchange           common.Address
	Maker              common.Address
	Taker              common.Address
	MakerRelayerFee    *big.Int
	TakerRelayerFee    *big.Int
	MakerProtocolFee   *big.Int
	TakerProtocolFee   *big.Int
	FeeRecipient       common.Address
	FeeMethod          opensea.FeeMethod
	Side               opensea.Side
	SaleKind           opensea.SaleKind
	Target             common.Address
	HowToCall          opensea.HowToCall
	Calldata           []byte
	ReplacementPattern []byte
	StaticTarget       common.Address
	StaticExtradata    []byte
	PaymentToken       common.Address
	BasePrice          *big.Int
	Extra              *big.Int
	ListingTime        *big.Int
	ExpirationTime     *big.Int
	Salt               *big.Int
}

type Sig

type Sig struct {
	V uint8
	R [32]byte
	S [32]byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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