Instruction for wrapping packs from the front
Page for creating multiple wNFT ERC721: https://app.envelop.is/#/batch.
The page works in two modes:
  • Wrap a empty and create a wNFT ERC721 with it;
  • Create the original NFT ERC721 and wrap it in wNFT ERC721.
Both modes allow you to add collateral when creating wNFT in the form of native or ERC20 tokens. Both modes allow you to define a time before which wNFT cannot be unwrapped.
Read more about how each mode works.
Wrap a empty and create a wNFT with it.
User:
  • includes the Empty flag;
  • specifies a list of recipient addresses who will get wrapped NFTs;
  • specifies list of Collateral tokens;
  • clicks Wrap Batch;
  • confirms in the metamask of the approve transaction to use collateral tokens and wrap.
Create the original NFTs and wrap them in wNFTs.
User:
  • specifies the contract address of the original NFTs;
  • specifies a list of recipient addresses of wrapped NFTs with the tokenId of the original NFTs to be created;
  • specifies a list of collateral tokens;
  • clicks Wrap Batch;
  • confirms in the metamask of the approve transaction to use the collateral tokens and the wrap.
Important: The contract of the original NFT must contain a mint method of the following form
If the mint method of the original NFT contract cannot call any address, but only those to which the owner has assigned a special status (e.g. minter), this status must be assigned to the WrapperDistributor721 contract whose method is called after pressing Wrap Batch. A list of WrapperDistributor721 contract addresses in different networks can be found at https://docs.envelop.is/tech/smart-contracts/deployment-addresses
Also, it is important to understand that it is not possible to specify the tokenId of the original NFT which has already been created. Either specify the same tokenId for the same recipient multiple times or multiple recipients. When calling the WrapperDistributor721 contract method in such conditions, an error will occur, the transaction will be reverted by the network.
The features of working with wNFT mass creation technology.
Only addresses that are assigned the distributor role can call WrapperDistributor721 contract methods. Only the Envelop project team can assign such a role.
A user can specify the amount of native tokens to be used to add to the collateral of created wNFTs. The specified amount is divided equally between all created wNFTs.
The user can specify the number of ERC20 tokens to be used to add to the collateral of the created wNFTs. The specified amount is added to each created wNFT. The user must have a sufficient balance of ERC20 tokens on his balance.
Authorization on the mass wrapping page is done using MetaMask wallet or Walletconnect protocol.
Loading files.
The recipient list and tokenId of the original NFTs can be uploaded from a csv file.
The file specifies the destination address and tokenId, separated by semicolons. If the wrapping of a empty is intended, the tokenId does not need to be specified.
The list of collateral tokens can be uploaded from a csv file.
The file specifies the token address and quantity, separated by semicolons. If user wants to add native tokens for created wNFTs, user has to specify zero address and total number of native tokens (which will be divided among all wNFTs). The fractional part of the number is separated by a dot. If the user wants to add ERC20 tokens for the created wNFTs, they need to specify the contact address of the token and the number of ERC20 tokens to be added to each created wNFT. The quantity is specified in integers only.
A guideline for the number to wrap at a time:
  • BSC network - 50-70 wNFT;
  • Polygon network - 40 wNFT.
After creating a wNFT, the recipient can continue to work with it at https://app.envelop.is/
Copy link