NonceManager

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 NonceManagerABI = NonceManagerMetaData.ABI

NonceManagerABI is the input ABI used to generate the binding from. Deprecated: Use NonceManagerMetaData.ABI instead.

View Source
var NonceManagerBin = NonceManagerMetaData.Bin

NonceManagerBin is the compiled bytecode used for deploying new contracts. Deprecated: Use NonceManagerMetaData.Bin instead.

View Source
var NonceManagerMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"BadFraction\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"orderIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"considerationIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortfallAmount\",\"type\":\"uint256\"}],\"name\":\"ConsiderationNotMet\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"EtherTransferGenericFailure\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientEtherSupplied\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidBasicOrderParameterEncoding\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"conduit\",\"type\":\"address\"}],\"name\":\"InvalidCallToConduit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidCanceller\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"conduitKey\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"conduit\",\"type\":\"address\"}],\"name\":\"InvalidConduit\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"InvalidMsgValue\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTime\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MissingOriginalConsiderationItems\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoReentrantCalls\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoSpecifiedOrdersAvailable\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"}],\"name\":\"OrderAlreadyFilled\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"}],\"name\":\"OrderIsCancelled\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"}],\"name\":\"OrderPartiallyFilled\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PartialFillsNotEnabledForOrder\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newNonce\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"offerer\",\"type\":\"address\"}],\"name\":\"NonceIncremented\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"offerer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"zone\",\"type\":\"address\"}],\"name\":\"OrderCancelled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"offerer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"zone\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"fulfiller\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumItemType\",\"name\":\"itemType\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"identifier\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structSpentItem[]\",\"name\":\"offer\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"enumItemType\",\"name\":\"itemType\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"identifier\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"addresspayable\",\"name\":\"recipient\",\"type\":\"address\"}],\"indexed\":false,\"internalType\":\"structReceivedItem[]\",\"name\":\"consideration\",\"type\":\"tuple[]\"}],\"name\":\"OrderFulfilled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"offerer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"zone\",\"type\":\"address\"}],\"name\":\"OrderValidated\",\"type\":\"event\"}]",
	Bin: "0x6080604052348015600f57600080fd5b506001600055603f8060226000396000f3fe6080604052600080fdfea26469706673582212202ee52e2637494ecd5f7c3a3aabe0540602afebb01aff7f1ff231396c1840396a64736f6c634300080d0033",
}

NonceManagerMetaData contains all meta data concerning the NonceManager contract.

Functions

This section is empty.

Types

type NonceManager

type NonceManager struct {
	NonceManagerCaller     // Read-only binding to the contract
	NonceManagerTransactor // Write-only binding to the contract
	NonceManagerFilterer   // Log filterer for contract events
}

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

func DeployNonceManager

func DeployNonceManager(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *NonceManager, error)

DeployNonceManager deploys a new Ethereum contract, binding an instance of NonceManager to it.

func NewNonceManager

func NewNonceManager(address common.Address, backend bind.ContractBackend) (*NonceManager, error)

NewNonceManager creates a new instance of NonceManager, bound to a specific deployed contract.

type NonceManagerCaller

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

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

func NewNonceManagerCaller

func NewNonceManagerCaller(address common.Address, caller bind.ContractCaller) (*NonceManagerCaller, error)

NewNonceManagerCaller creates a new read-only instance of NonceManager, bound to a specific deployed contract.

type NonceManagerCallerRaw

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

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

func (*NonceManagerCallerRaw) Call

func (_NonceManager *NonceManagerCallerRaw) 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 NonceManagerCallerSession

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

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

type NonceManagerFilterer

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

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

func NewNonceManagerFilterer

func NewNonceManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*NonceManagerFilterer, error)

NewNonceManagerFilterer creates a new log filterer instance of NonceManager, bound to a specific deployed contract.

func (*NonceManagerFilterer) FilterNonceIncremented

func (_NonceManager *NonceManagerFilterer) FilterNonceIncremented(opts *bind.FilterOpts, offerer []common.Address) (*NonceManagerNonceIncrementedIterator, error)

FilterNonceIncremented is a free log retrieval operation binding the contract event 0x7ab0fc7de8910a6100b24df423c3d0835534506dca9473d30c3e7df51241b2cf.

Solidity: event NonceIncremented(uint256 newNonce, address indexed offerer)

func (*NonceManagerFilterer) FilterOrderCancelled

func (_NonceManager *NonceManagerFilterer) FilterOrderCancelled(opts *bind.FilterOpts, offerer []common.Address, zone []common.Address) (*NonceManagerOrderCancelledIterator, error)

FilterOrderCancelled is a free log retrieval operation binding the contract event 0x6bacc01dbe442496068f7d234edd811f1a5f833243e0aec824f86ab861f3c90d.

Solidity: event OrderCancelled(bytes32 orderHash, address indexed offerer, address indexed zone)

func (*NonceManagerFilterer) FilterOrderFulfilled

func (_NonceManager *NonceManagerFilterer) FilterOrderFulfilled(opts *bind.FilterOpts, offerer []common.Address, zone []common.Address) (*NonceManagerOrderFulfilledIterator, error)

FilterOrderFulfilled is a free log retrieval operation binding the contract event 0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31.

Solidity: event OrderFulfilled(bytes32 orderHash, address indexed offerer, address indexed zone, address fulfiller, (uint8,address,uint256,uint256)[] offer, (uint8,address,uint256,uint256,address)[] consideration)

func (*NonceManagerFilterer) FilterOrderValidated

func (_NonceManager *NonceManagerFilterer) FilterOrderValidated(opts *bind.FilterOpts, offerer []common.Address, zone []common.Address) (*NonceManagerOrderValidatedIterator, error)

FilterOrderValidated is a free log retrieval operation binding the contract event 0xfde361574a066b44b3b5fe98a87108b7565e327327954c4faeea56a4e6491a0a.

Solidity: event OrderValidated(bytes32 orderHash, address indexed offerer, address indexed zone)

func (*NonceManagerFilterer) ParseNonceIncremented

func (_NonceManager *NonceManagerFilterer) ParseNonceIncremented(log types.Log) (*NonceManagerNonceIncremented, error)

ParseNonceIncremented is a log parse operation binding the contract event 0x7ab0fc7de8910a6100b24df423c3d0835534506dca9473d30c3e7df51241b2cf.

Solidity: event NonceIncremented(uint256 newNonce, address indexed offerer)

func (*NonceManagerFilterer) ParseOrderCancelled

func (_NonceManager *NonceManagerFilterer) ParseOrderCancelled(log types.Log) (*NonceManagerOrderCancelled, error)

ParseOrderCancelled is a log parse operation binding the contract event 0x6bacc01dbe442496068f7d234edd811f1a5f833243e0aec824f86ab861f3c90d.

Solidity: event OrderCancelled(bytes32 orderHash, address indexed offerer, address indexed zone)

func (*NonceManagerFilterer) ParseOrderFulfilled

func (_NonceManager *NonceManagerFilterer) ParseOrderFulfilled(log types.Log) (*NonceManagerOrderFulfilled, error)

ParseOrderFulfilled is a log parse operation binding the contract event 0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31.

Solidity: event OrderFulfilled(bytes32 orderHash, address indexed offerer, address indexed zone, address fulfiller, (uint8,address,uint256,uint256)[] offer, (uint8,address,uint256,uint256,address)[] consideration)

func (*NonceManagerFilterer) ParseOrderValidated

func (_NonceManager *NonceManagerFilterer) ParseOrderValidated(log types.Log) (*NonceManagerOrderValidated, error)

ParseOrderValidated is a log parse operation binding the contract event 0xfde361574a066b44b3b5fe98a87108b7565e327327954c4faeea56a4e6491a0a.

Solidity: event OrderValidated(bytes32 orderHash, address indexed offerer, address indexed zone)

func (*NonceManagerFilterer) WatchNonceIncremented

func (_NonceManager *NonceManagerFilterer) WatchNonceIncremented(opts *bind.WatchOpts, sink chan<- *NonceManagerNonceIncremented, offerer []common.Address) (event.Subscription, error)

WatchNonceIncremented is a free log subscription operation binding the contract event 0x7ab0fc7de8910a6100b24df423c3d0835534506dca9473d30c3e7df51241b2cf.

Solidity: event NonceIncremented(uint256 newNonce, address indexed offerer)

func (*NonceManagerFilterer) WatchOrderCancelled

func (_NonceManager *NonceManagerFilterer) WatchOrderCancelled(opts *bind.WatchOpts, sink chan<- *NonceManagerOrderCancelled, offerer []common.Address, zone []common.Address) (event.Subscription, error)

WatchOrderCancelled is a free log subscription operation binding the contract event 0x6bacc01dbe442496068f7d234edd811f1a5f833243e0aec824f86ab861f3c90d.

Solidity: event OrderCancelled(bytes32 orderHash, address indexed offerer, address indexed zone)

func (*NonceManagerFilterer) WatchOrderFulfilled

func (_NonceManager *NonceManagerFilterer) WatchOrderFulfilled(opts *bind.WatchOpts, sink chan<- *NonceManagerOrderFulfilled, offerer []common.Address, zone []common.Address) (event.Subscription, error)

WatchOrderFulfilled is a free log subscription operation binding the contract event 0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31.

Solidity: event OrderFulfilled(bytes32 orderHash, address indexed offerer, address indexed zone, address fulfiller, (uint8,address,uint256,uint256)[] offer, (uint8,address,uint256,uint256,address)[] consideration)

