A solidity smart contract for the Ethereum based zombie game.
- Main attraction is the random traits for every new Zombie created via random DNA generation. surprise element when Zombies feeded with cryptokitties.
- Ownership of zombie and quantity is stored in Contract as permanent storage in Blockchain. Ownership is mapped through the identity ethereum 16 Bit hexadecimal address.
- Public function in contract for the zombie creation and couples of private method defined.
- Contract safe from overflow situations.
- Zombies can attack, can be level up.
- Higher the level, higher will be the fee.
- Can be easily pluggable to any standard Crypto Platform as it the Contract works on the ERC721 Standards.
- Solidity is an object-oriented, high-level language for implementing smart contracts.
- Hardhat is a development environment for Ethereum software
-
How to get BNB Testnet faucet to sign contract transactions
- Open Metamask
- Click on
Add Token
in tabAssets
- Input informations
- Token contract address: 0xEcF3F554f58e9eF274aa3DF60f9c9ca3Ba156073
- Symbol: BTCS
- Decimal: 18
- Click
Add tokens
crypto-zombies-main-sc
├── LICENSE
├── README.md
├── config.json
├── contracts
├ ├── Ownable.sol
├ ├── SafeMath.sol
├ ├── ZombieAttack.sol
├ ├── ZombieBase.sol
├ ├── ZombieFactory.sol
├ ├── ZombieFeeding.sol
├ ├── ZombieHelper.sol
├ └── ZombieOwnership.sol
├── hardhat.config.ts
├── note.md
├── package.json
├── scripts
├ ├── config.ts
├ └── deploy.ts
├── test
├ └── ZombieFactory.ts
├── tsconfig.json
└── yarn.lock
- config.json - Contains the address where the smart contract is being deployed to
- contracts - The folder contains all the logic for BTC Zombie
- hardhat.config.ts - Contains network connections config
- scripts - Contains deploy code
- test - Contains unit test for the BTC Zombie code
yarn install
// Wallet's private Key
// To setup networks to deploy Smart Contract
PRIV_KEY = "";
// Wallet's Seed Phrase
// To setup dev network to deploy Smart Contract
PRIV_KEY = "";
MNEMONIC = "";
// API Key for Verifying Smart Contract
API_KEY = "";
yarn compile
yarn deploy bsctest
yarn verify bsctest <CRYPTO_ZOMBIE_SMART_CONTRACT_ADDRESS> <TOKEN_CONTRACT_ADDRESS>
yarn verify bsctest <MARKETPLACE_SMART_CONTRACT_ADDRESS> <MARKET_FEE>
development
TOKEN | ADDRESS |
---|---|
BTCS | 0xEcF3F554f58e9eF274aa3DF60f9c9ca3Ba156073 |
CONTRACT | ADDRESS |
---|---|
BTC Zombie | 0xa193cd47122bEAE47979ac146Fd04f9f45d33057 |