EeseeRaribleRouter
EeseeRaribleRouter
exchangeV2Core
contract IExchangeV2Core exchangeV2Core
Main rarible marketplace contract's address.
ERC20NotSupported
error ERC20NotSupported()
InvalidDataType
error InvalidDataType()
InvalidAssetClass
error InvalidAssetClass()
purchaseAsset
function purchaseAsset(bytes data, address recipient) external payable returns (struct Asset asset, uint256 spent)
Buys NFT for {nftPrice} from Rarible marketplace and sends it to {recipient}.
Parameters
Name
Type
Description
data
bytes
- Encoded LibDirectTransfer.Purchase struct needed for rarible contracts.
recipient
address
- Address to send nft to.
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