There are 4 contracts: erc-20 standard Level.sol burnable implementation, erc-1155 Stones.sol burnable implementation, erc-1155 Pokemons.sol implementation and PokemonStorage.sol with all data of evolution chains
- General Info
- Test Already Deployed Contracts
- Technologies Used
- Features
- Requirements For Initial Setup
- Setup
- Contact
- Each user wishing to mint Pokemon required to pay mint fee
- The user can check if his PokΓ©mon can evolve and in what way: using NFT
stone
or erc-20level
tokens - After that, the user can buy
level
tokens from the Level.sol contract andstone
tokens from Stones.sol - And then the user can use the required token to evolve his NFT Pokemon, while receiving a new NFT of the next Pokemon in the evolutionary chain
- During evolution,
level
andstone
tokens are burned
Try already deployed contract on mumbai test network
You can also visit openSea Testents to see and interact with the collection here.
In order to quick update of Metadata on opensea page just click "Refresh Metadata" button
- ipfs
- hh coverage
- slither
- docgen
- solhint
- all 905 Pokemons with metadata and additional combat stats are waiting on OpenSea to be minted
- original game evolution chains implemented
- contract checked with security tools
- 100% coverage of tests
$ cd repository_file
$ npm install
Create .env file inside project folder
- You can get your ethereum or testnet API key here,here or any other service that allow you to connect to the nodes
- You can get your private key from your wallet (Don't share your private key with untrusted parties)
- You can get your etherscan API -key here.
- You can get your polygonscan API -key here.
- You can get your bscscan API -key here.
- You can get your avalanche API -key here.
- You can get your fantom API -key here.
- LEVEL_ADDRESS(address of Level.sol) will be available after deploying contracts
- STONES_ADDRESS(address of Stones.sol) will be available after deploying contracts
PRIVATE_KEY = <Private key of your wallet u want to deploy contracts from>
GOERLI_API = <Goerli API key>
MAINNET_API = <Ethereum mainnet API key>
ETHERSCAN_KEY = <Etherscan API key in order to verify your contracts>
POLYGON_API = <Polygon API key>
MUMBAI_API = <Mumbai API key>
POLYGONSCAN_KEY = <Etherscan API key in order to verify your contracts>
BSC_TESTNET_API = <BSC API key>
BSCSCAN_KEY = <Etherscan API key in order to verify your contracts>
AVALANCHE_FUJI_API = <Avalanche API key>
SNOWTRACE_KEY = <Etherscan API key in order to verify your contracts>
FANTOM_TESTNET_API = <Fantom API key>
FTMSCAN_KEY = <Etherscan API key in order to verify your contracts>
INITIAL_LEVEL_SUPPLY = <Example: 1000000000000000000000>
LEVEL_TOKEN_PRICE = <Example: 200000>
STONES_TOKEN_PRICE = <Example: 200000>
MINT_POKEMON_FEE = <Example: 10000000>
UPGRADE_IN_LEVEL_FEE = <Example: 16000000000000000000>
MAX_SUPPLY = <Example: 100000>
LEVEL_ADDRESS = <Level.sol address>
STONES_ADDRESS = <Stones.sol address>
$ npm run test
$ npm run coverage
There are goerli, mainnet, polygon, mumbai, bsc, avalanche, fuji and fantom networks in config file. You can deploy to any of them, or add any other network. Hovewer, Opensea supports Ethereum and Polygon, so examples to deploy and verify these contracts in these networks are below.
- Deploy to GOERLI
$ npm run goerli
- Deploy to ETH mainnet
$ npm run mainnet
- Deploy to POLYGON/MUMBAI
$ npm run polygon
insert current Level.sol and Stones.sol contract address into your environment variables(.env file)
LEVEL_ADDRESS = <Level.sol address>
STONES_ADDRESS = <Level.sol address>
- Verify GOERLI
$ npm run goerli:verify:level
$ npm run goerli:verify:stones
$ npm run goerli:verify:pokemons
- Verify ETH mainnet
$ npm run mainnet:verify:level
$ npm run mainnet:verify:stones
$ npm run mainnet:verify:pokemons
- Verify POLYGON/MUMBAI
$ npm run polygon:verify:level
$ npm run polygon:verify:stones
$ npm run polygon:verify:pokemons
Created by @LESKOV - feel free to contact me!