ZoneInterface

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZoneInterfaceABI = ZoneInterfaceMetaData.ABI

ZoneInterfaceABI is the input ABI used to generate the binding from. Deprecated: Use ZoneInterfaceMetaData.ABI instead.

View Source
var ZoneInterfaceMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"offerer\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"zoneHash\",\"type\":\"bytes32\"}],\"name\":\"isValidOrder\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"validOrderMagicValue\",\"type\":\"bytes4\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"offerer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"zone\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumItemType\",\"name\":\"itemType\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"identifierOrCriteria\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endAmount\",\"type\":\"uint256\"}],\"internalType\":\"structOfferItem[]\",\"name\":\"offer\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"enumItemType\",\"name\":\"itemType\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"identifierOrCriteria\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endAmount\",\"type\":\"uint256\"},{\"internalType\":\"addresspayable\",\"name\":\"recipient\",\"type\":\"address\"}],\"internalType\":\"structConsiderationItem[]\",\"name\":\"consideration\",\"type\":\"tuple[]\"},{\"internalType\":\"enumOrderType\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"zoneHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"conduitKey\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"totalOriginalConsiderationItems\",\"type\":\"uint256\"}],\"internalType\":\"structOrderParameters\",\"name\":\"parameters\",\"type\":\"tuple\"},{\"internalType\":\"uint120\",\"name\":\"numerator\",\"type\":\"uint120\"},{\"internalType\":\"uint120\",\"name\":\"denominator\",\"type\":\"uint120\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"extraData\",\"type\":\"bytes\"}],\"internalType\":\"structAdvancedOrder\",\"name\":\"order\",\"type\":\"tuple\"},{\"internalType\":\"bytes32[]\",\"name\":\"priorOrderHashes\",\"type\":\"bytes32[]\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"orderIndex\",\"type\":\"uint256\"},{\"internalType\":\"enumSide\",\"name\":\"side\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"identifier\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"criteriaProof\",\"type\":\"bytes32[]\"}],\"internalType\":\"structCriteriaResolver[]\",\"name\":\"criteriaResolvers\",\"type\":\"tuple[]\"}],\"name\":\"isValidOrderIncludingExtraData\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"validOrderMagicValue\",\"type\":\"bytes4\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

ZoneInterfaceMetaData contains all meta data concerning the ZoneInterface contract.

Functions

This section is empty.

Types

type AdvancedOrder

type AdvancedOrder struct {
	Parameters  OrderParameters
	Numerator   *big.Int
	Denominator *big.Int
	Signature   []byte
	ExtraData   []byte
}

AdvancedOrder is an auto generated low-level Go binding around an user-defined struct.

type ConsiderationItem

type ConsiderationItem struct {
	ItemType             uint8
	Token                common.Address
	IdentifierOrCriteria *big.Int
	StartAmount          *big.Int
	EndAmount            *big.Int
	Recipient            common.Address
}

ConsiderationItem is an auto generated low-level Go binding around an user-defined struct.

type CriteriaResolver

type CriteriaResolver struct {
	OrderIndex    *big.Int
	Side          uint8
	Index         *big.Int
	Identifier    *big.Int
	CriteriaProof [][32]byte
}

CriteriaResolver is an auto generated low-level Go binding around an user-defined struct.

type OfferItem

type OfferItem struct {
	ItemType             uint8
	Token                common.Address
	IdentifierOrCriteria *big.Int
	StartAmount          *big.Int
	EndAmount            *big.Int
}

OfferItem is an auto generated low-level Go binding around an user-defined struct.

type OrderParameters

type OrderParameters struct {
	Offerer                         common.Address
	Zone                            common.Address
	Offer                           []OfferItem
	Consideration                   []ConsiderationItem
	OrderType                       uint8
	StartTime                       *big.Int
	EndTime                         *big.Int
	ZoneHash                        [32]byte
	Salt                            *big.Int
	ConduitKey                      [32]byte
	TotalOriginalConsiderationItems *big.Int
}

