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":278}
ScheduledTokenomicUpdate{"origin":"PlainType","plain_type":"phala_types:messaging:TokenomicParameters","PlainTypeValue":278}
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":462}}
MinerBindings{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"[U8; 32]","keys_id":0,"value_id":117}}
WorkerBindings{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["[U8; 32]"],"value":"AccountId","keys_id":117,"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
BadSender
InvalidMessage
WorkerNotRegistered
GatekeeperNotRegistered
DuplicateBoundMiner
BenchmarkMissing
MinerNotFound
MinerNotBound
MinerNotReady
MinerNotMining
WorkerNotBound
CoolDownNotReady
InsufficientStake
TooMuchStake
InternalErrorBadTokenomicParameters
DuplicateBoundWorker
BenchmarkTooLowIndicating the initial benchmark score is too low to start mining.
InternalErrorCannotStartWithExistingStake