projectchicago / gastoken

⛽ Tokenize gas on Ethereum with GasToken ⛽
https://gastoken.io
718 stars 89 forks source link

Make a Storage Gas Token Contract that owner can transform in Gas Token once data is no longer needed #14

Open 3esmit opened 5 years ago

3esmit commented 5 years ago

I'm working on democracy smart contracts. The proposal system have it's own contract, and once thefinal result is read by democracy, it can be discarded.

The amount of storage inside of this contract can be huge, because tabulation requires saving several information in state.

I see it could be possible for the contract enter in a "storage destruct" state, where the "free" could contain the pointer to delete (depending on how data is saved) The contract could have some special interface for saving and reading data, probably as a key-value storage. When a proposal is in this stage, it could be used as gas token.

There is also the case for MiniMeToken, which have a storage of all history of token. This contract could allow very old (more then one year) data being cleared up by other contracts with expansive calls.

This might be related for the gas rent that ethereum probably should support in future https://ethresear.ch/t/a-simple-and-principled-way-to-compute-rent-fees/1455 and might be a path forward for Gas Token to exists in such scenario.