NFT Marketplace with Lazy Minting #7 Lazy Minting and EIP-712
Ғылым және технология
In this episode we define the structure of lazy minted NFT sales orders and we implement a domain separator to protect us against replay attacks with different chain ids.
Then we write code that enables nft creators and sellers to sign their sales orders.
We also code the marketplace smart contract that verifies the signatures of these lazy minted sales orders and that performs several security checks before it mints the NFT token on the blockchain or transfers the NFT token to the buyer.
Eventually we will invalidate the lazy minted sales orders directly on the blockchain once they were used.
Chapters in this video:
0:00 - Intro and Explanation
1:50 - Lazy Minted Sales Order
3:33 - Domain Separator
3:56 - Typed Structure
5:19 - Sales Order Data
5:40 - Creating the Sales Order
8:40 - Implementing the Signing
9:45 - Signing Frontend Integration
10:30 - Storing the Sales Order and Signature
10:46 - Signing on the Frontend
11:33 - Selling and Purchasing
11:50 - Smart Contract Implementation
12:02 - Buy from Sales Order
13:03 - Verifying the Signature
14:53 - Further checks
15:20 - NFT Token minted yet?
16:24 - Minting the NFT Token
17:06 - Invalidating the Sales Order
17:48 - Transferring the NFT Token
17:58 - Calling the BuyFromSalesOrder function
18:25 - Purchasing Frontend Integration
18:46 - Buying on the Frontend
19:27- Outro
Contact us:
www.blueantoinette.com/contac...
/ blueantoinette_
Note the underscore in our Twitter Handle: @BlueAntoinette_
Sources and Links:
Get the Source Code on Blue Antoinette (Payable):
www.blueantoinette.com/produc...
Blue Antoinette:
www.blueantoinette.com/
Hashtags:
#NFT #minting #smartcontracts
Пікірлер: 5
Great content but the sound quality could be better at the end of the video.
@cl437
2 жыл бұрын
or throughout the video ...
@BlueAntoinette
11 ай бұрын
Thanks for the feedback. I fixed the sound quality in my latest videos.
a lot of value but kind of ruined by sound quality
@BlueAntoinette
11 ай бұрын
Sorry for the bad sound in this video. However, I fixed it in the meanwhile. Did you see my latest video(s)?