subscan
Runtime Modules / Swork
Spec Version:
Storage Functions
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}}
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>"}
Constants
Name
Type
Value
PunishmentSlotsu320x08000000
MaxGroupSizeu320xe8030000
Error Types
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