lotus/genesis/types.go

28 lines
522 B
Go
Raw Normal View History

2019-11-25 04:45:13 +00:00
package genesis
2019-11-28 22:50:58 +00:00
import (
"github.com/filecoin-project/go-address"
2020-02-08 02:18:32 +00:00
"github.com/filecoin-project/specs-actors/actors/abi"
2019-11-28 22:50:58 +00:00
"github.com/filecoin-project/lotus/chain/actors"
"github.com/filecoin-project/lotus/chain/types"
)
2019-11-25 04:45:13 +00:00
type PreSeal struct {
CommR [32]byte
CommD [32]byte
2020-02-08 02:18:32 +00:00
SectorID abi.SectorNumber
2019-12-07 14:12:10 +00:00
Deal actors.StorageDealProposal
2019-11-25 04:45:13 +00:00
}
type GenesisMiner struct {
2019-11-28 22:50:58 +00:00
Owner address.Address
Worker address.Address
2020-02-08 02:18:32 +00:00
SectorSize abi.SectorSize
2019-11-28 22:50:58 +00:00
Sectors []*PreSeal
Key types.KeyInfo // TODO: separate file
2019-11-25 04:45:13 +00:00
}