CounterManager

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 CounterManagerABI = CounterManagerMetaData.ABI

CounterManagerABI is the input ABI used to generate the binding from. Deprecated: Use CounterManagerMetaData.ABI instead.

View Source
var CounterManagerBin = CounterManagerMetaData.Bin

CounterManagerBin is the compiled bytecode used for deploying new contracts. Deprecated: Use CounterManagerMetaData.Bin instead.

View Source
var CounterManagerMetaData = &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\":\"InvalidNativeOfferItem\",\"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\":\"newCounter\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"offerer\",\"type\":\"address\"}],\"name\":\"CounterIncremented\",\"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\":\"recipient\",\"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: "0x6080604052348015600f57600080fd5b506001600055603f8060226000396000f3fe6080604052600080fdfea2646970667358221220a712d54790ac90d51b65cb4179df09d1c4da5a6551c496bf63230041a9190a3864736f6c634300080d0033",
}

CounterManagerMetaData contains all meta data concerning the CounterManager contract.

Functions

This section is empty.

Types

type CounterManager

type CounterManager struct {
	CounterManagerCaller     // Read-only binding to the contract
	CounterManagerTransactor // Write-only binding to the contract
	CounterManagerFilterer   // Log filterer for contract events
}

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

func DeployCounterManager

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

DeployCounterManager deploys a new Ethereum contract, binding an instance of CounterManager to it.

func NewCounterManager

func NewCounterManager(address common.Address, backend bind.ContractBackend) (*CounterManager, error)

NewCounterManager creates a new instance of CounterManager, bound to a specific deployed contract.

type CounterManagerCaller

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

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

func NewCounterManagerCaller

func NewCounterManagerCaller(address common.Address, caller bind.ContractCaller) (*CounterManagerCaller, error)

NewCounterManagerCaller creates a new read-only instance of CounterManager, bound to a specific deployed contract.

type CounterManagerCallerRaw

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

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

func (*CounterManagerCallerRaw) Call

func (_CounterManager *CounterManagerCallerRaw) 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 CounterManagerCallerSession

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

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

type CounterManagerCounterIncremented

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

CounterManagerCounterIncremented represents a CounterIncremented event raised by the CounterManager contract.

type CounterManagerCounterIncrementedIterator

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

CounterManagerCounterIncrementedIterator is returned from FilterCounterIncremented and is used to iterate over the raw logs and unpacked data for CounterIncremented events raised by the CounterManager contract.

func (*CounterManagerCounterIncrementedIterator) Close

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

func (*CounterManagerCounterIncrementedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CounterManagerCounterIncrementedIterator) 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 CounterManagerFilterer

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

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

func NewCounterManagerFilterer

func NewCounterManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*CounterManagerFilterer, error)

NewCounterManagerFilterer creates a new log filterer instance of CounterManager, bound to a specific deployed contract.

func (*CounterManagerFilterer) FilterCounterIncremented

func (_CounterManager *CounterManagerFilterer) FilterCounterIncremented(opts *bind.FilterOpts, offerer []common.Address) (*CounterManagerCounterIncrementedIterator, error)

FilterCounterIncremented is a free log retrieval operation binding the contract event 0x721c20121297512b72821b97f5326877ea8ecf4bb9948fea5bfcb6453074d37f.

Solidity: event CounterIncremented(uint256 newCounter, address indexed offerer)

func (*CounterManagerFilterer) FilterOrderCancelled

