@@ -20,11 +20,12 @@ import (
2020 "github.com/filecoin-project/go-fil-markets/retrievalmarket"
2121 "github.com/filecoin-project/go-fil-markets/storagemarket"
2222
23+ "github.com/filecoin-project/go-state-types/builtin/v8/market"
24+ "github.com/filecoin-project/go-state-types/builtin/v8/miner"
25+ "github.com/filecoin-project/go-state-types/builtin/v8/paych"
2326 apitypes "github.com/filecoin-project/lotus/api/types"
2427 "github.com/filecoin-project/lotus/chain/actors/builtin"
25- "github.com/filecoin-project/lotus/chain/actors/builtin/market"
26- "github.com/filecoin-project/lotus/chain/actors/builtin/miner"
27- "github.com/filecoin-project/lotus/chain/actors/builtin/paych"
28+ lminer "github.com/filecoin-project/lotus/chain/actors/builtin/miner"
2829 "github.com/filecoin-project/lotus/chain/actors/builtin/power"
2930 "github.com/filecoin-project/lotus/chain/types"
3031 "github.com/filecoin-project/lotus/node/modules/dtypes"
@@ -443,7 +444,7 @@ type FullNode interface {
443444 // StateMinerPower returns the power of the indicated miner
444445 StateMinerPower (context.Context , address.Address , types.TipSetKey ) (* MinerPower , error ) //perm:read
445446 // StateMinerInfo returns info about the indicated miner
446- StateMinerInfo (context.Context , address.Address , types.TipSetKey ) (miner. MinerInfo , error ) //perm:read
447+ StateMinerInfo (context.Context , address.Address , types.TipSetKey ) (MinerInfo , error ) //perm:read
447448 // StateMinerDeadlines returns all the proving deadlines for the given miner
448449 StateMinerDeadlines (context.Context , address.Address , types.TipSetKey ) ([]Deadline , error ) //perm:read
449450 // StateMinerPartitions returns all partitions in the specified deadline
@@ -469,9 +470,9 @@ type FullNode interface {
469470 // expiration epoch
470471 StateSectorGetInfo (context.Context , address.Address , abi.SectorNumber , types.TipSetKey ) (* miner.SectorOnChainInfo , error ) //perm:read
471472 // StateSectorExpiration returns epoch at which given sector will expire
472- StateSectorExpiration (context.Context , address.Address , abi.SectorNumber , types.TipSetKey ) (* miner .SectorExpiration , error ) //perm:read
473+ StateSectorExpiration (context.Context , address.Address , abi.SectorNumber , types.TipSetKey ) (* lminer .SectorExpiration , error ) //perm:read
473474 // StateSectorPartition finds deadline/partition with the specified sector
474- StateSectorPartition (ctx context.Context , maddr address.Address , sectorNumber abi.SectorNumber , tok types.TipSetKey ) (* miner .SectorLocation , error ) //perm:read
475+ StateSectorPartition (ctx context.Context , maddr address.Address , sectorNumber abi.SectorNumber , tok types.TipSetKey ) (* lminer .SectorLocation , error ) //perm:read
475476 // StateSearchMsg looks back up to limit epochs in the chain for a message, and returns its receipt and the tipset where it was executed
476477 //
477478 // NOTE: If a replacing message is found on chain, this method will return
@@ -918,6 +919,20 @@ type MinerPower struct {
918919 HasMinPower bool
919920}
920921
922+ type MinerInfo struct {
923+ Owner address.Address // Must be an ID-address.
924+ Worker address.Address // Must be an ID-address.
925+ NewWorker address.Address // Must be an ID-address.
926+ ControlAddresses []address.Address // Must be an ID-addresses.
927+ WorkerChangeEpoch abi.ChainEpoch
928+ PeerId * peer.ID
929+ Multiaddrs []abi.Multiaddrs
930+ WindowPoStProofType abi.RegisteredPoStProof
931+ SectorSize abi.SectorSize
932+ WindowPoStPartitionSectors uint64
933+ ConsensusFaultElapsed abi.ChainEpoch
934+ }
935+
921936type QueryOffer struct {
922937 Err string
923938
0 commit comments