Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3esmit opened this issue Mar 17, 2019 · 0 comments

Comments

@3esmit
Copy link

3esmit commented Mar 17, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant