Skip to content

We are implementing Lazyminting with MetaTransaction. NFT Will go on to Blockchain when buyer will buy the NFT. Neither Seller nor Buyer will pay the gas fees instead relayer will pay it. In this project marketplace is acting as a relayer.

Notifications You must be signed in to change notification settings

aabdullah29/lazyMinting-with-metaTransaction

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LazyMinting-With-MetaTransaction

We are implementing Lazyminting with MetaTransaction. this implementation is used to make gas free Dapp.

BASIC FLOW

when Seller will list the NFT, this nft will be saved in orderbook(offchain database). when buyer intents to buy the nft. he will placed order this order be saved in the orderbook(offchain database)
after saving the buyer order relayer will mint and transfer this nft

Screenshot (61)

TECH STACK

SmartContract: Solidity is being used to write smartcontracts.
1--MarketPlace NFT: this contract act as proxy contract to mint and transfer token
2--NFT contract: this is ERC721 token.
3--BAFC_NFT : this token inherits NFT contract. used to instantiate this NFT
4--VerifySignature : this contract act as a library to verify signature using standards of EIP712

Backend APis: Nodejs is used to control offchain operations and Mongodb is used to store Vouchers
1--Seller api to store vouchers
2--Buyer api to match orders
3--api for getting list of nfts which are not minted for marketplace.

FrontEnd: Reactjs is being to to structure frontend.
Bootstrap is being used to design website.

ABOUT RELAYERS

1--Hot walllet is being generated on openzpllin for relayer.
2--npm library "defender-relay-client" is being used to wrap transaction with relayers address.

META TRANSFER FUNCTION(Special Mint Function)

this function lies int the marketPlace(proxy) smartcontract. this function makes external calls to ERC721 contract in order to mint and transfer token. Screenshot (63)

About

We are implementing Lazyminting with MetaTransaction. NFT Will go on to Blockchain when buyer will buy the NFT. Neither Seller nor Buyer will pay the gas fees instead relayer will pay it. In this project marketplace is acting as a relayer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 90.7%
  • JavaScript 8.8%
  • Other 0.5%