func (_CounterManager *CounterManagerFilterer) FilterOrderCancelled(opts *bind.FilterOpts, offerer []common.Address, zone []common.Address) (*CounterManagerOrderCancelledIterator, 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 (*CounterManagerFilterer) FilterOrderFulfilled

func (_CounterManager *CounterManagerFilterer) FilterOrderFulfilled(opts *bind.FilterOpts, offerer []common.Address, zone []common.Address) (*CounterManagerOrderFulfilledIterator, 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 recipient, (uint8,address,uint256,uint256)[] offer, (uint8,address,uint256,uint256,address)[] consideration)

func (*CounterManagerFilterer) FilterOrderValidated

func (_CounterManager *CounterManagerFilterer) FilterOrderValidated(opts *bind.FilterOpts, offerer []common.Address, zone []common.Address) (*CounterManagerOrderValidatedIterator, 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 (*CounterManagerFilterer) ParseCounterIncremented

func (_CounterManager *CounterManagerFilterer) ParseCounterIncremented(log types.Log) (*CounterManagerCounterIncremented, error)

ParseCounterIncremented is a log parse operation binding the contract event 0x721c20121297512b72821b97f5326877ea8ecf4bb9948fea5bfcb6453074d37f.

Solidity: event CounterIncremented(uint256 newCounter, address indexed offerer)

func (*CounterManagerFilterer) ParseOrderCancelled

func (_CounterManager *CounterManagerFilterer) ParseOrderCancelled(log types.Log) (*CounterManagerOrderCancelled, error)

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

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

func (*CounterManagerFilterer) ParseOrderFulfilled

func (_CounterManager *CounterManagerFilterer) ParseOrderFulfilled(log types.Log) (*CounterManagerOrderFulfilled, error)

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

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

func (*CounterManagerFilterer) ParseOrderValidated

func (_CounterManager *CounterManagerFilterer) ParseOrderValidated(log types.Log) (*CounterManagerOrderValidated, error)

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

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

func (*CounterManagerFilterer) WatchCounterIncremented

func (_CounterManager *CounterManagerFilterer) WatchCounterIncremented(opts *bind.WatchOpts, sink chan<- *CounterManagerCounterIncremented, offerer []common.Address) (event.Subscription, error)

WatchCounterIncremented is a free log subscription operation binding the contract event 0x721c20121297512b72821b97f5326877ea8ecf4bb9948fea5bfcb6453074d37f.

Solidity: event CounterIncremented(uint256 newCounter, address indexed offerer)

func (*CounterManagerFilterer) WatchOrderCancelled

func (_CounterManager *CounterManagerFilterer) WatchOrderCancelled(opts *bind.WatchOpts, sink chan<- *CounterManagerOrderCancelled, 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 (*CounterManagerFilterer) WatchOrderFulfilled

func (_CounterManager *CounterManagerFilterer) WatchOrderFulfilled(opts *bind.WatchOpts, sink chan<- *CounterManagerOrderFulfilled, 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 recipient, (uint8,address,uint256,uint256)[] offer, (uint8,address,uint256,uint256,address)[] consideration)

func (*CounterManagerFilterer) WatchOrderValidated

func (_CounterManager *CounterManagerFilterer) WatchOrderValidated(opts *bind.WatchOpts, sink chan<- *CounterManagerOrderValidated, 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 CounterManagerOrderCancelled

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

CounterManagerOrderCancelled represents a OrderCancelled event raised by the CounterManager contract.

type CounterManagerOrderCancelledIterator

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

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

func (*CounterManagerOrderCancelledIterator) Close

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

func (*CounterManagerOrderCancelledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CounterManagerOrderCancelledIterator) 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 CounterManagerOrderFulfilled

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

CounterManagerOrderFulfilled represents a OrderFulfilled event raised by the CounterManager contract.

type CounterManagerOrderFulfilledIterator

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

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

func (*CounterManagerOrderFulfilledIterator) Close

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

func (*CounterManagerOrderFulfilledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CounterManagerOrderFulfilledIterator) 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 CounterManagerOrderValidated

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

CounterManagerOrderValidated represents a OrderValidated event raised by the CounterManager contract.

type CounterManagerOrderValidatedIterator

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

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

func (*CounterManagerOrderValidatedIterator) Close

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

func (*CounterManagerOrderValidatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CounterManagerOrderValidatedIterator) 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 CounterManagerRaw

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

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

func (*CounterManagerRaw) Call

func (_CounterManager *CounterManagerRaw) 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 (*CounterManagerRaw) Transact

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

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

func (*CounterManagerRaw) Transfer

func (_CounterManager *CounterManagerRaw) 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 CounterManagerSession

type CounterManagerSession struct {
	Contract     *CounterManager   // 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
}

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

type CounterManagerTransactor

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

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

func NewCounterManagerTransactor

func NewCounterManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*CounterManagerTransactor, error)

NewCounterManagerTransactor creates a new write-only instance of CounterManager, bound to a specific deployed contract.

type CounterManagerTransactorRaw

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

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

func (*CounterManagerTransactorRaw) Transact

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

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

func (*CounterManagerTransactorRaw) Transfer

func (_CounterManager *CounterManagerTransactorRaw) 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 CounterManagerTransactorSession

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

CounterManagerTransactorSession 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