Storage
The following sections contain Storage methods are part of the default runtime. On the api, these are exposed via api.query.<module>.<method>.
control
Orgs(Hash): Org
Hash): Orginterface:
api.query.control.Orgssummary: Org by its id.
OrgStates(Hash): OrgState
Hash): OrgStateinterface:
api.query.control.OrgStatessummary: Org state (Inactive | Active | Locked) by org id.
Members(Hash): BoundedVec<AccountId>
Hash): BoundedVec<AccountId>interface:
api.query.control.Memberssummary: Org members list by org id.
OrgMemberCount(Hash): MemberLimit
Hash): MemberLimitinterface:
api.query.control.OrgMemberCountsummary: Org members count by org id.
MemberStates((Hash, AccountId)): MemberState
(Hash, AccountId)): MemberStateinterface:
api.query.control.MemberStatessummary: Member state (Inactive | Active ...) by org Hash and member account.
OrgTreasury(Hash): AccountId
Hash): AccountIdinterface:
api.query.control.OrgTreasurysummary: Treasury account of an Org.
OrgCount: u32
u32interface:
api.query.control.OrgCountsummary:
flow
CampaignOf(Hash): Campaign
Hash): Campaigninterface:
api.query.flow.CampaignOfsummary: Campaign by its id.
CampaignCount: u32
u32interface:
api.query.flow.CampaignCountsummary: Total number of campaigns. CampaignCount: u32.
CampaignBalance(Hash): Balance
Hash): Balanceinterface:
api.query.flow.CampaignBalancesummary: Total contributions balance per campaign.
CampaignContribution((Hash, AccountId)): Balance
(Hash, AccountId)): Balanceinterface:
api.query.flow.CampaignContributionsummary: Total contribution made by account id for particular campaign. campaign id, account id -> contribution.
CampaignStates(Hash): CampaignState
Hash): CampaignStateinterface:
api.query.flow.CampaignStatessummary: Campaign state by campaign id. 0 created, 1 activated, 2 paused, ...
CampaignsByBlock((BlockType, BlockNumber)): BoundedVec<Hash>
(BlockType, BlockNumber)): BoundedVec<Hash>interface:
api.query.flow.CampaignsByBlocksummary: Campaigns starting/ending in block x.
CampaignFinalizationQueue(Hash): (Campaign, Balance, CampaignState, AccountId, Contributors)
Hash): (Campaign, Balance, CampaignState, AccountId, Contributors)interface:
api.query.flow.CampaignFinalizationQueuesummary:
ProcessingOffset(Hash): u32
Hash): u32interface:
api.query.flow.ProcessingOffsetsummary: Offset value - number of processed and sucessfully finalized contributions. Used during campaign finalization for processing contributors in batches. When MaxContributorsProcessing is achieved, set this offset to save the progress.
CampaignContributorsCount(Hash): u64
Hash): u64interface:
api.query.flow.CampaignContributorsCountsummary: Total number of contributors for particular campaign. This is needed for voting in order do determine eligible voters for Withdrawal proposal.
sense
Entities(AccountId): Entity<AccountId>
AccountId): Entity<AccountId>interface:
api.query.sense.Entitiessummary: Sense Entity of the account.
EntityCount: u128
u128interface:
api.query.sense.EntityCountsummary: EntityCount. Increase per each entity creation. EntityCount: u128.
Properties((PropertyType, AccountId)): EntityProperty<BlockNumber>
(PropertyType, AccountId)): EntityProperty<BlockNumber>interface:
api.query.sense.Propertiessummary: All properties of the account.
signal
ProposalOf(Hash): Proposal
Hash): Proposalinterface:
api.query.signal.ProposalOfsummary: Proposal by its hash (id).
ProposalStates(Hash): ProposalState
Hash): ProposalStateinterface:
api.query.signal.ProposalStatessummary: Proposal's state: Created | Activated | Accepted | Rejected | Expired | Aborted | Finalized.
ProposalsByBlock((BlockType, BlockNumber)): BoundedVec<Hash>
(BlockType, BlockNumber)): BoundedVec<Hash>interface:
api.query.signal.ProposalsByBlocksummary: Proposals ending in a block.
ProposalCount: ProposalIndex
ProposalIndexinterface:
api.query.signal.ProposalCountsummary:
ProposalVoting(Hash): Voting
Hash): Votinginterface:
api.query.signal.ProposalVotingsummary:
CampaignBalanceUsed(Hash): Balance
Hash): Balanceinterface:
api.query.signal.CampaignBalanceUsedsummary: The amount of currency that a project has used.
Last updated