func (*NonceManagerFilterer) WatchOrderValidated

func (_NonceManager *NonceManagerFilterer) WatchOrderValidated(opts *bind.WatchOpts, sink chan<- *NonceManagerOrderValidated, offerer []common.Address, zone []common.Address) (event.Subscription, error)

WatchOrderValidated is a free log subscription operation binding the contract event 0xfde361574a066b44b3b5fe98a87108b7565e327327954c4faeea56a4e6491a0a.

Solidity: event OrderValidated(bytes32 orderHash, address indexed offerer, address indexed zone)

type NonceManagerNonceIncremented

type NonceManagerNonceIncremented struct {
	NewNonce *big.Int
	Offerer  common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

NonceManagerNonceIncremented represents a NonceIncremented event raised by the NonceManager contract.

type NonceManagerNonceIncrementedIterator

type NonceManagerNonceIncrementedIterator struct {
	Event *NonceManagerNonceIncremented // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NonceManagerNonceIncrementedIterator is returned from FilterNonceIncremented and is used to iterate over the raw logs and unpacked data for NonceIncremented events raised by the NonceManager contract.

func (*NonceManagerNonceIncrementedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*NonceManagerNonceIncrementedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NonceManagerNonceIncrementedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type NonceManagerOrderCancelled

type NonceManagerOrderCancelled struct {
	OrderHash [32]byte
	Offerer   common.Address
	Zone      common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

NonceManagerOrderCancelled represents a OrderCancelled event raised by the NonceManager contract.

type NonceManagerOrderCancelledIterator

type NonceManagerOrderCancelledIterator struct {
	Event *NonceManagerOrderCancelled // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NonceManagerOrderCancelledIterator is returned from FilterOrderCancelled and is used to iterate over the raw logs and unpacked data for OrderCancelled events raised by the NonceManager contract.

func (*NonceManagerOrderCancelledIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*NonceManagerOrderCancelledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NonceManagerOrderCancelledIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type NonceManagerOrderFulfilled

type NonceManagerOrderFulfilled struct {
	OrderHash     [32]byte
	Offerer       common.Address
	Zone          common.Address
	Fulfiller     common.Address
	Offer         []SpentItem
	Consideration []ReceivedItem
	Raw           types.Log // Blockchain specific contextual infos
}

NonceManagerOrderFulfilled represents a OrderFulfilled event raised by the NonceManager contract.

type NonceManagerOrderFulfilledIterator

type NonceManagerOrderFulfilledIterator struct {
	Event *NonceManagerOrderFulfilled // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NonceManagerOrderFulfilledIterator is returned from FilterOrderFulfilled and is used to iterate over the raw logs and unpacked data for OrderFulfilled events raised by the NonceManager contract.

func (*NonceManagerOrderFulfilledIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*NonceManagerOrderFulfilledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NonceManagerOrderFulfilledIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type NonceManagerOrderValidated

type NonceManagerOrderValidated struct {
	OrderHash [32]byte
	Offerer   common.Address
	Zone      common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

NonceManagerOrderValidated represents a OrderValidated event raised by the NonceManager contract.

type NonceManagerOrderValidatedIterator

type NonceManagerOrderValidatedIterator struct {
	Event *NonceManagerOrderValidated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

NonceManagerOrderValidatedIterator is returned from FilterOrderValidated and is used to iterate over the raw logs and unpacked data for OrderValidated events raised by the NonceManager contract.

func (*NonceManagerOrderValidatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*NonceManagerOrderValidatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NonceManagerOrderValidatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type NonceManagerRaw

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

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

func (*NonceManagerRaw) Call

func (_NonceManager *NonceManagerRaw) 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 (*NonceManagerRaw) Transact

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

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

func (*NonceManagerRaw) Transfer

func (_NonceManager *NonceManagerRaw) 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 NonceManagerSession

type NonceManagerSession struct {
	Contract     *NonceManager     // 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
}

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

type NonceManagerTransactor

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

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

func NewNonceManagerTransactor

func NewNonceManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*NonceManagerTransactor, error)

NewNonceManagerTransactor creates a new write-only instance of NonceManager, bound to a specific deployed contract.

type NonceManagerTransactorRaw

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

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

func (*NonceManagerTransactorRaw) Transact

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

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

func (*NonceManagerTransactorRaw) Transfer

func (_NonceManager *NonceManagerTransactorRaw) 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 NonceManagerTransactorSession

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

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

type ReceivedItem

type ReceivedItem struct {
	ItemType   uint8
	Token      common.Address
	Identifier *big.Int
	Amount     *big.Int
	Recipient  common.Address
}

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

type SpentItem

type SpentItem struct {
	ItemType   uint8
	Token      common.Address
	Identifier *big.Int
	Amount     *big.Int
}

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

Jump to

Keyboard shortcuts

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