illing2005 / alpaca-nft

Mint your Alpaca Employee NFT using meta transactions

Home Page:https://illing2005.github.io/alpaca-nft/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alpaca Employee NFT

Using this App Alpaca employees can mint their personal Alpaca Avatar NFT. On top of that they also get an Alex the Alpacabot NFT (limited to 50 tokens).

Deployment:

Frontend:

The frontend is deployed using github pages:

https://illing2005.github.io/alpaca-nft/

Contracts

The smart contracts are deployed to the rinkeby test network:

Features

Frontend

  • users mint their NFT using a key and gas-less meta-transactions
  • uses OpenSea API to display already minted tokens of the user
  • send network change request if metamask is not connected to the correct network

Solidity Contracts

  • implement the ERC1155 token standard.
  • key protected mintNFT function that maps the key to a specific NFT
  • whitelist paymaster contract to allow gas-less meta-transactions
  • implements IERC2981Royalties for NFT royalties

Meta Transactions

Meta-transactions allow users to send transactions without paying the gas fee. The actual transaction is routed via RelayHub and a trusted forwarder to the actual contract and a separate Paymaster contract takes care of paying the gas fees. Read more about meta-transactions.

Meta-transactions are implemented using the GSNv2 standard.

Screenshot from 2022-02-18 15-31-44

About

Mint your Alpaca Employee NFT using meta transactions

https://illing2005.github.io/alpaca-nft/


Languages

Language:JavaScript 69.7%Language:Solidity 19.7%Language:HTML 7.0%Language:CSS 2.5%Language:Shell 1.1%