{"_id":"@caelum-tech/gas-tank","_rev":"11-82fdcfeb1022404a4a182dec2bccc75d","name":"@caelum-tech/gas-tank","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@caelum-tech/gas-tank","version":"1.0.0","description":"<h1>Caelum Gas Tank</h1>","main":"truffle-config.js","repository":{"type":"git","url":"git+ssh://git@gitlab.com/caelum-tech/caelum-gas-tank.git"},"directories":{"test":"test"},"dependencies":{"bn.js":"^4.11.8","openzeppelin-solidity":"^2.1.3","truffle":"^5.0.6","truffle-assertions":"^0.8.0","web3":"^1.0.0-beta.47"},"devDependencies":{"eslint":"^5.16.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-node":"^9.0.1","eslint-plugin-promise":"^4.1.1","eslint-plugin-standard":"^4.0.0","solidity-coverage":"github:sc-forks/solidity-coverage#leapdao","solium":"^1.2.4"},"scripts":{"coverage":"solidity-coverage","eslint":"eslint test migrations","lint":"npm run eslint; npm run solium","npm:publish":"npm publish --access public","solium":"solium --dir contracts","test":"truffle test"},"author":"","license":"Apache-2.0","gitHead":"b1f8ba69a7e22c565ea6a2d8f540baab87faa9ab","bugs":{"url":"https://gitlab.com/caelum-tech/caelum-gas-tank/issues"},"homepage":"https://gitlab.com/caelum-tech/caelum-gas-tank#readme","_id":"@caelum-tech/gas-tank@1.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-46qBpdtwE2Jl0Km/7c8UR2NFKbt3RN816YE0z2aqiWjfnvCTbqsAH0tgWV0Zu8QH9q3Ow3WctuHT+q4hGfvHAQ==","shasum":"0e0936a0f06338e6361cf453253cb97263ff4841","tarball":"https://registry.npmjs.org/@caelum-tech/gas-tank/-/gas-tank-1.0.0.tgz","fileCount":17,"unpackedSize":79707,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdB2TkCRA9TVsSAnZWagAAHqkP/1FeeEsrlg0NWEwkTnBj\n12n1bT0jhqoYbJkKOZ3GDdaTSauaxm8/ws5syCKHzXxYjqGjhCQrqioH0wab\nxGNecUCA0MAYtULJe2RwP1hwDNjLkU3KZBPFDKBVE9x5VaddsHSgSDehTq29\nL/zE1EaEg9/7HeyTsn0q83xBB2bi8buNtWowXKKqH1a60mHWxBzhaD9X2013\nm4qFYbKMHAXipscwiUt2Q9iJP6cRywCNve1n44vyi5GADDfcC6LaQdOBeeJf\nEAe6raX9kTqtMJ+0oTfL8FXQYMkDl7DxgkxhQN9n3IizWnANAIrWcBC1fWlq\nZ95/0wz4mw4yUcdLODKlZRWE10uQ2hdCkh9KY3J+qMSoVn+PfPti0hNNTPUG\nB+g6iDbPgsLXsDsp9uE58PXLbF9iW21YuHHZ6V7hH1MzUrd6p+zYRqlR5+Ez\nC7ZPIg2/TfQxRuFgV+1xEArP2guuRiK82scHjudny33BWJDdIcsEWINA4YlN\n4v2ynGyi1Ha8Lv1gZ37RN1g9nfj0HbLPMf/3oe0bnANFyQjwbYWVN+8nsXzE\n6JUBfMGA9pRHUXYJkc/VXlsveg8obUacZbfXX1D16y1LPStu3EWOr+K21e3i\nX1j69I117os4+YpMZnpnKp3K0x2g6g5c797sHGlErOR2Q+N+9JLzlF/YdUZI\npxbZ\r\n=Qcse\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwVOKAHkK2+DSQjEwfmoq46dszmsv3Go+kEHl/LXFYagIhAP47guUzuctvRp9pMIe6M42FSEODRdRfyU3FxJjipBSw"}]},"maintainers":[{"name":"alexpuig","email":"alex@caelumlabs.com"},{"name":"hugocaelum","email":"hugo@caelumlabs.com"},{"name":"jordicaelum","email":"jordi@caelumlabs.com"},{"name":"chuck-caelum","email":"chuck@caelumlabs.com"},{"name":"celeduc","email":"celeduc@gmail.com"}],"_npmUser":{"name":"chuck-caelum","email":"chuck@caelumlabs.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gas-tank_1.0.0_1560765667051_0.47303209541425506"},"_hasShrinkwrap":false},"1.0.1":{"name":"@caelum-tech/gas-tank","version":"1.0.1","description":"<h1>Caelum Gas Tank</h1>","main":"truffle-config.js","repository":{"type":"git","url":"git+ssh://git@gitlab.com/caelum-tech/caelum-gas-tank.git"},"directories":{"test":"test"},"dependencies":{"bn.js":"^4.11.8","openzeppelin-solidity":"^2.1.3","truffle":"^5.0.6","truffle-assertions":"^0.8.0","web3":"^1.0.0-beta.47"},"devDependencies":{"eslint":"^5.16.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-node":"^9.0.1","eslint-plugin-promise":"^4.1.1","eslint-plugin-standard":"^4.0.0","solidity-coverage":"github:sc-forks/solidity-coverage#leapdao","solium":"^1.2.4"},"scripts":{"build":"truffle build","coverage":"solidity-coverage","eslint":"eslint test migrations","lint":"npm run eslint; npm run solium","npm:publish":"npm publish --access public","solium":"solium --dir contracts","test":"truffle test"},"author":"","license":"Apache-2.0","gitHead":"bbaf7b940c937b80cc8b47e3de6f645d74def048","bugs":{"url":"https://gitlab.com/caelum-tech/caelum-gas-tank/issues"},"homepage":"https://gitlab.com/caelum-tech/caelum-gas-tank#readme","_id":"@caelum-tech/gas-tank@1.0.1","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-fRkna2jHuAa3ftuszupeeKKZqLwsviESmonpNori/abo7AwgiTwkLfV9NfTGSJ1klp4XFftXLYMj8fc7ih6pdA==","shasum":"dff4a56e39d2b67bad5a3500b10f9130e522cb76","tarball":"https://registry.npmjs.org/@caelum-tech/gas-tank/-/gas-tank-1.0.1.tgz","fileCount":20,"unpackedSize":564077,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdB55aCRA9TVsSAnZWagAAbkwP/25VjaoKJ0W8TjZbEsSS\niLw6xROqu8uQ6MAMII9TRR9r7JnpZzEXO3iWiRR4JJdE/CEhCbCUA/JbqqMK\nPGLCYSb1qAu27vUEIMXTrJm7begU+rrlqWo/pa9CF60OHK27bLrHzTjPooDT\n9O1//0FHEbWQ3avKYrZTIBgCjqIQ7JHXQZcqnrcdb6I/PKuuGvYqq6U31HT0\nQ3rjoVdO3DoLkX07ri513jJxLcgEbVk24barPHUFW5jf6ADy8c7u9RCu/Eab\nmOPiOUTttrgMZ6kHVIRHRm63wRvl1osOBgeSeKT5jyZ1NsOY16tSfmrIXmEf\nL8oemwhSAIjdUOQmrXCH9yQkTyjv7W3T7BeaXcrStjOGSdRke5pB5dtzGWBu\nq7EyNhAlpaaIPWw7r2J0FQqDJCFQZWVNG9Hjlb+qbtNe1a1pjoB8kqL27CXM\n/InOIE3LzTycEXqwYC0S2WcH4r1iheXXSALDOcN6W38vBt6QkG+1Pr6E/9y2\nY9ZXscGkmd7cS7VpUzxbkyC/2915LomHCFNIroZYgXw6P6acxHkGSOrLLDa5\nOvyGKwrn5FiqLhtYlLT/N/oM0ZhULMshjsPd04eiqIXIyXU+Um9OuqLLoAKl\naboMywLPez696Z+pAc69LAMF8yXK+puI2KBpur8CciEFfwrV+SMlDFy+BNex\n2Yrr\r\n=Xl0A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoSH8fX2oC4zIH71qPiqHlpBRRRaeX9XK2BEqFQ2h53gIhAMjkgELc3LCosoq8TlXtll0VBE8d1dgnDGz+N/rMHiPN"}]},"maintainers":[{"name":"alexpuig","email":"alex@caelumlabs.com"},{"name":"celeduc","email":"celeduc@gmail.com"},{"name":"chuck-caelum","email":"chuck@caelumlabs.com"},{"name":"hugocaelum","email":"hugo@caelumlabs.com"},{"name":"jordicaelum","email":"jordi@caelumlabs.com"}],"_npmUser":{"name":"chuck-caelum","email":"chuck@caelumlabs.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gas-tank_1.0.1_1560780377020_0.14342059878039226"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-17T10:01:06.832Z","1.0.0":"2019-06-17T10:01:07.201Z","modified":"2022-04-04T21:29:59.944Z","1.0.1":"2019-06-17T14:06:17.168Z"},"maintainers":[{"email":"alex@caelumlabs.com","name":"alexpuig"},{"email":"chuck@caelumlabs.com","name":"chuck-caelum"}],"description":"<h1>Caelum Gas Tank</h1>","homepage":"https://gitlab.com/caelum-tech/caelum-gas-tank#readme","repository":{"type":"git","url":"git+ssh://git@gitlab.com/caelum-tech/caelum-gas-tank.git"},"bugs":{"url":"https://gitlab.com/caelum-tech/caelum-gas-tank/issues"},"license":"Apache-2.0","readme":"<h1>Caelum Gas Tank</h1>\n\n<h2>Overview</h2>\n\n\n**Caelum Gas Tank** (CGT) is a smart contract that allows users to request gas.\nUsers must be in the smart contract whitelist and comply with two requirements:\n- The number of blocks sealed since the last gas request must be higher than block threshold\n- The amount of gas that an account holds must be less than or equal to the gas threshold\n\n<h2>Work flow</h2>\n\n1. An administrator deploys the GasTank using as params:\n   - a list of accounts to add into whitelist\n   - a wei threshold amount\n   - a block threshold\n   - the amount of gas to send on every request.\n2. Gas tank needs ether, anyone can send ether into the gas tank\n3. The owner (administrator) of the contract can add or remove whitelisted accounts\n4. If gas tank has ether any user in the whitelist can request gas calling to the function `request_gas`\n5. If the user complies with the thresholds the amount defined is sent to the user\n\n<h2>Limitations, or not.</h2>\n\nBlock threshold and the amount to send on gas request is the same for every whitelisted user.\n\n<h2>Usage</h2>\nDeploy on your own network or pass tests\n\n```npm i && npm test```\n","readmeFilename":"README.md"}