2019-10-18 06:16:59 +00:00
|
|
|
package actors
|
|
|
|
|
|
|
|
import (
|
2020-02-08 02:18:32 +00:00
|
|
|
"github.com/filecoin-project/specs-actors/actors/builtin/market"
|
2019-10-18 06:16:59 +00:00
|
|
|
)
|
|
|
|
|
2020-02-08 02:18:32 +00:00
|
|
|
type StorageMarketState = market.State
|
2019-10-19 04:54:22 +00:00
|
|
|
|
2019-10-24 15:12:50 +00:00
|
|
|
// TODO: Drop in favour of car storage
|
2019-10-22 10:20:43 +00:00
|
|
|
type SerializationMode = uint64
|
2019-10-21 18:12:11 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
SerializationUnixFSv0 = iota
|
|
|
|
// IPLD / car
|
|
|
|
)
|
|
|
|
|
2020-02-08 02:18:32 +00:00
|
|
|
type StorageDealProposal = market.DealProposal
|
2019-10-18 06:16:59 +00:00
|
|
|
|
2020-02-08 02:18:32 +00:00
|
|
|
type WithdrawBalanceParams = market.WithdrawBalanceParams
|
2019-10-24 15:12:50 +00:00
|
|
|
|
2020-02-08 02:18:32 +00:00
|
|
|
type PublishStorageDealsParams = market.PublishStorageDealsParams
|
2019-10-19 04:54:22 +00:00
|
|
|
|
2020-02-08 02:18:32 +00:00
|
|
|
type PublishStorageDealResponse = market.PublishStorageDealsReturn
|
2019-10-24 15:12:50 +00:00
|
|
|
|
2020-02-08 02:18:32 +00:00
|
|
|
type ActivateStorageDealsParams = market.VerifyDealsOnSectorProveCommitParams
|
2019-10-24 15:12:50 +00:00
|
|
|
|
2020-02-08 02:18:32 +00:00
|
|
|
type ComputeDataCommitmentParams = market.ComputeDataCommitmentParams
|
2019-10-19 04:54:22 +00:00
|
|
|
|
|
|
|
/*
|
2019-10-18 06:16:59 +00:00
|
|
|
func (sma StorageMarketActor) HandleCronAction(act *types.Actor, vmctx types.VMContext, params *struct{}) ([]byte, ActorError) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sma StorageMarketActor) SettleExpiredDeals(act *types.Actor, vmctx types.VMContext, params *struct{}) ([]byte, ActorError) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sma StorageMarketActor) SlashStorageDealCollateral(act *types.Actor, vmctx types.VMContext, params *struct{}) ([]byte, ActorError) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sma StorageMarketActor) GetLastExpirationFromDealIDs(act *types.Actor, vmctx types.VMContext, params *struct{}) ([]byte, ActorError) {
|
|
|
|
|
|
|
|
}
|
|
|
|
*/
|