Skip to content

btc-studio/crypto-zombies-main-sc

Repository files navigation

BTC Zombie Project

Useful Links


  1. BTC Zombie Domain
  2. BTC Zombie Repository

What is BTC Zombie?


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.

Built with

Prerequisites


  1. How to get BNB Testnet faucet to sign contract transactions

  2. Import BTCS Token into Metamask

  • Open Metamask
  • Click on Add Token in tab Assets
  • Input informations
    • Token contract address: 0xEcF3F554f58e9eF274aa3DF60f9c9ca3Ba156073
    • Symbol: BTCS
    • Decimal: 18
  • Click Add tokens

BTC Zombie Repository


Overview

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

Directory Details

  • 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

Interacting with the BTC Zombie contracts locally


Install dependencies

yarn install

Create .env file

// 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 = "";

Compile

yarn compile

Deploy to bsctest network

yarn deploy bsctest

Verify CryptoZombie Contract

yarn verify bsctest <CRYPTO_ZOMBIE_SMART_CONTRACT_ADDRESS> <TOKEN_CONTRACT_ADDRESS>

Verify NFT Marketplace Contract

yarn verify bsctest <MARKETPLACE_SMART_CONTRACT_ADDRESS> <MARKET_FEE>

Network


development

BTCS Tokens


TOKEN ADDRESS
BTCS 0xEcF3F554f58e9eF274aa3DF60f9c9ca3Ba156073

Contracts


CONTRACT ADDRESS
BTC Zombie 0xa193cd47122bEAE47979ac146Fd04f9f45d33057