EeseeOpenseaRouter

EeseeOpenseaRouter

seaport

contract ISeaport seaport

Main opensea marketplace contract's address

ConduitDoesntExist

error ConduitDoesntExist()

InvalidOrderType

error InvalidOrderType()

purchaseAsset

function purchaseAsset(bytes data, address recipient) external payable returns (struct Asset asset, uint256 spent)

Buys NFT for {nftPrice} from Opensea marketplace and sends it to {recipient}

Parameters

Name
Type
Description

data

bytes

- Encoded OpenseaStructs.BasicOrderParameters struct needed for rarible contracts.

recipient

address

- Address where to send nft.

Return Values

Name
Type
Description

asset

struct Asset

- Asset received.

spent

uint256

- Tokens spent.

Inherited from EeseePausable

pause

function pause() external virtual

Called by the PAUSER_ROLE to pause, triggers stopped state.

unpause

function unpause() external virtual

Called by the PAUSER_ROLE to unpause, returns to normal state.

Inherited from EeseeRoleHandler

Inherited from Pausable

paused

function paused() public view virtual returns (bool)

Returns true if the contract is paused, and false otherwise.

Paused

event Paused(address account)

Emitted when the pause is triggered by account.

Unpaused

event Unpaused(address account)

Emitted when the pause is lifted by account.

Inherited from ERC721Holder

onERC721Received

function onERC721Received(address, address, uint256, bytes) public virtual returns (bytes4)

_See {IERC721Receiver-onERC721Received}.

Always returns IERC721Receiver.onERC721Received.selector._

Last updated