https://community.optimism.io/docs/developers/bridge/messaging/#for-l1-%E2%87%92-l2-transactions
Mint NFTs on L1 that communicates with a L2 smart contract that implement a Superfluid instant distribution agreement. Now we can do a distribution of funds on L2 and each holder get a share representing the amount of NFTs they hold.
yarn
cd apps/smart-contracts
- Create .env file with
DEPLOYER_PRIVATE_KEY
andINFURA_ID
yarn deploy:spread
to deploy the distributor contract to optimism kovanyarn deploy:nft
to deploy the NFT contract to kovanyarn approve
to mint fake tokens, approve them for contract and approve the distributionyarn mint
to mint NFTsyarn deposit
to deposit payouts to all NFT holders