Portfolio
Portfolio Action
Transactional Functions
PortfolioBase Helper Contract
The PortfolioBase
contract is an abstract contract for handling incoming ERC721 tokens within a portfolio context. It extends functionalities from OpenZeppelin's ERC721
, ERC721Holder
, and ERC1155Holder
contracts and integrates a custom mechanism for token ID management. The contract is tailored for managing portfolios that involve unique assets represented as ERC721 tokens.
function onERC721Received(bytes memory loanInfo, address user, uint256 uniqueId)
function supportInterface(bytes memory loanInfo, address user, uint256 uniqueId)
function balanceOf(bytes memory loanInfo, address user, uint256 uniqueId)
function ownerOf(bytes memory loanInfo, address user, uint256 uniqueId)
function getApproved(bytes memory loanInfo, address user, uint256 uniqueId)
function isApproved(bytes memory loanInfo, address user, uint256 uniqueId)
function _safeMint(bytes memory loanInfo, address user, uint256 uniqueId)
function _transferFrom(bytes memory loanInfo, address user, uint256 uniqueId)
MintPortfolio Contract
MintPortfolio.sol
contract is used to issue portfolios to a specific recipient.
function mintPortfolio(address to)
Process:
Validates the recipient's address and mint's a portfolio.
Last updated