Name | Lookup | Parameters | |
|---|---|---|---|
| set_code | 1900 | 2 | |
| clear_expired_code | 1901 | 1 | |
| register | 1902 | 5 | |
| register_new_tee_pubkey | 1903 | 1 | |
| register_with_deauth_chain | 1904 | 6 | |
| report_works | 1905 | 11 | |
| set_spower_superior | 1906 | 1 | |
| update_spower | 1907 | 2 | |
| create_group | 1908 | - | |
| add_member_into_allowlist | 1909 | 1 | |
| remove_member_from_allowlist | 190a | 1 | |
| join_group | 190b | 1 | |
| quit_group | 190c | - | |
| kick_out | 190d | 1 | |
| set_punishment | 190e | 1 |
Name | Lookup | Attributes | |
|---|---|---|---|
| RegisterSuccess | 1900 | ||
| WorksReportSuccess | 1901 | ||
| ABUpgradeSuccess | 1902 | ||
| SetCodeSuccess | 1903 | ||
| JoinGroupSuccess | 1904 | ||
| QuitGroupSuccess | 1905 | ||
| CreateGroupSuccess | 1906 | ||
| KickOutSuccess | 1907 | ||
| CancelPunishmentSuccess | 1908 | ||
| AddIntoAllowlistSuccess | 1909 | ||
| RemoveFromAllowlistSuccess | 190a | ||
| SetPunishmentSuccess | 190b | ||
| RemoveCodeSuccess | 190c | ||
| QueueWorkReportSuccess | 190d | ||
| SetSpowerSuperiorSuccess | 190e | ||
| UpdateSpowerSuccess | 190f |
Name | Type | |
|---|---|---|
| HistorySlotDepth | {"origin":"PlainType","plain_type":"ReportSlot"} | |
| Codes | {"origin":"MapType","map_type":{"key":"SworkerCode","hasher":"Twox64Concat","value":"BlockNumber","isLinked":false}} | |
| Identities | {"origin":"MapType","map_type":{"key":"AccountId","hasher":"Blake2_128Concat","value":"Identity<AccountId>","isLinked":false}} | |
| IdentityPreviousKey | {"origin":"PlainType","plain_type":"Bytes"} | |
| Workload | {"origin":"PlainType","plain_type":"(BTreeMap<AccountId, u128>, u128, u128, u128)"} | |
| PubKeys | {"origin":"MapType","map_type":{"key":"SworkerPubKey","hasher":"Twox64Concat","value":"PKInfo","isLinked":false}} | |
| Groups | {"origin":"MapType","map_type":{"key":"AccountId","hasher":"Blake2_128Concat","value":"Group<AccountId>","isLinked":false}} | |
| WorkReports | {"origin":"MapType","map_type":{"key":"SworkerAnchor","hasher":"Twox64Concat","value":"WorkReport","isLinked":false}} | |
| LastProcessedBlockWorkReports | {"origin":"PlainType","plain_type":"BlockNumber"} | |
| SpowerSuperior | {"origin":"PlainType","plain_type":"AccountId"} | |
| LastSpowerUpdateBlock | {"origin":"PlainType","plain_type":"BlockNumber"} | |
| CurrentReportSlot | {"origin":"PlainType","plain_type":"ReportSlot"} | |
| ReportedInSlot | {"origin":"DoubleMapType","double_map_type":{"key":"SworkerAnchor","key2":"ReportSlot","hasher":"Twox64Concat","key2Hasher":"Twox64Concat","value":"bool","isLinked":false}} | |
| Spower | {"origin":"PlainType","plain_type":"u128"} | |
| ReportedFilesSize | {"origin":"PlainType","plain_type":"u128"} | |
| Free | {"origin":"PlainType","plain_type":"u128"} | |
| EnablePunishment | {"origin":"PlainType","plain_type":"bool"} | |
| AddedFilesCount | {"origin":"PlainType","plain_type":"u32"} | |
| AllowedTeePublicKeys | {"origin":"PlainType","plain_type":"Vec<sr25519::Public>"} |
Name | Type | Value | |
|---|---|---|---|
| PunishmentSlots | u32 | 0x08000000 | |
| MaxGroupSize | u32 | 0xe8030000 |
Name | Docs |
|---|---|
| IllegalApplier | Illegal applier |
| IllegalIdentity | Identity check failed |
| IllegalReporter | Illegal reporter |
| OutdatedReporter | Outdated reporter |
| InvalidReportTime | Invalid timing |
| IllegalWorkReportSig | Illegal work report signature |
| ABUpgradeFailed | A/B Upgrade failed |
| IllegalFilesTransition | Files change not legal |
| IdentityNotExist | Identity doesn't exist |
| AlreadyJoint | Already joint one group |
| NotOwner | The target is not a group owner. Please make sure that the target is a group owner. |
| IllegalSpower | The spower value is not zero and cannot join a group. |
| GroupAlreadyExist | The group already exist. |
| GroupOwnerForbidden | The group owner cannot be a sWorker member. |
| NotJoint | The member is not in this group and cannot quit. |
| ExceedGroupLimit | Exceed the limit of members number in one group. |
| InvalidExpiredBlock | Cannot extend the valid duration for an existed enclave code. |
| NotInAllowlist | Who is not in the allowlist. Please ask owner to add you into the allowlist before you join the group. |
| ExceedAllowlistLimit | Exceed the limit of allowlist number in one group. |
| IllegalWorkReport | Illegal work report. This should never happen. |
| CodeNotExpired | Code has not been expired |
| InvalidTeeSignature | Tee signature is not valid |
| SpowerSuperiorNotSet | The spower superior account is not set. Please call the set_spower_superior extrinsic first. |
| IllegalSpowerSuperior | The caller account is not the spower superior account. Please check the caller account again. |