Giter Club home page Giter Club logo

crypto-zombies-main-sc's Introduction

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

crypto-zombies-main-sc's People

Contributors

btcs-duonghb avatar dylan751 avatar zuongnh avatar btcs-longnp avatar btcs-nambn avatar toanhedspi avatar

Stargazers

Hai Nguyen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.