BotNet 🤖 – 僵尸网络🤖区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,BotNet 🤖 – 僵尸网络🤖区块链毕设代写 是一篇很好的国外资料

BotNet 🤖

Background

Inspired by SushiSwap (https://github.com/sushiswap/sushiswap) & the games “The Division” & “Cyberpunk2077”. I wanted to create a real world version of being in a futuristic society where everything is online, holograms are everywhere, and cybernetics are everywhere in the world. I essentially tried to create the currency for one of these worlds, with the ability to encrypt your Credits (the native currency) and transfer them to a HackerBot to begin hacking (the equivalent of staking). The HackerBot infiltrates the overworld government banking systems and disguises itself as a bank account, accurring interest from the bank. However, the HackerBot uses special tech to manipulate and boost the base interest rate for itself, causing an upsurge in credit generation over time.

I’m currently thinking about converting to an ERC1155 standard so that I could impliment NFTs (maybe bounties or special things to hack) which can be exchanged for Credits. Then I could eventaully turn it into a game with Engine or Unity.

This project isn’t intended to be the next world currency, just a project I enjoy building and learning from. If you decide to use my project, I hope the best for your experience. If you have any questions/requests, please comment on this repo!

Workflow Diagram

BotNet 🤖 - 僵尸网络🤖

Contracts & Functionalities

InfoBot 📋

Acts as a storage, containing all the data of each user.

Credits

  • symbol: Returns the symbol of the ERC20 token, credits.
  • name: Returns the name of the ERC20 token, credits.
  • decimals: Returns the decimals of the ERC20 token, credits.
  • totalSupply: Returns the totalCreditsSupply of the ERC20 token, credits.
  • balanceOf: Returns the tokenOwner’s creditBalance.
  • transfer: Calls the internal function _transfer, with recipient & amount inputs, to handle all the dirty work.
  • transferFrom: Calls the internal function _transfer, with tokenOwner address, who that tokenOwner address is transfering to, and how much, while deducting the allowance from msg.sender.
  • approve: Updates msg.sender’s allowed spending from _spender’s balance.
  • viewAllowance: Takes in the address of the person with the allowance and the person that is allowing them to spend tokens, and returns how much the first address can spend.
  • generateCredits: Allows the owner to create credits & send them to a specific user, while adding them to the total supply.
  • deleteCredits: Allows the owner to delete credits from their account, lowering the total supply.
  • receive: Reverts tx if ether is sent to the contract by mistake.

CreditsITO (Inital Token Offering)

  • buyCredibytes_forETH: Allows early investors to exchange ether for credibytes.
  • convertCredibytesToCredits: Allows the user to conver their credibytes to credits.
  • setRate_EthToCredibytes: Allows the owner to update the ether to credits conversion rate.
  • setRate_CredibytesToCredits: Allows owner to update the credibytes to credits conversion rate.
  • updateMinimumRequirement: Allows owner to update the minimum amount of eth to partake in the ITO.
  • finalise: Allows the owner to finalise the Inital Token Offering (ITO) prematurely.
  • receive: Reverts tx if the current block is larger than the timelock activation block, otherwise it directs the tx to buyCredits_forETH.

HackerBot 👥💬💰 [work in progress]

  • encrypt_And_Hack: You input an encryptAmount of Credits into the HackerBot, which then encrypts the funds. After the conversion, the HackerBot starts hacking, and after 30 days, the total amount of funds initally injected into it is increased by 2%. Becareful though, the HackerBot can only commence a single hack at a time. If you wish to retrieve your funds, you must either wait for it to finish hacking or abortHack.
  • decryptPortion_And_beginNewHack: Begins a new hack after allowing users to decrypt more credits and, if they choose to, withdraw a porition of the encrypted HackerBot funds (such as profits from previously completed hack).
  • decrypt_And_Redeem: When the hacking progress is complete, you are able to decrypt the funds and transfer the inital amount + the profit to your Credits balance.
  • cancelHack: Allows you to cancel the current hack in progress, transfering the funds back into your Credit balance, without any penalty or profit.
  • viewHack: Displays the inital encrypted balance deposited into the HackerBot, the encrypted balance after the hack, the profit after the hack, and the time remaining until the hack is complete (in seconds, minutes, hours and days).

SwapBot 🏦

  • depositEther: Deposits ether into exchange.
  • withdrawEther: Withdraws ether from exchange.
  • despositCredits: Deposits credits into exchange.
  • withdrawCredits: Withdraws credits from exchange.
  • balanceOf: Checks the inputted user’s inputted token address’s balance (i.e. ether address’s balance for the user inputted).
  • makeOrder: Creates an order for the user, waiting to be filled.
  • cancelOrder: Allows the creator of an order to cancel it. Creator can delete any order they create via order id.
  • fillOrder: Allows the user to fill an order that is placed.
  • fallback: Reverts tx if ether is sent to the contract by mistake.

DistributionBot 📠

The DistributionBot receives and distributes Credits, from rogue HackerBots that have accumulated funds from exploiting systems on the Net, to the users that are a part of the Enigma. You may enter the Enigma by paying the entrance fee required at the time.

  • enterEnigma: Users pay the fee to enter the Enigma.
  • leaveEnigma: Users can choose to leave the Enigma.
  • updateFee: Owner updates fee (Maybe in the future: Users input what price the Enigma entrace fee shall be. (Pushes number into array)).
  • viewEnigma: Allows you to view the current fee to enter the Enigma & the amount of funds in the Enigma.
  • decryptEnigma: Owner distributes funds accumulated from rogue HackerBots to accounts that have paid to enter the RoguePool. (Maybe in the future: decryptEnigmaPortion: allows users to decrypt/redeem their portion manually)

Future Implementations

BountyBot 💸

The BountyBot has a list of people/organisations to hack, in which upon completition, you will receive ERC-721 NFTs that can be exchanged for Credits.

Extra

  • emergencyWithdraw()

License

  • https://github.com/lucusra/BotNet/blob/main/LICENSE
  • https://github.com/lucusra/BotNet/commit/a685fb56bf87904d37e02ec1ea0473efc479b9a8

Removed unnecessary uints


BotNet 🤖

Background

Inspired by SushiSwap (https://github.com/sushiswap/sushiswap) & the games “The Division” & “Cyberpunk2077”. I wanted to create a real world version of being in a futuristic society where everything is online, holograms are everywhere, and cybernetics are everywhere in the world. I essentially tried to create the currency for one of these worlds, with the ability to encrypt your Credits (the native currency) and transfer them to a HackerBot to begin hacking (the equivalent of staking). The HackerBot infiltrates the overworld government banking systems and disguises itself as a bank account, accurring interest from the bank. However, the HackerBot uses special tech to manipulate and boost the base interest rate for itself, causing an upsurge in credit generation over time.

I’m currently thinking about converting to an ERC1155 standard so that I could impliment NFTs (maybe bounties or special things to hack) which can be exchanged for Credits. Then I could eventaully turn it into a game with Engine or Unity.

This project isn’t intended to be the next world currency, just a project I enjoy building and learning from. If you decide to use my project, I hope the best for your experience. If you have any questions/requests, please comment on this repo!

Workflow Diagram

BotNet 🤖 - 僵尸网络🤖

Contracts & Functionalities

InfoBot 📋

Acts as a storage, containing all the data of each user.

Credits

  • symbol: Returns the symbol of the ERC20 token, credits.
  • name: Returns the name of the ERC20 token, credits.
  • decimals: Returns the decimals of the ERC20 token, credits.
  • totalSupply: Returns the totalCreditsSupply of the ERC20 token, credits.
  • balanceOf: Returns the tokenOwner’s creditBalance.
  • transfer: Calls the internal function _transfer, with recipient & amount inputs, to handle all the dirty work.
  • transferFrom: Calls the internal function _transfer, with tokenOwner address, who that tokenOwner address is transfering to, and how much, while deducting the allowance from msg.sender.
  • approve: Updates msg.sender’s allowed spending from _spender’s balance.
  • viewAllowance: Takes in the address of the person with the allowance and the person that is allowing them to spend tokens, and returns how much the first address can spend.
  • generateCredits: Allows the owner to create credits & send them to a specific user, while adding them to the total supply.
  • deleteCredits: Allows the owner to delete credits from their account, lowering the total supply.
  • receive: Reverts tx if ether is sent to the contract by mistake.

CreditsITO (Inital Token Offering)

  • buyCredibytes_forETH: Allows early investors to exchange ether for credibytes.
  • convertCredibytesToCredits: Allows the user to conver their credibytes to credits.
  • setRate_EthToCredibytes: Allows the owner to update the ether to credits conversion rate.
  • setRate_CredibytesToCredits: Allows owner to update the credibytes to credits conversion rate.
  • updateMinimumRequirement: Allows owner to update the minimum amount of eth to partake in the ITO.
  • finalise: Allows the owner to finalise the Inital Token Offering (ITO) prematurely.
  • receive: Reverts tx if the current block is larger than the timelock activation block, otherwise it directs the tx to buyCredits_forETH.

HackerBot 👥💬💰 [work in progress]

  • encrypt_And_Hack: You input an encryptAmount of Credits into the HackerBot, which then encrypts the funds. After the conversion, the HackerBot starts hacking, and after 30 days, the total amount of funds initally injected into it is increased by 2%. Becareful though, the HackerBot can only commence a single hack at a time. If you wish to retrieve your funds, you must either wait for it to finish hacking or abortHack.
  • decryptPortion_And_beginNewHack: Begins a new hack after allowing users to decrypt more credits and, if they choose to, withdraw a porition of the encrypted HackerBot funds (such as profits from previously completed hack).
  • decrypt_And_Redeem: When the hacking progress is complete, you are able to decrypt the funds and transfer the inital amount + the profit to your Credits balance.
  • cancelHack: Allows you to cancel the current hack in progress, transfering the funds back into your Credit balance, without any penalty or profit.
  • viewHack: Displays the inital encrypted balance deposited into the HackerBot, the encrypted balance after the hack, the profit after the hack, and the time remaining until the hack is complete (in seconds, minutes, hours and days).

SwapBot 🏦

  • depositEther: Deposits ether into exchange.
  • withdrawEther: Withdraws ether from exchange.
  • despositCredits: Deposits credits into exchange.
  • withdrawCredits: Withdraws credits from exchange.
  • balanceOf: Checks the inputted user’s inputted token address’s balance (i.e. ether address’s balance for the user inputted).
  • makeOrder: Creates an order for the user, waiting to be filled.
  • cancelOrder: Allows the creator of an order to cancel it. Creator can delete any order they create via order id.
  • fillOrder: Allows the user to fill an order that is placed.
  • fallback: Reverts tx if ether is sent to the contract by mistake.

DistributionBot 📠

The DistributionBot receives and distributes Credits, from rogue HackerBots that have accumulated funds from exploiting systems on the Net, to the users that are a part of the Enigma. You may enter the Enigma by paying the entrance fee required at the time.

  • enterEnigma: Users pay the fee to enter the Enigma.
  • leaveEnigma: Users can choose to leave the Enigma.
  • updateFee: Owner updates fee (Maybe in the future: Users input what price the Enigma entrace fee shall be. (Pushes number into array)).
  • viewEnigma: Allows you to view the current fee to enter the Enigma & the amount of funds in the Enigma.
  • decryptEnigma: Owner distributes funds accumulated from rogue HackerBots to accounts that have paid to enter the RoguePool. (Maybe in the future: decryptEnigmaPortion: allows users to decrypt/redeem their portion manually)

Future Implementations

BountyBot 💸

The BountyBot has a list of people/organisations to hack, in which upon completition, you will receive ERC-721 NFTs that can be exchanged for Credits.

Extra

  • emergencyWithdraw()

License

  • https://github.com/lucusra/BotNet/blob/main/LICENSE
  • https://github.com/lucusra/BotNet/commit/a685fb56bf87904d37e02ec1ea0473efc479b9a8

Removed unnecessary uints

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/20353.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » BotNet 🤖 – 僵尸网络🤖区块链毕设代写

提供最优质的资源集合

立即查看 了解详情