Skip to main content

Storage

The following sections contain Storage methods are part of the default Darwinia runtime. On the api, these are exposed via api.query.<module>.<method>.

(NOTE: These were generated from a static/snapshot view of a recent Darwinia master node. Some items may not be available in older nodes, or in any customized implementations.)


bridgeCrabGrandpa
bestFinalized():H256
  • interface: api.query.bridgeCrabGrandpa.bestFinalized
  • summary: Hash of the best finalized header.
currentAuthoritySet():BpHeaderChainAuthoritySet
  • interface: api.query.bridgeCrabGrandpa.currentAuthoritySet
  • summary: The current GRANDPA Authority set.
importedHashes(arg:u32):Option <H256>
  • interface: api.query.bridgeCrabGrandpa.importedHashes
  • summary: A ring buffer of imported hashes. Ordered by the insertion time.
importedHashesPointer():u32
  • interface: api.query.bridgeCrabGrandpa.importedHashesPointer
  • summary: Current ring buffer position.
importedHeaders(arg:H256):Option<SpRuntimeHeader>
  • interface: api.query.bridgeCrabGrandpa.importedHeaders
  • summary: Headers which have been imported into the pallet.
initialHash():H256
  • interface: api.query.bridgeCrabGrandpa.initialHash
  • summary: Hash of the header used to bootstrap the pallet.
isHalted():bool
  • interface: api.query.bridgeCrabGrandpa.isHalted
  • summary: If true, all pallet transactions are failed immediately.
palletOwner():Option<AccountId32>
  • interface: api.query.bridgeCrabGrandpa.palletOwner
  • summary: Optional pallet owner.
requestCount():u32
  • interface: api.query.bridgeCrabGrandpa.requestCount
  • summary: The current number of requests which have written to storage.
bridgeCrabMessages
inboundLanes(arg:U8aFixed):BpMessagesInboundLaneData
  • interface: api.query.bridgeCrabMessages.inboundLanes
  • summary:Map of lane id => inbound lane data.
outboundLanes(arg:U8aFixed):BpMessagesInboundLaneData
  • interface: api.query.bridgeCrabMessages.outboundLanes
  • summary:Map of lane id => outbound lane data.
outboundMessages(arg:BpMessagesMessageKey):Option<BpMessagesMessageData>
  • interface: api.query.bridgeCrabMessages.outboundMessages
  • summary:All queued outbound messages.
palletOperatingMode():BpMessagesOperatingMode
  • interface: api.query.bridgeCrabMessages.palletOperatingMode
  • summary:The current operating mode of the pallet.
palletOwner():Option&lr;AccountId32>
  • interface: api.query.bridgeCrabMessages.palletOwner
  • summary:Optional pallet owner.
darwiniaHeaderMMR
migrationStep():u32
  • interface: api.query.darwiniaHeaderMMR.migrationStep
  • summary:Migration step.
mmrSize():u64
  • interface: api.query.darwiniaHeaderMMR.mmrSize
  • summary:Size of the MMR.
peaks(arg:u64):Option<H256>
  • interface: api.query.darwiniaHeaderMMR.peaks
  • summary:Peaks of the MMR.
feeMarket
assignedRelayers():Option<Vec<PalletFeeMarketRelayer>>
  • interface: api.query.feeMarket.assignedRelayers
  • summary: The assigned relayers at this moment, empty if the registered assigned relayers not enough.
assignedRelayersNumber():u32
  • interface: api.query.feeMarket.assignedRelayersNumber
  • summary: The assigned relayers number.
collateralSlashProtect():Option<u128>
  • interface: api.query.feeMarket.collateralSlashProtect
  • summary: The maximum slash value for assigned relayer.
orders(arg:ITuple<[U8aFixed, u64]>):Option<PalletFeeMarketOrder>
  • interface: api.query.feeMarket.orders
  • summary: Order storage, please note that the order storage will be deleted after confirmed.
relayers():Vec<AccountId32>
  • interface: api.query.feeMarket.relayers
  • summary: List of all relayers.
relayersMap(arg:AccountId32):PalletFeeMarketRelayer
  • interface: api.query.feeMarket.relayersMap
  • summary: The relayer's detail info.
ktonTreasury
approvals():Vec<u32>
  • interface: api.query.ktonTreasury.approvals
  • summary:Proposal indices that have been approved but not yet awarded.
proposalCount():u32
  • interface: api.query.ktonTreasury.proposalCount
  • summary:Number of proposals that have been made.
proposals(arg:u32):Option<PalletTreasuryProposal>
  • interface: api.query.ktonTreasury.proposals
  • summary:Proposals that have been made.
phragmenElection
candidates(arg:u32):Vec<ITuple<[AccountId32, u128]>>
  • interface: api.query.phragmenElection.candidates
  • summary:The present candidate list. A current member or runner-up can never enter this vector and is always implicitly assumed to be a candidate.
electionRounds():u32
  • interface: api.query.phragmenElection.electionRounds
  • summary:The total number of vote rounds that have happened, excluding the upcoming one.
members():Vec<PalletElectionsPhragmenSeatHolder>
  • interface: api.query.phragmenElection.members
  • summary:The current elected members.
runnersUp():Vec<PalletElectionsPhragmenSeatHolder>
  • interface: api.query.phragmenElection.runnersUp
  • summary:The current reserved runners-up.
voting(arg:AccountId32):PalletElectionsPhragmenVoter
  • interface: api.query.phragmenElection.voting
  • summary:Votes and locked stake of a particular voter.
kton
account(arg:AccountId32):DarwiniaCommonRuntimeImplsAccountData
  • interface: api.query.kton.account
  • summary:The balance of an account.
locks(arg:AccountId32):Vec<PalletBalancesBalanceLock>
  • interface: api.query.kton.locks
  • summary:Any liquidity locks on some account balances.
reserves(arg:AccountId32):Vec<DarwiniaBalancesReserveData>
  • interface: api.query.kton.reserves
  • summary:Named reserves on some account balances.
storageVersion():DarwiniaBalancesReleases
  • interface: api.query.kton.storageVersion
  • summary:Storage version of the pallet.
totalIssuance():u128
  • interface: api.query.kton.totalIssuance
  • summary:The total units issued in the system.