Skip to content

Simple ERC721 for testing asset visualization in SD Data Wallet.

License

Notifications You must be signed in to change notification settings

SnickerdoodleLabs/Test-Rewards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Rewards

Snickerdoodle Labs Simple Testnet Reward

Data Wallet

The project creates a vanilla ERC721 contract for use as a test reward contract. Team members can add their wallets to the MINTER_ROLE and mint rewads to their wallets for testing various functionalities of the reward stack on EVM-compatible public testnets.

You'll need to set a MNEMONIC phrase with funding and an ETH provider URL in order to use the CLI exposed by the hardhat framework. See the instructions below.

Deployment Addresses

Original Flavor Cookie Reward (COOKIE)

NFT London 2022 Reward (NFTL)

Snickerdoodle OG Beta Testers (SOGs)

Good Vibes (GVs)

The Infinite Cookie (TIC)

Cookie Skullz (SKULLZ)

Ugly Sweater (UGLY)

Snickerdoodle Beanie (BEANIE)

Loteria La Galleta (LOTERIA)

How To:

Use a specific MNEMONIC

You should set the MNEMONIC variable in the .env file or export the environment variable in the terminal:

export MNEMONIC = "test test test test test test test test test test test junk"
npx hardhat accounts --network fuji

Set your RPC endpoint provider

You should set the ETH_PROVIDER_URL variable in the .env file or export the environment variable in the terminal:

export ETH_PROVIDER_URL = https://rinkeby.infura.io/v3/<myinfurakey>
npx hardhat accounts --network rinkeby

Mint a Test Reward

This example would use the first account in your configured HD Wallet associated with the MNEMONIC you set.

npx hardhat mintReward --network rinkeby --symbol COOKIE --recipient 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --accountnumber 0

Set Reward Base URI

npx hardhat setBaseURI --network fuji --symbol COOKIE --uri ipfs://QmfWJbH5drBJrNmxh11dsm4LP5RfkcZ8KzkPzL5dkgAaDT?
npx hardhat setBaseURI --network fuji --symbol COOKIE --uri ipfs://QmcXyspky1fwDbmV8eakfMXkGkqQhiuttMzjPa5EwqCX7y?
npx hardhat setBaseURI --network fuji --symbol COOKIE --uri ipfs://QmbscAuTV19U8SuJgRqUDF5XaeJ6pRadPz4k3JotrjyNV9?

IMPORTANT NOTE: You need to put a question mark, ?, at the end of your IPFS CID in order for your metadata to be parsed correctly by indexing services. This is due to the internal logic of the tokenURI function implemented in the OpenZeppelin library which automatically adds the tokenID to the end of baseURI which will result in an incorrect CID without the presence of the parameter separator.

About

Simple ERC721 for testing asset visualization in SD Data Wallet.

Resources

License

Stars

Watchers

Forks