subscan
Runtime Modules / PhalaMining
Spec Version:
Call Functions
Events
Name
Lookup
Attributes
CoolDownExpirationChanged5700["u64"]
MinerStarted5701["AccountId"]
MinerStopped5702["AccountId"]
MinerReclaimed5703["AccountId","BalanceOf","BalanceOf"]
MinerBound5704["AccountId","WorkerPublicKey"]
MinerUnbound5705["AccountId","WorkerPublicKey"]
MinerEnterUnresponsive5706["AccountId"]
MinerExitUnresponsive5707["AccountId"]
MinerSettled5708["AccountId","u128","u128"]
InternalErrorMinerSettleFailed5709["WorkerPublicKey"]
SubsidyBudgetHalved570a
InternalErrorWrongHalvingConfigured570b
TokenomicParametersChanged570c
MinerSettlementDropped570d["AccountId","u128","u128"]
Storage Functions
Name
Type
TokenomicParameters{"origin":"PlainType","plain_type":"phala_types:messaging:TokenomicParameters","PlainTypeValue":295}
ScheduledTokenomicUpdate{"origin":"PlainType","plain_type":"phala_types:messaging:TokenomicParameters","PlainTypeValue":295}
OnlineMiners{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
ExpectedHeartbeatCount{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
Miners{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"phala_pallets:mining:pallet:MinerInfo","keys_id":0,"value_id":500}}
MinerBindings{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"[U8; 32]","keys_id":0,"value_id":116}}
WorkerBindings{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["[U8; 32]"],"value":"AccountId","keys_id":116,"value_id":0}}
CoolDownPeriod{"origin":"PlainType","plain_type":"U64","PlainTypeValue":8}
NextSessionId{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
MiningStartBlock{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
MiningHalvingInterval{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
Stakes{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"U128","keys_id":0,"value_id":6}}
Error Types
Name
Docs
BadSenderThe transaction is sent by an unauthorized sender
_InvalidMessageDeprecated.
WorkerNotRegisteredThe worker is not registered in the registry.
_GatekeeperNotRegisteredDeprecated
DuplicateBoundMinerNot permitted because the miner is already bound with another worker.
BenchmarkMissingThere's no benchmark result on the blockchain.
MinerNotFoundMiner not found.
MinerNotBoundNot permitted because the miner is not bound with a worker.
MinerNotReadyMiner is not in `Ready` state to proceed.
MinerNotMiningMiner is not in `Mining` state to stop mining.
WorkerNotBoundNot permitted because the worker is not bound with a miner account.
CoolDownNotReadyCannot reclaim the worker because it's still in cooldown period.
InsufficientStakeCannot start mining because there's too little stake.
TooMuchStakeCannot start mining because there's too much stake (exceeds Vmax).
InternalErrorBadTokenomicParametersInternal error. The tokenomic parameter is not set.
DuplicateBoundWorkerNot permitted because the worker is already bound with another miner account.
BenchmarkTooLowIndicating the initial benchmark score is too low to start mining.
InternalErrorCannotStartWithExistingStakeInternal error. A miner should never start with existing stake in the storage.