Claimable contracts for Solidity – 可索赔的坚固性合同区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Claimable contracts for Solidity – 可索赔的坚固性合同区块链毕设代写 是一篇很好的国外资料

Claimable contracts for Solidity

Claimable contracts extend the concept of Ownable contracts and allow the owner of the contract to specify one or more addresses that can claim ownership of the contract after a certain time.

The owner can keep extending ownership by periodically setting a new expiration date. Should the owner lose keys, one of the specified claimers can then claim ownership and become the new owner.

Usage

To use this package, copy Ownable.sol and Claimable.sol into your project, and make it extend Claimable:

import "./Claimable.sol"; contract MyContract is Claimable {}

See it in action (Frontend Console)

To see this project in action, you need to install a few dependencies:

npm install -g truffle npm install -g express npm install -g ganache-cli  ganache -p 7545 # if you chose another port, modify truffle-config.js  truffle migrate # (copy address of the contract for the frontend)  node gui/run.js # will start a webserver on port 3000

License

This code is provided under the MIT License


可申请的坚固性合同

可请求权合同扩展了可拥有合同的概念,允许合同所有人指定一个或多个地址,在一定时间后可以请求合同的所有权

所有者可以通过定期设置新的过期日期来不断扩展所有权。如果所有者丢失了密钥,其中一个指定的请求者可以声明所有权并成为新的所有者

使用

若要使用此软件包,请将Ownable.sol和Claimable.sol复制到您的项目中,并将其扩展为Claimable:

import "./Claimable.sol"; contract MyContract is Claimable {}

查看它的实际操作(前端控制台)

若要查看此项目的运行情况,您需要安装一些依赖项:

npm install -g truffle npm install -g express npm install -g ganache-cli  ganache -p 7545 # if you chose another port, modify truffle-config.js  truffle migrate # (copy address of the contract for the frontend)  node gui/run.js # will start a webserver on port 3000

许可证

此代码是在MIT许可证下提供的

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

www.interchains.cc

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

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

提供最优质的资源集合

立即查看 了解详情