Token Staking dApp – 代币押记区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Token Staking dApp – 代币押记区块链毕设代写 是一篇很好的国外资料

Token Staking dApp

Blockchain Token Staking dApp built with React, Solidity, on ethereum Ganache testnet

Changes

  • Added ERC20 TestToken

  • Added Token Staking basic contract

  • Started testing

  • Updated Token Staking contract

  • Added ability to stake, unstake, redistribute

  • Implemented testing

  • Added redistribution script

  • Injected web3 and metamask

  • Ability to detect if metamask installed, logged, locked

  • Added skeletons for totalStaked, myStake,

  • Added skeletons for Tester to Redistribute rewards and claim test tokens

Running instructions

  • copy project to your directory ( git clone https://github.com/ibnzUK/Token-Staking-dApp )
  • install project packages (npm install)
  • start project (npm run start)

For Testing

  • To run tests from /test/TokenStaking (truffle test)

testing output

   TestToken deployment      ✓ token deployed and has a name (143ms)    TokenStaking deployment      ✓ staking contract deployed and has a name (85ms)      ✓ staking contract has 500k TestTokens tokens inside (143ms)    TokenStaking stakeTokens function      ✓ investors able to deposit (141ms)      ✓ aproving tokens, staking tokens, checking balance (1069ms)      ✓ checking contract balance after staking (141ms)      ✓ checking user balance inside contract (119ms)      ✓ testing if user is staking at the moment (88ms)      ✓ testing if user has staked (141ms)    TokenStaking redistributeRewards function      ✓ checking who can do redistribution (646ms)      ✓ checking TokenStaking balance (190ms)      ✓ checking user balance (110ms)    TokenStaking unstakeTokens function      ✓ checking users balance (445ms) 

for private ethereum test network make sure Ganache is running on HTTP://127.0.0.1:7545


Token Staking dApp

Blockchain Token Staking dApp built with React, Solidity, on ethereum Ganache testnet

Changes

  • 实现的测试
  • 添加了重新分发脚本
  • 注入了web3和metamask
  • 能够检测metamask是否安装、记录、锁定
  • 添加了totalStaked、myStake、,
  • 添加了测试人员重新分配奖励和领取测试令牌的框架
  • 将项目复制到您的目录(git克隆https://github.com/ibnzUK/Token-Staking-dApp )
  • 安装项目包(npm install)
  • 启动项目(npm run start)
  • 从/test/tokenlecking运行测试(truffle test)你知道吗
  • 为测试人员添加了重新分配奖励和申领测试令牌的框架

Running instructions

  • copy project to your directory ( git clone https://github.com/ibnzUK/Token-Staking-dApp )
  • install project packages (npm install)
  • start project (npm run start)

For Testing

  • To run tests from /test/TokenStaking (truffle test)

为专用以太坊eth测试网络测试输出

   TestToken deployment      ✓ token deployed and has a name (143ms)    TokenStaking deployment      ✓ staking contract deployed and has a name (85ms)      ✓ staking contract has 500k TestTokens tokens inside (143ms)    TokenStaking stakeTokens function      ✓ investors able to deposit (141ms)      ✓ aproving tokens, staking tokens, checking balance (1069ms)      ✓ checking contract balance after staking (141ms)      ✓ checking user balance inside contract (119ms)      ✓ testing if user is staking at the moment (88ms)      ✓ testing if user has staked (141ms)    TokenStaking redistributeRewards function      ✓ checking who can do redistribution (646ms)      ✓ checking TokenStaking balance (190ms)      ✓ checking user balance (110ms)    TokenStaking unstakeTokens function      ✓ checking users balance (445ms) 

请确保Ganache在HTTP://127.0.0.1:7545上运行,在以太坊ethGanache testnet上,更改了测试的运行指令,添加了ERC20测试令牌,添加了令牌锁定基本合同,启动了测试,更新了令牌锁定合同,重新分发

  • 实现的测试
  • 添加了重新分发脚本
  • 注入了web3和metamask
  • 能够检测metamask是否安装、记录、锁定
  • 添加了totalStaked、myStake、,
  • 添加了测试人员重新分配奖励和领取测试令牌的框架
  • 将项目复制到您的目录(git克隆https://github.com/ibnzUK/Token-Staking-dApp )
  • 安装项目包(npm install)
  • 启动项目(npm run start)
  • 从/test/tokenlecking运行测试(truffle test)你知道吗
  • 部分转自网络,侵权联系删除区块链源码网

    www.interchains.cc

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

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

    提供最优质的资源集合

    立即查看 了解详情