lotus/chain/actors/actor_storagemarket.go

63 lines
1.7 KiB
Go
Raw Normal View History

package actors
import (
2020-02-08 02:18:32 +00:00
"github.com/filecoin-project/specs-actors/actors/builtin/market"
)
type smaMethods struct {
Constructor uint64
WithdrawBalance uint64
AddBalance uint64
CheckLockedBalance uint64
PublishStorageDeals uint64
HandleCronAction uint64
SettleExpiredDeals uint64
ProcessStorageDealsPayment uint64
SlashStorageDealCollateral uint64
GetLastExpirationFromDealIDs uint64
2019-10-19 10:20:33 +00:00
ActivateStorageDeals uint64
ComputeDataCommitment uint64
}
var SMAMethods = smaMethods{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
2020-02-08 02:18:32 +00:00
type StorageMarketState = market.State
// TODO: Drop in favour of car storage
2019-10-22 10:20:43 +00:00
type SerializationMode = uint64
const (
SerializationUnixFSv0 = iota
// IPLD / car
)
2020-02-08 02:18:32 +00:00
type StorageDealProposal = market.DealProposal
2020-02-08 02:18:32 +00:00
type WithdrawBalanceParams = market.WithdrawBalanceParams
2020-02-08 02:18:32 +00:00
type PublishStorageDealsParams = market.PublishStorageDealsParams
2020-02-08 02:18:32 +00:00
type PublishStorageDealResponse = market.PublishStorageDealsReturn
2020-02-08 02:18:32 +00:00
type ActivateStorageDealsParams = market.VerifyDealsOnSectorProveCommitParams
2020-02-08 02:18:32 +00:00
type ComputeDataCommitmentParams = market.ComputeDataCommitmentParams
/*
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) {
}
*/