Skip to content

Repository files navigation

Minifolio

Helps you create an NFT that can hold both a native currency (ETH) and ERC20s (e.g. wBTC). Only the current holder is allowed to redeem these assets.

Minifolio uses the NFT redeem extension.

Install

npm i

Test

npx hardhat test

Deploy

Goerli (testnet) is currently the only supported network.

Copy the .env.example file and rename it .env. In this .env file, you want to:

  • Add one of your wallets' private key (MetaMask private key export). It's recommended to create a fresh address, then go grab a handful of Goerli ETH using this faucet
  • Add your own POKT Network endpoint
  • Add your Web3.Storage API token

Forget about Polygon endpoint and Etherscan API key, you don't need them now.

Then you can go ahead and deploy to Goerli:

npx hardhat run scripts/deploy.ts --network goerli

Example

As you can see on Etherscan, this NFT is currently holding 0.0001 ETH (native currency), 1 BTC (ERC-20), and 1 other NFT. You also can view it on Āto NFT viewer. Only the holder can redeem the three different assets held in this NFT using Etherscan.

Support

You can contact us via Element (preferred), Twitter, Discord, LinkedIn or email.

About

Redeemable NFTs that can hold ERC20s, native currencies (ETH), and other NFTs

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Contributors

Languages