Name | Lookup | Parameters | |
|---|---|---|---|
| set_cool_down_expiration | 5700 | 1 | |
| unbind | 5701 | 1 | |
| force_heartbeat | 5702 | - | |
| force_start_computing | 5703 | 2 | |
| force_stop_computing | 5704 | 1 | |
| update_tokenomic | 5705 | 1 | |
| set_heartbeat_paused | 5706 | 1 | |
| set_budget_per_block | 5707 | 3 | |
| update_contract_root | 5708 | 1 |
Name | Lookup | Attributes | |
|---|---|---|---|
| CoolDownExpirationChanged | 5700 | ["u64"] | |
| WorkerStarted | 5701 | ["AccountId","u128","u32"] | |
| WorkerStopped | 5702 | ["AccountId"] | |
| WorkerReclaimed | 5703 | ["AccountId","BalanceOf","BalanceOf"] | |
| SessionBound | 5704 | ["AccountId","WorkerPublicKey"] | |
| SessionUnbound | 5705 | ["AccountId","WorkerPublicKey"] | |
| WorkerEnterUnresponsive | 5706 | ["AccountId"] | |
| WorkerExitUnresponsive | 5707 | ["AccountId"] | |
| SessionSettled | 5708 | ["AccountId","u128","u128"] | |
| InternalErrorWorkerSettleFailed | 5709 | ["WorkerPublicKey"] | |
| SubsidyBudgetHalved | 570a | ||
| InternalErrorWrongHalvingConfigured | 570b | ||
| TokenomicParametersChanged | 570c | ||
| SessionSettlementDropped | 570d | ["AccountId","u128","u128"] | |
| BenchmarkUpdated | 570e | ["AccountId","u32"] | |
| BudgetUpdated | 570f | ["u64","u128"] |
Name | Type | |
|---|---|---|
| TokenomicParameters | {"origin":"PlainType","plain_type":"phala_types:messaging:TokenomicParameters","PlainTypeValue":356} | |
| ScheduledTokenomicUpdate | {"origin":"PlainType","plain_type":"phala_types:messaging:TokenomicParameters","PlainTypeValue":356} | |
| OnlineWorkers | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
| ExpectedHeartbeatCount | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
| HeartbeatPaused | {"origin":"PlainType","plain_type":"Bool","PlainTypeValue":88} | |
| MaxBudgetLimit | {"origin":"PlainType","plain_type":"U128","PlainTypeValue":6} | |
| BudgetUpdateNonce | {"origin":"PlainType","plain_type":"U64","PlainTypeValue":11} | |
| LastBudgetUpdateBlock | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
| ContractAccount | {"origin":"PlainType","plain_type":"AccountId","PlainTypeValue":0} | |
| Sessions | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"phala_pallets:compute:computation:pallet:SessionInfo","keys_id":0,"value_id":628}} | |
| SessionBindings | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"[U8; 32]","keys_id":0,"value_id":135}} | |
| WorkerBindings | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["[U8; 32]"],"value":"AccountId","keys_id":135,"value_id":0}} | |
| CoolDownPeriod | {"origin":"PlainType","plain_type":"U64","PlainTypeValue":11} | |
| NextSessionId | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
| ComputingStartBlock | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
| ComputingHalvingInterval | {"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 |
| DuplicateBoundSession | Not permitted because the session is already bound with another worker. |
| BenchmarkMissing | There's no benchmark result on the blockchain. |
| SessionNotFound | session not found. |
| SessionNotBound | Not permitted because the session is not bound with a worker. |
| WorkerNotReady | Worker is not in `Ready` state to proceed. |
| WorkerNotComputing | Worker is not in `Computation` state to stop computing. |
| WorkerNotBound | Not permitted because the worker is not bound with a worker account. |
| CoolDownNotReady | Cannot reclaim the worker because it's still in cooldown period. |
| InsufficientStake | Cannot start computing because there's too little stake. |
| TooMuchStake | Cannot start computing 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 session account. |
| BenchmarkTooLow | Indicating the initial benchmark score is too low to start computing. |
| InternalErrorCannotStartWithExistingStake | Internal error. A worker should never start with existing stake in the storage. |
| NotMigrationRoot | Migration root not authorized |
| NonceIndexInvalid | |
| BudgetUpdateBlockInvalid | |
| BudgetExceedMaxLimit | |
| WorkerReregisterNeeded | The worker need to be re-registered to be added to a pool. |