OrderParameters is an auto generated low-level Go binding around an user-defined struct.

type ZoneInterface

type ZoneInterface struct {
	ZoneInterfaceCaller     // Read-only binding to the contract
	ZoneInterfaceTransactor // Write-only binding to the contract
	ZoneInterfaceFilterer   // Log filterer for contract events
}

ZoneInterface is an auto generated Go binding around an Ethereum contract.

func NewZoneInterface

func NewZoneInterface(address common.Address, backend bind.ContractBackend) (*ZoneInterface, error)

NewZoneInterface creates a new instance of ZoneInterface, bound to a specific deployed contract.

type ZoneInterfaceCaller

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

ZoneInterfaceCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewZoneInterfaceCaller

func NewZoneInterfaceCaller(address common.Address, caller bind.ContractCaller) (*ZoneInterfaceCaller, error)

NewZoneInterfaceCaller creates a new read-only instance of ZoneInterface, bound to a specific deployed contract.

func (*ZoneInterfaceCaller) IsValidOrder

func (_ZoneInterface *ZoneInterfaceCaller) IsValidOrder(opts *bind.CallOpts, orderHash [32]byte, caller common.Address, offerer common.Address, zoneHash [32]byte) ([4]byte, error)

IsValidOrder is a free data retrieval call binding the contract method 0x0e1d31dc.

Solidity: function isValidOrder(bytes32 orderHash, address caller, address offerer, bytes32 zoneHash) view returns(bytes4 validOrderMagicValue)

func (*ZoneInterfaceCaller) IsValidOrderIncludingExtraData

func (_ZoneInterface *ZoneInterfaceCaller) IsValidOrderIncludingExtraData(opts *bind.CallOpts, orderHash [32]byte, caller common.Address, order AdvancedOrder, priorOrderHashes [][32]byte, criteriaResolvers []CriteriaResolver) ([4]byte, error)

IsValidOrderIncludingExtraData is a free data retrieval call binding the contract method 0x33131570.

Solidity: function isValidOrderIncludingExtraData(bytes32 orderHash, address caller, ((address,address,(uint8,address,uint256,uint256,uint256)[],(uint8,address,uint256,uint256,uint256,address)[],uint8,uint256,uint256,bytes32,uint256,bytes32,uint256),uint120,uint120,bytes,bytes) order, bytes32[] priorOrderHashes, (uint256,uint8,uint256,uint256,bytes32[])[] criteriaResolvers) view returns(bytes4 validOrderMagicValue)

type ZoneInterfaceCallerRaw

type ZoneInterfaceCallerRaw struct {
	Contract *ZoneInterfaceCaller // Generic read-only contract binding to access the raw methods on
}

ZoneInterfaceCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*ZoneInterfaceCallerRaw) Call

func (_ZoneInterface *ZoneInterfaceCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ZoneInterfaceCallerSession

type ZoneInterfaceCallerSession struct {
	Contract *ZoneInterfaceCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts        // Call options to use throughout this session
}

ZoneInterfaceCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*ZoneInterfaceCallerSession) IsValidOrder

func (_ZoneInterface *ZoneInterfaceCallerSession) IsValidOrder(orderHash [32]byte, caller common.Address, offerer common.Address, zoneHash [32]byte) ([4]byte, error)

IsValidOrder is a free data retrieval call binding the contract method 0x0e1d31dc.

Solidity: function isValidOrder(bytes32 orderHash, address caller, address offerer, bytes32 zoneHash) view returns(bytes4 validOrderMagicValue)

func (*ZoneInterfaceCallerSession) IsValidOrderIncludingExtraData

func (_ZoneInterface *ZoneInterfaceCallerSession) IsValidOrderIncludingExtraData(orderHash [32]byte, caller common.Address, order AdvancedOrder, priorOrderHashes [][32]byte, criteriaResolvers []CriteriaResolver) ([4]byte, error)

