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 Basic Order Fulfiller
copy icon
opensea
• version 1.0.0
Marketplace
Utility
Audited

OpenSea Basic Order Fulfiller

Audited

BasicOrderFulfiller contains functionality for fulfilling "basic" orders with minimal overhead. See documentation for details on what qualifies as a basic order.

*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
_validateAndFulfillBasicOrder() :
This function is used to validate and fulfill a basic order. It takes in a set of parameters, which include the type of order, the type of item being offered, the token address of the item being offered, the address of the offerer, the identifier of the item being offered, the amount of the item being offered, the token address of the item being received, the address of the recipient, the identifier of the item being received, the amount of the item being received, and the conduit key. It then checks that the payable status is correct, prepares the basic fulfillment from the calldata, transfers the individual 721 or 1155 item, transfers ETH and finalizes the order, transfers the ERC20 and finalizes (autogenerated documentation)
_prepareBasicFulfillmentFromCalldata(address) :
This function is used to prepare a basic fulfillment from calldata. It verifies the time parameters, checks that the consideration length is not less than the original consideration length, and sets up the consideration and offer items. It then calculates the order hash and stores it in the event data. Finally, it validates the basic order and updates its status. (autogenerated documentation)
_transferEthAndFinalize(uint256,address) :
This function is used to transfer Ether from the sender to a specified recipient, as well as any additional recipients that are specified. It first checks that there is enough Ether supplied to cover the amount specified for the recipient and any additional recipients. If there is enough Ether, it will transfer the specified amount to the recipient and any additional recipients, and then transfer any remaining Ether back to the sender. (autogenerated documentation)
_transferERC20AndFinalize(address,bool) :
This function is used to transfer ERC20 tokens between two parties, the offerer and the msg.sender. It takes in the offerer's address, the basic order parameters, a boolean indicating whether the transfer is from the offerer, and a bytes memory accumulator. It then determines the from and to addresses, the token address, and the amount to be transferred. It then loads the conduit key from the calldata and loops through any additional recipients, subtracting the amount from the total if the transfer is from the offerer. Finally, it calls the _transferERC20 function to transfer the tokens. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i opensea-basic-order-fulfiller
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.