Name | Lookup | Parameters | |
---|---|---|---|
set_cool_down_expiration | 5700 | 1 | |
unbind | 5701 | 1 | |
force_heartbeat | 5702 | - | |
force_start_mining | 5703 | 2 | |
force_stop_mining | 5704 | 1 | |
update_tokenomic | 5705 | 1 |
Name | Lookup | Attributes | |
---|---|---|---|
CoolDownExpirationChanged | 5700 | ["u64"] | |
MinerStarted | 5701 | ["AccountId"] | |
MinerStopped | 5702 | ["AccountId"] | |
MinerReclaimed | 5703 | ["AccountId","BalanceOf","BalanceOf"] | |
MinerBound | 5704 | ["AccountId","WorkerPublicKey"] | |
MinerUnbound | 5705 | ["AccountId","WorkerPublicKey"] | |
MinerEnterUnresponsive | 5706 | ["AccountId"] | |
MinerExitUnresponsive | 5707 | ["AccountId"] | |
MinerSettled | 5708 | ["AccountId","u128","u128"] | |
InternalErrorMinerSettleFailed | 5709 | ["WorkerPublicKey"] | |
SubsidyBudgetHalved | 570a | ||
InternalErrorWrongHalvingConfigured | 570b | ||
TokenomicParametersChanged | 570c | ||
MinerSettlementDropped | 570d | ["AccountId","u128","u128"] |
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}} |
Name | Docs |
---|---|
BadSender | The transaction is sent by an unauthorized sender |
_InvalidMessage | Deprecated. |
WorkerNotRegistered | The worker is not registered in the registry. |
_GatekeeperNotRegistered | Deprecated |
DuplicateBoundMiner | Not permitted because the miner is already bound with another worker. |
BenchmarkMissing | There's no benchmark result on the blockchain. |
MinerNotFound | Miner not found. |
MinerNotBound | Not permitted because the miner is not bound with a worker. |
MinerNotReady | Miner is not in `Ready` state to proceed. |
MinerNotMining | Miner is not in `Mining` state to stop mining. |
WorkerNotBound | Not permitted because the worker is not bound with a miner account. |
CoolDownNotReady | Cannot reclaim the worker because it's still in cooldown period. |
InsufficientStake | Cannot start mining because there's too little stake. |
TooMuchStake | Cannot start mining because there's too much stake (exceeds Vmax). |
InternalErrorBadTokenomicParameters | Internal error. The tokenomic parameter is not set. |
DuplicateBoundWorker | Not permitted because the worker is already bound with another miner account. |
BenchmarkTooLow | Indicating the initial benchmark score is too low to start mining. |
InternalErrorCannotStartWithExistingStake | Internal error. A miner should never start with existing stake in the storage. |