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

僵尸网络🤖

背景

灵感来自寿司交换(https://github.com/sushiswap/sushiswap)游戏“the Division”和“Cyberpunk2077”。我想创造一个未来社会的真实版本,在这个社会里,一切都是在线的,全息图无处不在,控制论无处不在。我基本上是想为这些世界中的一个创造货币,能够加密你的信用(本币),然后把它们转移到黑客那里开始黑客攻击(相当于下注)。黑客渗透到世界各地的政府银行系统,并伪装成一个银行账户,从银行收取利息。然而,黑客利用特殊的技术来操纵和提高自己的基准利率,随着时间的推移,会引起信贷的激增。

我目前正在考虑转换为ERC1155标准,这样我就可以实现NFT(可能是奖金或黑客的特殊物品),这些东西可以兑换成学分。然后我就可以把它变成一个有引擎或团结的游戏。我不想成为下一个学习世界的项目。如果你决定使用我的项目,我希望你的经验最好。如果您有任何问题/要求,请对此回购进行评论!

BotNet 🤖 - 僵尸网络🤖

工作流图

作为存储,包含每个用户的所有数据。

合同和功能

InfoBot📋

分发机器人接收并分发信用卡,这些信用卡来自那些通过利用网络上的系统积累资金的流氓黑客,他们是“谜”的一部分。你可以通过支付当时所需的入场费进入谜。

信用积分

  • 符号:返回ERC20代币的符号credits。
  • name:返回ERC20令牌的名称credits。
  • 小数:返回ERC20令牌的小数,credits。
  • totalSupply:返回ERC20令牌credits的totalCreditsSupply。
  • balanceOf:返回令牌所有者的creditBalance。
  • transfer:调用内部函数&u transfer,并输入收件人和金额,以处理所有脏工作。
  • transferFrom:调用内部函数_transfer,其中包含tokenOwner地址、tokenOwner地址要传送给谁以及数量,同时从中扣除津贴消息发送者.
  • 批准:更新消息发送者允许从斯宾德的余额中支出。
  • 查看零用钱:获取有零用钱的人和允许他们消费代币的人的地址,并返回第一个地址可以消费的金额。
  • generateCredits:允许所有者创建积分并将其发送给特定用户,同时将其添加到总供应中。
  • 删除信用额度:允许所有者从其账户中删除信用额度,从而降低总供应量。
  • 接收:如果错误地向合同发送乙醚,则返回tx。

CreditsITO(初始代币发行)

  • 买入信用债券:允许早期投资者用以太币换取信用债券。
  • ConvertCredityStoCredits:允许用户将其信用转换为信用。
  • setRate嫘ethtoCreditBytes:允许所有者更新以太到信用的转换率。
  • 设置信用额度:允许所有者更新信用额度到信用额度的转换率。
  • 更新IMUMRequirement:允许所有者更新参与ITO的最低eth金额。
  • 敲定:允许所有者提前敲定初始代币发行(ITO)。如果当前块的激活时间大于当前块的激活时间,则返回到当前块的激活时间。
  • encrypt_And_Hack:您向HackerBot输入一个加密的信用额度,然后加密资金。转换后,黑客开始黑客攻击,30天后,初始注入的资金总额增加2%。但是要小心,黑客一次只能开始一次黑客攻击。如果你想取回你的资金,你必须等待它完成黑客攻击或中止攻击。

HackerBot👥💬💰 [工作进行中]

  • DecryptPart_And_beginNewHack:在允许用户解密更多的信用之后开始新的黑客攻击,如果用户愿意,则从加密的HackerBot资金中提取一部分(例如从先前完成的黑客攻击中获得的利润)。
  • 解密和赎回:当黑客攻击完成后,您可以解密资金并将初始金额+利润转入您的信用余额。
  • cancelHack:允许您取消当前正在进行的黑客攻击,将资金转移回您的信用余额,而无需任何惩罚或利润。
  • viewHack:显示存入HackerBot的初始加密余额、黑客攻击后的加密余额、黑客攻击后的利润以及直到黑客完成的剩余时间(秒、分、小时和天)。将乙醚存入交易所。
  • 提取乙醚:从交换中提取乙醚。

交换桩🏦

  • despositCredits:将信用存入交易所。
  • 取款:从交易所取款。
  • 余额:检查输入用户的输入令牌地址余额(即输入用户的以太地址余额)。
  • makeOrder:为用户创建一个等待填写的订单。
  • 取消订单:允许订单的创建者取消订单。创建者可以删除他们通过订单id创建的任何订单。
  • fillOrder:允许用户填写所下的订单。
  • 回退:如果以太错误地发送到合同,则恢复tx。
  • enterEnigma:用户付费进入Enigma。
  • 离开谜:用户可以选择离开谜。

分布式机器人📠

赏金机器人有一个要攻击的人/组织的列表,完成后,您将收到ERC-721 NFT,这些NFT可用于兑换积分。

  • 更新费:所有者更新费(可能在将来:用户输入Enigma进入费的价格。(将数字放入数组中)。
  • viewEnigma:允许您查看当前费用,以便输入谜和谜中的资金量。
  • 解密之谜:所有者将从流氓黑客那里积累的资金分配给已经付费进入RoguePool的帐户。(可能将来:DecryptEnigmaPart:允许用户手动解密/赎回他们的部分)
  • emergencyDefract()
  • https://github.com/lucusra/BotNet/blob/main/LICENSE

未来实现💸

额外的

许可证

  • 符号:返回ERC20代币的符号credits。
  • name:返回ERC20令牌的名称credits。
  • 小数:返回ERC20令牌的小数,credits。
  • totalSupply:返回ERC20令牌credits的totalCreditsSupply。
  • balanceOf:返回令牌所有者的creditBalance。
  • transfer:调用内部函数&u transfer,并输入收件人和金额,以处理所有脏工作。
  • transferFrom:调用内部函数_transfer,其中包含tokenOwner地址、tokenOwner地址要传送给谁以及数量,同时从中扣除津贴消息发送者.
  • 批准:更新消息发送者允许从斯宾德的余额中支出。
  • 查看零用钱:获取有零用钱的人和允许他们消费代币的人的地址,并返回第一个地址可以消费的金额。
  • generateCredits:允许所有者创建积分并将其发送给特定用户,同时将其添加到总供应中。
  • 删除信用额度:允许所有者从其账户中删除信用额度,从而降低总供应量。
  • 接收:如果错误地向合同发送乙醚,则返回tx。
  • 买入信用债券:允许早期投资者用以太币换取信用债券。
  • ConvertCredityStoCredits:允许用户将其信用转换为信用。
  • setRate嫘ethtoCreditBytes:允许所有者更新以太到信用的转换率。
  • 设置信用额度:允许所有者更新信用额度到信用额度的转换率。
  • 更新IMUMRequirement:允许所有者更新参与ITO的最低eth金额。
  • 敲定:允许所有者提前敲定初始代币发行(ITO)。如果当前块的激活时间大于当前块的激活时间,则返回到当前块的激活时间。
  • encrypt_And_Hack:您向HackerBot输入一个加密的信用额度,然后加密资金。转换后,黑客开始黑客攻击,30天后,初始注入的资金总额增加2%。但是要小心,黑客一次只能开始一次黑客攻击。如果你想取回你的资金,你必须等待它完成黑客攻击或中止攻击。
  • DecryptPart_And_beginNewHack:在允许用户解密更多的信用之后开始新的黑客攻击,如果用户愿意,则从加密的HackerBot资金中提取一部分(例如从先前完成的黑客攻击中获得的利润)。
  • 解密和赎回:当黑客攻击完成后,您可以解密资金并将初始金额+利润转入您的信用余额。
  • cancelHack:允许您取消当前正在进行的黑客攻击,将资金转移回您的信用余额,而无需任何惩罚或利润。
  • viewHack:显示存入HackerBot的初始加密余额、黑客攻击后的加密余额、黑客攻击后的利润以及直到黑客完成的剩余时间(秒、分、小时和天)。将乙醚存入交易所。
  • 提取乙醚:从交换中提取乙醚。
  • despositCredits:将信用存入交易所。
  • 取款:从交易所取款。
  • 余额:检查输入用户的输入令牌地址余额(即输入用户的以太地址余额)。
  • makeOrder:为用户创建一个等待填写的订单。
  • 取消订单:允许订单的创建者取消订单。创建者可以删除他们通过订单id创建的任何订单。
  • fillOrder:允许用户填写所下的订单。
  • 回退:如果以太错误地发送到合同,则恢复tx。
  • enterEnigma:用户付费进入Enigma。
  • 离开谜:用户可以选择离开谜。
  • 更新费:所有者更新费(可能在将来:用户输入Enigma进入费的价格。(将数字放入数组中)。
  • viewEnigma:允许您查看当前费用,以便输入谜和谜中的资金量。
  • 解密之谜:所有者将从流氓黑客那里积累的资金分配给已经付费进入RoguePool的帐户。(可能将来:DecryptEnigmaPart:允许用户手动解密/赎回他们的部分)
  • emergencyDefract()
  • https://github.com/lucusra/BotNet/blob/main/LICENSE
  • https://github.com/lucusra/BotNet/commit/a685fb56bf87904d37e02ec1ea0473efc479b9a8在
  • 额外的

    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.

    许可证

    • https://github.com/lucusra/BotNet/commit/a685fb56bf87904d37e02ec1ea0473efc479b9a8在

    License

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

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

    www.interchains.cc

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

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

    提供最优质的资源集合

    立即查看 了解详情