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

[Tracking] Storage Provider Pallet Implementation #13

Closed
serg-temchenko opened this issue May 14, 2024 · 7 comments
Closed

[Tracking] Storage Provider Pallet Implementation #13

serg-temchenko opened this issue May 14, 2024 · 7 comments
Assignees
Labels
pallet-storage-provider Relates to the Storage Provider Pallet tracking Tracking issue
Milestone

Comments

@serg-temchenko
Copy link
Contributor

As described in our guidelines in the Storage Provider Pallet section, the StorageMinerActor should be ported as a Substrate pallet.

TODO: @aidan46 needs to define the order in which pallets should be implemented and extend the description accordingly.

@th7nder
Copy link
Contributor

th7nder commented May 16, 2024

Looks like something I could take. What do you think @aidan46, is it a good candidate to start with?

@th7nder
Copy link
Contributor

th7nder commented May 16, 2024

We established I'll take #16 first.

@aidan46 aidan46 linked a pull request May 30, 2024 that will close this issue
8 tasks
@aidan46
Copy link
Contributor

aidan46 commented Jun 17, 2024

Testing — preparing for delivery

@th7nder th7nder reopened this Jul 2, 2024
@jmg-duarte jmg-duarte changed the title Storage Provider Pallet Implementation [Tracking] Storage Provider Pallet Implementation Jul 10, 2024
@jmg-duarte jmg-duarte pinned this issue Jul 12, 2024
@jmg-duarte
Copy link
Contributor

Logic on the not implemented extrinsics

  • control_addresses -> we are only using 1 owner address.
  • change_worker_address -> not working with worker addresses.
  • apply_rewards -> ties into vesting rewards, a mechanism we do not currently support. Only rewards from deals.
  • report_consensus_fault -> part of consensus mechanism, replaced by AURA.
  • withdraw_balance -> ties into vesting.
  • change_multiaddresses -> no multiaddr support.
  • compact_partitions -> cron should do this functionality.
  • compact_sector_numbers -> cron should do this functionality.
  • confirm_change_worker_address -> not working with worker addresses.
  • dispute_windowed_post -> Part of FEVM functionality, not core filecoin.
  • prove_replica_updates -> used for changing proof type and proving the updated pof type, we only support 1 proof type atm
  • change_beneficiary -> not supporting beneficiaries, only 1 reward address.
  • get_beneficiary -> not supporting beneficiaries, only 1 reward address.
  • change_peer_id -> could be implemented if needed (i think this was discussed before)
  • change_owner_address -> could be implemented if needed (i think this was discussed before)
  • check_sector_proven -> could be implemented if needed
  • all the getters -> these values can be gotten from the storage map holding all the sp information, if there is a need for these getters they could be implemented.

@cernicc
Copy link
Member

cernicc commented Jul 15, 2024

Found while creating tests #131

@aidan46
Copy link
Contributor

aidan46 commented Jul 26, 2024

Some information about the hook implementations:

Pre-commit hook

This hook checks pre-committed sectors for all SPs and checks if the sector is expired (no proof submitted for X amount of time). If the sector is expired, it should remove that sector and burn the SPs initial deposit.

PoSt checking

The PoSt hook needs to check sectors that have been prove committed. It checks if the PoSt deadline has passed for all SPs and their partitions. If any deadlines are past due the SPs initial deposit should be burned and those sectors should be set to faulty. Once a sector is set to fault the SP can recover this sector by calling the declare_faults_recovered extrinsic.

@jmg-duarte jmg-duarte added this to the Phase 1 milestone Jul 26, 2024
@jmg-duarte jmg-duarte added pallet-storage-provider Relates to the Storage Provider Pallet tracking Tracking issue labels Jul 31, 2024
@jmg-duarte jmg-duarte removed a link to a pull request Aug 23, 2024
8 tasks
@jmg-duarte jmg-duarte modified the milestones: Phase 1, Phase 2 Sep 3, 2024
@jmg-duarte
Copy link
Contributor

Closing for now as we've finished the major issues

@jmg-duarte jmg-duarte unpinned this issue Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pallet-storage-provider Relates to the Storage Provider Pallet tracking Tracking issue
Projects
None yet
Development

No branches or pull requests

5 participants