Skip to content
DBC-WikiDBC-Wiki
github icon
  • OnchainAPI

    • DBC-Blockchain mainnet RPC description
      • DBC-Blockchain Mainnet RPC
        • Onchain Storage
          • onlineProfile Module
            • value
              • Map
                • DoubleMap
                • onlineCommittee 模块
                  • Value
                    • Map
                    • rentMachine Module
                      • Map
                        • Value

                    Onchain Storage

                    calendar iconJanuary 7, 2022timer iconAbout 1 min

                    On This Page
                    • onlineProfile Module
                      • value
                      • Map
                      • DoubleMap
                    • onlineCommittee 模块
                      • Value
                      • Map
                    • rentMachine Module
                      • Map
                      • Value

                    # 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

                    | Storage | KeyType | ValueType | Description | | :------------------ | :---------- | :--------------- | :------------------------------------------------------- | ------------------------------------------------------------------ | | userRented | AccountId | Vec<MachineId> | Store the list of machines currently rented by the user | | rentOrder | MachineId | RentOrderDetail | Details of a machine currently rented by the user | | pendingConfirming | MachineId | AccountId | | Waiting for the user to confirm the successful rent of the machine | | pending_rent_ending | BlockNumber | Vec<MachineId> | Record the machine that will end the rent at each block | | userTotalStake | AccountId | Balance | Store 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)
                    edit iconEdit this pageopen in new window
                    Last update: 1/7/2022, 6:41:05 AM
                    Contributors: kaigedong
                    Prev
                    DBC-Blockchain Mainnet RPC