2019-11-25 04:45:13 +00:00
|
|
|
package genesis
|
|
|
|
|
2019-11-28 22:50:58 +00:00
|
|
|
import (
|
2019-12-19 20:13:17 +00:00
|
|
|
"github.com/filecoin-project/go-address"
|
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
|
|
|
|
SectorID uint64
|
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
|
|
|
|
|
|
|
|
SectorSize uint64
|
|
|
|
|
|
|
|
Sectors []*PreSeal
|
|
|
|
|
|
|
|
Key types.KeyInfo // TODO: separate file
|
2019-11-25 04:45:13 +00:00
|
|
|
}
|