@gmussi-contracts/gmussi-claimable
v1.2.0
Published
A package with Ownable and Claimable concepts for solidity, to be used as import by other contracts.
Downloads
1
Maintainers
Readme
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