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

Work with lotus storage and lotus market directly from smart contracts #44

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

Conversation

pixelplex-dev
Copy link

This commit is the next step of interacting smart contracts with Filestar network.
Motivation: The original way to communicate with miners and nodes for storage deals is command line. Now Filestar has smart contract support and it's great! But it still can't realise store/retrieve functional. Users aren't able to automate tasks connected with lotus storage.

Main goal

Add opportunity to work with lotus storage directly from smart contracts.

Our solution

We implemented new built-in functions (opcodes) for solidity compiler and EVM realisation.

List of new opcodes:

  • importData - local file import, prepare for storage deal
  • drop - local file drop, remove from import list
  • init - make storage deal with miner
  • retrieve - get back your data from miner

All information about opcodes and parameters you can find in docs repository.

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.

None yet

2 participants