Giter Club home page Giter Club logo

crazyzoo-contract's Introduction

CRAZY ZOO PROTOCOL

Introduction

This repo contains contracts for the Crazy Zoo Protocol and includes:

  1. Zoo Token
  2. Zoo NFT
  3. Zoo NFT Staking
  • mint - mints the specified ZOO token amount

  • setMinter - adds an address/wallet as minter

  • setParams - updates the minting fees

  • setFeeCollectors - updates the fee collectors

    Note All these functions are only called by the owner except mint which can also be called by a minter

  • mintLemur - mints Lemur NFT of id range 1-2222
  • mintRhino - mints Rhino NFT of id range 2223-4444
  • mintGorilla - mints Gorilla NFT of id range 4445-6666
  • setMintFeeToken - to updates mintFeeToken
  • setDirectMinting - to enable minting from the NFT contract mint function
  • changeMintFeeStatus - to disable/enable fee charge on NFT mint
  • setFeeCollector - updates feeCollector
  • setBaseURI - updates the baseURI
  • setFees - updates lemurMintFee, rhinoMintFee, gorillaMintFee
  • setCid - update the cid for the NFTs Note All functions are only called by the admin except for mintLemur, mintRhino, mintGorilla
  • stake - stake/deposit NFTs to the staking contract in order to earn rewards
  • withdraw - withdraws the specified NFT ids to the staker
  • feedYourAnimal - feed your hungry animal NFTs that staked. Only animal NFTs staked that can get hungry and can fed not less than twice monthly
  • setRewardsPerDay - updates rewardsPerDay for any of the value in the array
  • setRewardDays - update rewardDays for any of the values in the array
  • setNftPrices - update nftPrices for any of the values in the array
  • setFoodPrices - update foodPrices for any of the values in the array
  • setExtraMintAmount - updates the extraMintAmount value
  • setMintingFees - update mintingFees for any of the values in the array
  • setReferralTaxes - update referral1Tax referral2Tax referral3Tax
  • setBasicWithdrawalFee - update basicWithdrawalFee
  • setWhaleFee - update whalesWithdrawalExtraFee Note All functions are only called by the owner except stake, withdraw, feedYourAnimal

Configuration Steps after Contract Deployments

  1. Deploy Zoo token
  2. Set the nftStakingContractAddress and marketingWallet addresses using the function setFeeCollectors
  3. Deploy Zoo NFT
  4. Deploy Zoo NFT staking
  5. Set Zoo NFT staking address as a minter of the Zoo token using the setMinter on the Zoo token contract
  6. Also grant MINTER_ROLE role to the Zoo NFT staking address on the Zoo NFT contract using grantRole function Note These setter and grant role functions are only called the respective contract deployers

crazyzoo-contract's People

Contributors

10dimensions avatar cryptox427 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.