Documentation ¶
Index ¶
- Variables
- func GetBaseInfo(ctx context.Context, fu lotusapi.FullNodeStruct, minerId string, ...) (eligibility int)
- func GetChainBasefee(chainTipSetKey *types.TipSet) int64
- func GetChainHeight(chainTipSetKey *types.TipSet) int64
- func GetLocalTime() (localTime int64)
- func GetMinerID(ctx context.Context, mi lotusapi.StorageMinerStruct) (id string, err error)
- func GetMinerVersion(ctx context.Context, mi lotusapi.StorageMinerStruct) (miVer string, err error)
- func GetPowerList(ctx context.Context, fu lotusapi.FullNodeStruct, minerId string, ...) (mpRW int64, mpQw int64, tpRw int64, tpQw int64)
- func GetTipsetKey(ctx context.Context, fu lotusapi.FullNodeStruct) (tipSet *types.TipSet, err error)
- func GetWalletBalance(ctx context.Context, fu lotusapi.FullNodeStruct, addrStg string) (balance float64)
- func GetWalletlist(ctx context.Context, fu lotusapi.FullNodeStruct) (mpoolTotal int)
- func Strval(value interface{}) string
- type ApiConnInfo
- type ChainSyncState
- type DaemonInfo
- type JobInfoStruct
- type LockedInfoStruct
- type MinerInfoStruct
- type MpoolMsg
- type SchedDiagInfo
- type SchedDiagRequestInfo
- type SchedInfoStruct
- type SchedParse
- type WalletInfo
- type WorkerInfoStuct
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MethodAccount = []string{"Constructor", "Constructor"} MethodInit = []string{"Constructor", "Exec"} MethodCron = []string{"Constructor", "EpochTick"} MethodReward = []string{"Constructor", "AwardBlockReward", "ThisEpochReward", "UpdateNetworkKPI"} MethodMultisig = []string{"Constructor", "Propose", "Approve", "Cancel", "AddSigner", "RemoveSigner", "SwapSigner", "ChangeNumApprovalsThreshold", "LockBalance"} MethodPaymentChannel = []string{"Constructor", "UpdateChannelState", "Settle", "Collect"} MethodStorageMarket = []string{"Constructor", "AddBalance", "WithdrawBalance", "PublishStorageDeals", "VerifyDealsForActivation", "ActivateDeals", "OnMinerSectorsTerminate", "ComputeDataCommitment", "CronTick"} MethodStoragePower = []string{"Constructor", "CreateMiner", "UpdateClaimedPower", "EnrollCronEvent", "OnEpochTickEnd", "UpdatePledgeTotal", "Deprecated1", "SubmitPoRepForBulkVerify", "CurrentTotalPower"} MethodStorageMiner = []string{"Constructor", "ControlAddresses", "ChangeWorkerAddress", "ChangePeerID", "SubmitWindowedPoSt", "PreCommitSector", "ProveCommitSector", "ExtendSectorExpiration", "TerminateSectors", "DeclareFaults", "DeclareFaultsRecovered", "OnDeferredCronEvent", "CheckSectorProven", "ApplyRewards", "ReportConsensusFault", "WithdrawBalance", "ConfirmSectorProofsValid", "ChangeMultiaddrs", "CompactPartitions", "CompactSectorNumbers", "ConfirmUpdateWorkerKey", "RepayDebt", "ChangeOwnerAddress", "DisputeWindowedPoSt"} MethodVerifiedRegistry = []string{"Constructor", "AddVerifier", "RemoveVerifier", "AddVerifiedClient", "UseBytes", "RestoreBytes"} MethodMessageType = map[string][]string{"account": MethodAccount, "init": MethodInit, "cron": MethodCron, "reward": MethodReward, "multisig": MethodMultisig, "paymentchannel": MethodPaymentChannel, "storagemarket": MethodStorageMarket, "storagepower": MethodStoragePower, "storageminer": MethodStorageMiner, "verifiedregistry": MethodVerifiedRegistry} )
Functions ¶
func GetBaseInfo ¶
func GetChainBasefee ¶
func GetChainHeight ¶
func GetLocalTime ¶
func GetLocalTime() (localTime int64)
func GetMinerID ¶
func GetMinerVersion ¶
func GetPowerList ¶
func GetTipsetKey ¶
func GetWalletBalance ¶
func GetWalletlist ¶
func GetWalletlist(ctx context.Context, fu lotusapi.FullNodeStruct) (mpoolTotal int)
Types ¶
type ApiConnInfo ¶
func ParseApiInfo ¶
func ParseApiInfo(s string) ApiConnInfo
type ChainSyncState ¶
func GetChainSyncState ¶
func GetChainSyncState(ctx context.Context, fu lotusapi.FullNodeStruct) []ChainSyncState
type DaemonInfo ¶
func GetInfo ¶
func GetInfo(ctx context.Context, fu lotusapi.FullNodeStruct, chainHead *types.TipSet) (daemonInfo DaemonInfo, err error)
type JobInfoStruct ¶
type JobInfoStruct struct { JjobId string Jsector string Jhost string Jtask string JjobStartTime string JrunWait string JjobStartEpoch int }
func GetWorkerJobs ¶
func GetWorkerJobs(ctx context.Context, mi lotusapi.StorageMinerStruct) (jobInfo []JobInfoStruct)
type LockedInfoStruct ¶
func GetLockedFunds ¶
func GetLockedFunds(ctx context.Context, fu lotusapi.FullNodeStruct, minerId string, chainTipSetKey *types.TipSet) (linfo []LockedInfoStruct)
type MinerInfoStruct ¶
type MinerInfoStruct struct { Owner string OwnerAddr string Worker string WorkerAddr string Control0 string Control0Addr string SectorSize uint64 }
func GetMinerInfo ¶
func GetMinerInfo(ctx context.Context, fu lotusapi.FullNodeStruct, minerId string, chainTipSetKey *types.TipSet) (info MinerInfoStruct, err error)
type MpoolMsg ¶
type SchedDiagInfo ¶
type SchedDiagInfo struct { Requests []SchedDiagRequestInfo OpenWindows []string }
type SchedDiagRequestInfo ¶
type SchedInfoStruct ¶
func GetSchedDiag ¶
func GetSchedDiag(ctx context.Context, mi lotusapi.StorageMinerStruct) []SchedInfoStruct
type SchedParse ¶
type WalletInfo ¶
type WorkerInfoStuct ¶
type WorkerInfoStuct struct { WHost string WCpu uint64 WGpu int WRamTotal uint64 WRamReserved int WRamTasks uint64 WVmemTotal uint64 WVmemReseved int WvmemTasks uint64 WCpuUsed uint64 WGpuUsed int }
func GetWorkerInfo ¶
func GetWorkerInfo(ctx context.Context, mi lotusapi.StorageMinerStruct) (workers []WorkerInfoStuct)
Click to show internal directories.
Click to hide internal directories.