Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
OpenSea Pausable Zone
copy icon
opensea
• version 1.0.0
Marketplace
Approval
Utility
Audited

OpenSea Pausable Zone

Audited

OpenSea Zones provide additional functionality for orders on the marketplace. PausableZone is a simple zone implementation that approves every order. It can be self-destructed by its controller to pause restricted orders that have it set as their zone.

*Visit desktop site to download or deploy

Version

1.0.0

Creator

opensea

Last Publish

1/15/2023
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
cancelOrders() :
This function is used to cancel orders on the SeaportInterface. It takes an array of OrderComponents as an argument and calls the cancel() function on the SeaportInterface. The cancel() function returns a boolean value indicating whether the orders were successfully cancelled or not. (autogenerated documentation)
pause(address) :
This function pauses the contract and sends any remaining funds to the payee address. It emits a Paused event and then selfdestructs the contract, sending the remaining funds to the payee address. (autogenerated documentation)
assignOperator(address) :
This function assigns an operator to the contract. It takes an address as an argument and sets it as the operator. It checks to make sure that the address is not 0, and if it is, it reverts the transaction. Finally, it emits an event to signal that the operator has been updated. (autogenerated documentation)
executeMatchOrders() :
This function is used to match orders and fulfillments on the Seaport platform. It takes in two parameters, orders and fulfillments, and uses the seaport interface to match them. The function is payable, meaning that it can accept payments from users, and is only accessible to operators. It returns an array of executions, which are the results of the order matching. (autogenerated documentation)
executeMatchAdvancedOrders() :
This function is used to match advanced orders on the Seaport platform. It takes in an array of Advanced Orders, Criteria Resolvers, and Fulfillments as parameters. It then calls the matchAdvancedOrders function on the Seaport interface, passing in the orders, criteria resolvers, and fulfillments. The function returns an array of Executions, which represent the matched orders. (autogenerated documentation)
isValidOrder(bytes32,address,address,bytes32) :
This function is an override of the isValidOrder() function from the ZoneInterface contract. It checks if an order is valid by taking in the orderHash, caller, offerer, and zoneHash as parameters. It then returns a bytes4 value which is the selector of the isValidOrder() function from the ZoneInterface contract. This allows the contract to check if the order is valid by calling the isValidOrder() function from the ZoneInterface contract. (autogenerated documentation)
isValidOrderIncludingExtraData(bytes32,address,bytes32[]) :
This function is an override of the isValidOrder function in the ZoneInterface contract. It is used to check if an order is valid, including any extra data that may be associated with it. It takes in the order hash, the caller address, the order itself, any prior order hashes, and any criteria resolvers associated with the order. It then returns a bytes4 value which is the selector for the isValidOrder function. This allows the function to be called and the validity of the order to be checked. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i opensea-pausable-zone
copy icon

Last Publish

1/15/2023

Version

1.0.0

Creator

opensea

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.