链上存储

大约 2 分钟

链上存储

onlineProfile 模块

value

存储类型说明
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
allMachineIdSnapAllMachineIdSnapDetail将要发放奖励的机器
phaseRewardInfoPhaseRewardInfoDetail
liveMachinesLiveMachine系统中存储有数据的机器
currentEraEraIndex模块当前是第几天(2880 Block/Era)

Map

存储键类型值类型说明
stashControllerAccountIdAccountId
controllerStashAccountIdAccountId
machinesInfoMachineIdMachineInfoDetail info of machines
stashMachinesAccountIdStashMachineStatistics of stash account
stashServerRoomsAccountIdVec<H256>Server rooms in stash account
controllerMachinesAccountIdVec<MachineId>All machines controlled by controller
erasStashPointsEraIndexEraStashPoints每个 Era 资金账户的得分快照
erasMachinePointsEraIndexBTreeMap<MachineId, MachineGradeStatus>每个 Era 机器的得分快照
stashStakeAccountIdBalance资金账户的质押总计
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)Balance某个 Era 机器获得的总奖励
erasMachineReleasedReward(EraIndex,MachineId)Balance某个 Era 机器释放的总奖励
erasStashReward(EraIndex, AccountId)Balance某个 Era Stash 获得的总奖励
erasStashReleasedReward(EraIndex, AccountId)Balance某个 Era Stash 解锁的总奖励

onlineCommittee 模块

Value

存储类型说明
nextSlashIdu64
unhandledSlashVec<SlashId>

Map

存储键类型值类型说明
committeeMachineAccountIdOCCommitteeMachineList存储用户订阅的不同确认阶段的机器
machineCommitteeMachineIdOCMachineCommitteeList
machineSubmitedHashMachineIdVec<[u8; 16]>
committeeOps(AccountId,MachineId)OCCommitteeOps
pendingSlashSlashIdOCPendingSlashInfo
pendingSlashReviewSlashIdOCPendingSlashReviewInfo

rentMachine 模块

Map

存储键类型值类型说明
userRentedAccountIdVec<MachineId>存储用户当前租用的机器列表
rentOrderMachineIdRentOrderDetail用户当前租用的某个机器的详情
pendingConfirmingMachineIdAccountId等待用户确认租用成功的机器
pending_rent_endingBlockNumberVec<MachineId>记录每个区块将要结束租用的机器
userTotalStakeAccountIdBalance存储每个用户在该模块中的总质押量

Value

存储类型说明
rentFeePotAccountId租金支付目标地址(银河竞赛开启后,用该账户销毁租金)
Loading...