@caelum-tech/gas-tank
v1.0.1
Published
<h1>Caelum Gas Tank</h1>
Downloads
3
Readme
Caelum Gas Tank (CGT) is a smart contract that allows users to request gas. Users must be in the smart contract whitelist and comply with two requirements:
- The number of blocks sealed since the last gas request must be higher than block threshold
- The amount of gas that an account holds must be less than or equal to the gas threshold
- An administrator deploys the GasTank using as params:
- a list of accounts to add into whitelist
- a wei threshold amount
- a block threshold
- the amount of gas to send on every request.
- Gas tank needs ether, anyone can send ether into the gas tank
- The owner (administrator) of the contract can add or remove whitelisted accounts
- If gas tank has ether any user in the whitelist can request gas calling to the function
request_gas
- If the user complies with the thresholds the amount defined is sent to the user
Block threshold and the amount to send on gas request is the same for every whitelisted user.
npm i && npm test