IsValidOrderIncludingExtraData is a free data retrieval call binding the contract method 0x33131570.

Solidity: function isValidOrderIncludingExtraData(bytes32 orderHash, address caller, ((address,address,(uint8,address,uint256,uint256,uint256)[],(uint8,address,uint256,uint256,uint256,address)[],uint8,uint256,uint256,bytes32,uint256,bytes32,uint256),uint120,uint120,bytes,bytes) order, bytes32[] priorOrderHashes, (uint256,uint8,uint256,uint256,bytes32[])[] criteriaResolvers) view returns(bytes4 validOrderMagicValue)

type ZoneInterfaceFilterer

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

ZoneInterfaceFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewZoneInterfaceFilterer

func NewZoneInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*ZoneInterfaceFilterer, error)

NewZoneInterfaceFilterer creates a new log filterer instance of ZoneInterface, bound to a specific deployed contract.

type ZoneInterfaceRaw

type ZoneInterfaceRaw struct {
	Contract *ZoneInterface // Generic contract binding to access the raw methods on
}

ZoneInterfaceRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ZoneInterfaceRaw) Call

func (_ZoneInterface *ZoneInterfaceRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ZoneInterfaceRaw) Transact

func (_ZoneInterface *ZoneInterfaceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ZoneInterfaceRaw) Transfer

func (_ZoneInterface *ZoneInterfaceRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ZoneInterfaceSession

type ZoneInterfaceSession struct {
	Contract     *ZoneInterface    // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

ZoneInterfaceSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*ZoneInterfaceSession) IsValidOrder

func (_ZoneInterface *ZoneInterfaceSession) IsValidOrder(orderHash [32]byte, caller common.Address, offerer common.Address, zoneHash [32]byte) ([4]byte, error)

IsValidOrder is a free data retrieval call binding the contract method 0x0e1d31dc.

Solidity: function isValidOrder(bytes32 orderHash, address caller, address offerer, bytes32 zoneHash) view returns(bytes4 validOrderMagicValue)

func (*ZoneInterfaceSession) IsValidOrderIncludingExtraData

func (_ZoneInterface *ZoneInterfaceSession) IsValidOrderIncludingExtraData(orderHash [32]byte, caller common.Address, order AdvancedOrder, priorOrderHashes [][32]byte, criteriaResolvers []CriteriaResolver) ([4]byte, error)

IsValidOrderIncludingExtraData is a free data retrieval call binding the contract method 0x33131570.

Solidity: function isValidOrderIncludingExtraData(bytes32 orderHash, address caller, ((address,address,(uint8,address,uint256,uint256,uint256)[],(uint8,address,uint256,uint256,uint256,address)[],uint8,uint256,uint256,bytes32,uint256,bytes32,uint256),uint120,uint120,bytes,bytes) order, bytes32[] priorOrderHashes, (uint256,uint8,uint256,uint256,bytes32[])[] criteriaResolvers) view returns(bytes4 validOrderMagicValue)

type ZoneInterfaceTransactor

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

ZoneInterfaceTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewZoneInterfaceTransactor

func NewZoneInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*ZoneInterfaceTransactor, error)

NewZoneInterfaceTransactor creates a new write-only instance of ZoneInterface, bound to a specific deployed contract.

type ZoneInterfaceTransactorRaw

type ZoneInterfaceTransactorRaw struct {
	Contract *ZoneInterfaceTransactor // Generic write-only contract binding to access the raw methods on
}

ZoneInterfaceTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ZoneInterfaceTransactorRaw) Transact

func (_ZoneInterface *ZoneInterfaceTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ZoneInterfaceTransactorRaw) Transfer

func (_ZoneInterface *ZoneInterfaceTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ZoneInterfaceTransactorSession

type ZoneInterfaceTransactorSession struct {
	Contract     *ZoneInterfaceTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts        // Transaction auth options to use throughout this session
}

ZoneInterfaceTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

Jump to

Keyboard shortcuts

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