You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unique Image for each NFTs (hosted on IPFS or Arweave)
Token owner can update image with new image URI at any point.
The TurboETH Bank template demonstrates how to inherit the Solbase ERC721 and Owned smart contracts.
How It Could Work
The smart contract could be designed in a couple of different ways. Below is my recommendation, but anyone is welcome to recommend a better alternative.
Minting
The ERC721 AI PFP/NFT smart contract will be initialized with the Access Control NFT smart contract address during deployment.
The acNFT.tokenId will be used to map to an isMinted boolean mapping in the pfpNFT smart contract storage.
IF the tokenId hasn't been used, and is owned by the caller, allow a new NFT to be minted.
IF the tokenId has been used or is not owned by the caller, do not allow an NFT to be minted.
Upload PFP
When the user is minting/updating the pfpNFT they should be able to pass an image URI in the function arguments.
function mint(address to, string imageURI) external returns (uint256) {
....
}
function update(string imageURI) external {
....
}
💰 Bounty Reward
The bounty reward is undetermined. Comments and feedback are welcome.
TurboETH is the recipient of 18,271.88 OP Tokens from Optimism Retroactive Public Goods Funding. The OP tokens earned from the PGF program are the primary funding source for TurboETH bounties.
Create an ERC721 AI PFP/NFT using the Solbase smart contract library.
Required Functionality:
The TurboETH Bank template demonstrates how to inherit the Solbase ERC721 and Owned smart contracts.
How It Could Work
The smart contract could be designed in a couple of different ways. Below is my recommendation, but anyone is welcome to recommend a better alternative.
Minting
The ERC721 AI PFP/NFT smart contract will be initialized with the Access Control NFT smart contract address during deployment.
The
acNFT.tokenId
will be used to map to anisMinted
boolean mapping in thepfpNFT
smart contract storage.IF the
tokenId
hasn't been used, and is owned by the caller, allow a new NFT to be minted.IF the
tokenId
has been used or is not owned by the caller, do not allow an NFT to be minted.Upload PFP
When the user is minting/updating the
pfpNFT
they should be able to pass an image URI in the function arguments.💰 Bounty Reward
The bounty reward is undetermined. Comments and feedback are welcome.
TurboETH is the recipient of 18,271.88 OP Tokens from Optimism Retroactive Public Goods Funding. The OP tokens earned from the PGF program are the primary funding source for TurboETH bounties.
Resources
The text was updated successfully, but these errors were encountered: