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

Perpetual Storage Contract #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

scotthconner
Copy link

A perpetual storage scheme that works as follows:

  • People create funds against CIDs they want stored over time

  • Each fund can be claimed over a period of time for a reward by showing an active deal that contains that CID and will be active through the claim period.

  • Anyone can add to a CID incentive fund.

  • The same deal maker can continually claim against an incentive over time to perpetuate the data storage.

  • I think I'm making some assumptions on verifying deal CID. A lot of the filecoin actor logic will need to be double checked.

  • The epoch stuff likely doesn't work right, as there are differences between block.number (uint256) and epochs coming out of deal terms (int64).

  • I haven't written any tests for this, so there are likely bugs. It does compile, and most of the solidity "logic" for a perpetual incentive scheme is there.

  • I had to use "MarketAPIOld" for some methods from Zondax, but I also noticed that in the later versions of this it is fixed. This will need to be paired up against their latest release.

…arket. Some notes:

* The epoch stuff likely doesn't work right, as there are differences between block.number (uint256) and epochs coming out of deal terms (int64).
* I haven't written any tests for this, so there are likely bugs. It does compile, and most of the solidity "logic" for a perpetual incentive scheme is there.
* I had to use "MarketAPIOld" for some methods from Zondax, but I also noticed that in the later versions of this it is fixed. This will need to be paired up against their latest release.
Copy link

@xlassix xlassix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work. I love the contract draft

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

Successfully merging this pull request may close these issues.

2 participants