Onchain Storage

About 1 min

Onchain Storage

onlineProfile Module

value

StorageTypeDescription
onlineStakeParamsOnlineStakeParamsInfo
standardGpuPointPriceStandardGpuPointPriceA standard example for rent fee calculation(price: USD*10^6)
galaxyIsOnboolIf galaxy competition is begin: switch 5000 gpu
galaxyOnGpuThreshold5000
sysInfoSysInfoDetailStatistics of gpu and stake
nextSlashIdu64
allMachineIdSnapAllMachineIdSnapDetailThe machine that will give out rewards
phaseRewardInfoPhaseRewardInfoDetail
liveMachinesLiveMachineMachine with data stored in the system
currentEraEraIndexCurrent day in this Module (2880 Block/Era)

Map

StorageKeyTypeValueTypeDescription
stashControllerAccountIdAccountId
controllerStashAccountIdAccountId
machinesInfoMachineIdMachineInfoDetail info of machines
stashMachinesAccountIdStashMachineStatistics of stash account
stashServerRoomsAccountIdVec<H256>Server rooms in stash account
controllerMachinesAccountIdVec<MachineId>All machines controlled by controller
erasStashPointsEraIndexEraStashPointsCurrent Era snapshot of score for each stash account
erasMachinePointsEraIndexBTreeMap<MachineId, MachineGradeStatus>Current Era snapshot of the score of each machine
stashStakeAccountIdBalanceTotal staking of funds account
machineRecentRewardMachineIdMachineRecentRewardInfostore max 150 era reward
eraRewardEraIndexBalance
pendingSlashu64OPPendingSlashInfo
pendingSlashReviewSlashIdOPPendingSlashReviewInfo
rentedFinishedMachineIdAccountId

DoubleMap

存储键类型值类型说明
userMutHardwareStake(AccountId,MachineId)UserMutHardwareStakeInfoReonline to change hardware, should stake some balance
posGpuInfo(Longitude, Latitude)PosInfoStatistics of gpu in one position
erasMachineReward(EraIndex, MachineId)BalanceTotal rewards obtained by machine in an Era
erasMachineReleasedReward(EraIndex,MachineId)BalanceThe total machine reward released in an Era
erasStashReward(EraIndex, AccountId)BalanceTotal stash rewards received by a certain Era
erasStashReleasedReward(EraIndex, AccountId)BalanceTotal stash rewards unlocked by a certain Era

onlineCommittee 模块

Value

StorageTypeDescription
nextSlashIdu64
unhandledSlashVec<SlashId>

Map

StorageKeyTypeValueTypeDescription
committeeMachineAccountIdOCCommitteeMachineListA machine that stores the different confirmation stages of the user's subscription
machineCommitteeMachineIdOCMachineCommitteeList
machineSubmitedHashMachineIdVec<[u8; 16]>
committeeOps(AccountId,MachineId)OCCommitteeOps
pendingSlashSlashIdOCPendingSlashInfo
pendingSlashReviewSlashIdOCPendingSlashReviewInfo

rentMachine Module

Map

StorageKeyTypeValueTypeDescription
userRentedAccountIdVec<MachineId>Store the list of machines currently rented by the user
rentOrderMachineIdRentOrderDetailDetails of a machine currently rented by the user
pendingConfirmingMachineIdAccountIdWaiting for the user to confirm the successful rent of the machine
pending_rent_endingBlockNumberVec<MachineId>Record the machine that will end the rent at each block
userTotalStakeAccountIdBalanceStore the total pledge amount of each user in the module

Value

storageTypeDescription
rentFeePotAccountIdRent payment destination address (after the Galaxy Contest is opened, use this account to destroy the rent)
Loading...