@polymeshassociation/polymesh-types 5.15.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/CHANGELOG.md +8 -116
  2. package/generated/types.d.ts +897 -0
  3. package/generated/types.d.ts.map +1 -0
  4. package/generated/types.js +950 -0
  5. package/generated/types.js.map +1 -0
  6. package/package.json +20 -5
  7. package/polkadot/asset/definitions.d.ts +16 -0
  8. package/polkadot/asset/definitions.d.ts.map +1 -0
  9. package/polkadot/asset/definitions.js +44 -0
  10. package/polkadot/asset/definitions.js.map +1 -0
  11. package/polkadot/asset/index.d.ts +2 -0
  12. package/polkadot/asset/index.d.ts.map +1 -0
  13. package/polkadot/asset/index.js +20 -0
  14. package/polkadot/asset/index.js.map +1 -0
  15. package/polkadot/asset/types.d.ts +2 -0
  16. package/polkadot/asset/types.d.ts.map +1 -0
  17. package/polkadot/asset/types.js +5 -0
  18. package/polkadot/asset/types.js.map +1 -0
  19. package/polkadot/augment-api-consts.d.ts +509 -0
  20. package/polkadot/augment-api-consts.d.ts.map +1 -0
  21. package/polkadot/augment-api-consts.js +8 -0
  22. package/polkadot/augment-api-consts.js.map +1 -0
  23. package/polkadot/augment-api-errors.d.ts +2235 -0
  24. package/polkadot/augment-api-errors.d.ts.map +1 -0
  25. package/polkadot/augment-api-errors.js +8 -0
  26. package/polkadot/augment-api-errors.js.map +1 -0
  27. package/polkadot/augment-api-events.d.ts +3070 -0
  28. package/polkadot/augment-api-events.d.ts.map +1 -0
  29. package/polkadot/augment-api-events.js +8 -0
  30. package/polkadot/augment-api-events.js.map +1 -0
  31. package/polkadot/augment-api-query.d.ts +2536 -0
  32. package/polkadot/augment-api-query.d.ts.map +1 -0
  33. package/polkadot/augment-api-query.js +8 -0
  34. package/polkadot/augment-api-query.js.map +1 -0
  35. package/polkadot/augment-api-rpc.d.ts +807 -0
  36. package/polkadot/augment-api-rpc.d.ts.map +1 -0
  37. package/polkadot/augment-api-rpc.js +8 -0
  38. package/polkadot/augment-api-rpc.js.map +1 -0
  39. package/polkadot/augment-api-runtime.d.ts +379 -0
  40. package/polkadot/augment-api-runtime.d.ts.map +1 -0
  41. package/polkadot/augment-api-runtime.js +8 -0
  42. package/polkadot/augment-api-runtime.js.map +1 -0
  43. package/polkadot/augment-api-tx.d.ts +6527 -0
  44. package/polkadot/augment-api-tx.d.ts.map +1 -0
  45. package/polkadot/augment-api-tx.js +8 -0
  46. package/polkadot/augment-api-tx.js.map +1 -0
  47. package/polkadot/augment-api.d.ts +8 -0
  48. package/polkadot/augment-api.d.ts.map +1 -0
  49. package/polkadot/augment-api.js +12 -0
  50. package/polkadot/augment-api.js.map +1 -0
  51. package/polkadot/augment-types.d.ts +1246 -0
  52. package/polkadot/augment-types.d.ts.map +1 -0
  53. package/polkadot/augment-types.js +8 -0
  54. package/polkadot/augment-types.js.map +1 -0
  55. package/polkadot/compliance/definitions.d.ts +15 -0
  56. package/polkadot/compliance/definitions.d.ts.map +1 -0
  57. package/polkadot/compliance/definitions.js +26 -0
  58. package/polkadot/compliance/definitions.js.map +1 -0
  59. package/polkadot/compliance/index.d.ts +2 -0
  60. package/polkadot/compliance/index.d.ts.map +1 -0
  61. package/polkadot/compliance/index.js +20 -0
  62. package/polkadot/compliance/index.js.map +1 -0
  63. package/polkadot/compliance/types.d.ts +2 -0
  64. package/polkadot/compliance/types.d.ts.map +1 -0
  65. package/polkadot/compliance/types.js +5 -0
  66. package/polkadot/compliance/types.js.map +1 -0
  67. package/polkadot/definitions.d.ts +11 -0
  68. package/polkadot/definitions.d.ts.map +1 -0
  69. package/polkadot/definitions.js +27 -0
  70. package/polkadot/definitions.js.map +1 -0
  71. package/polkadot/group/definitions.d.ts +25 -0
  72. package/polkadot/group/definitions.d.ts.map +1 -0
  73. package/polkadot/group/definitions.js +30 -0
  74. package/polkadot/group/definitions.js.map +1 -0
  75. package/polkadot/group/index.d.ts +2 -0
  76. package/polkadot/group/index.d.ts.map +1 -0
  77. package/polkadot/group/index.js +20 -0
  78. package/polkadot/group/index.js.map +1 -0
  79. package/polkadot/group/types.d.ts +2 -0
  80. package/polkadot/group/types.d.ts.map +1 -0
  81. package/polkadot/group/types.js +5 -0
  82. package/polkadot/group/types.js.map +1 -0
  83. package/polkadot/identity/definitions.d.ts +61 -0
  84. package/polkadot/identity/definitions.d.ts.map +1 -0
  85. package/polkadot/identity/definitions.js +124 -0
  86. package/polkadot/identity/definitions.js.map +1 -0
  87. package/polkadot/identity/index.d.ts +2 -0
  88. package/polkadot/identity/index.d.ts.map +1 -0
  89. package/polkadot/identity/index.js +20 -0
  90. package/polkadot/identity/index.js.map +1 -0
  91. package/polkadot/identity/types.d.ts +2 -0
  92. package/polkadot/identity/types.d.ts.map +1 -0
  93. package/polkadot/identity/types.js +5 -0
  94. package/polkadot/identity/types.js.map +1 -0
  95. package/polkadot/index.d.ts +2 -0
  96. package/polkadot/index.d.ts.map +1 -0
  97. package/polkadot/index.js +20 -0
  98. package/polkadot/index.js.map +1 -0
  99. package/polkadot/lookup.d.ts +4788 -0
  100. package/polkadot/lookup.d.ts.map +1 -0
  101. package/polkadot/lookup.js +5559 -0
  102. package/polkadot/lookup.js.map +1 -0
  103. package/polkadot/nft/definitions.d.ts +16 -0
  104. package/polkadot/nft/definitions.d.ts.map +1 -0
  105. package/polkadot/nft/definitions.js +39 -0
  106. package/polkadot/nft/definitions.js.map +1 -0
  107. package/polkadot/nft/index.d.ts +2 -0
  108. package/polkadot/nft/index.d.ts.map +1 -0
  109. package/polkadot/nft/index.js +20 -0
  110. package/polkadot/nft/index.js.map +1 -0
  111. package/polkadot/nft/types.d.ts +2 -0
  112. package/polkadot/nft/types.d.ts.map +1 -0
  113. package/polkadot/nft/types.js +5 -0
  114. package/polkadot/nft/types.js.map +1 -0
  115. package/polkadot/pips/definitions.d.ts +34 -0
  116. package/polkadot/pips/definitions.d.ts.map +1 -0
  117. package/polkadot/pips/definitions.js +56 -0
  118. package/polkadot/pips/definitions.js.map +1 -0
  119. package/polkadot/pips/index.d.ts +2 -0
  120. package/polkadot/pips/index.d.ts.map +1 -0
  121. package/polkadot/pips/index.js +20 -0
  122. package/polkadot/pips/index.js.map +1 -0
  123. package/polkadot/pips/types.d.ts +2 -0
  124. package/polkadot/pips/types.d.ts.map +1 -0
  125. package/polkadot/pips/types.js +5 -0
  126. package/polkadot/pips/types.js.map +1 -0
  127. package/polkadot/polymesh/definitions.d.ts +701 -0
  128. package/polkadot/polymesh/definitions.d.ts.map +1 -0
  129. package/polkadot/polymesh/definitions.js +1234 -0
  130. package/polkadot/polymesh/definitions.js.map +1 -0
  131. package/polkadot/polymesh/index.d.ts +2 -0
  132. package/polkadot/polymesh/index.d.ts.map +1 -0
  133. package/polkadot/polymesh/index.js +20 -0
  134. package/polkadot/polymesh/index.js.map +1 -0
  135. package/polkadot/polymesh/types.d.ts +790 -0
  136. package/polkadot/polymesh/types.d.ts.map +1 -0
  137. package/polkadot/polymesh/types.js +5 -0
  138. package/polkadot/polymesh/types.js.map +1 -0
  139. package/polkadot/protocolFee/definitions.d.ts +16 -0
  140. package/polkadot/protocolFee/definitions.d.ts.map +1 -0
  141. package/polkadot/protocolFee/definitions.js +24 -0
  142. package/polkadot/protocolFee/definitions.js.map +1 -0
  143. package/polkadot/protocolFee/index.d.ts +2 -0
  144. package/polkadot/protocolFee/index.d.ts.map +1 -0
  145. package/polkadot/protocolFee/index.js +20 -0
  146. package/polkadot/protocolFee/index.js.map +1 -0
  147. package/polkadot/protocolFee/types.d.ts +2 -0
  148. package/polkadot/protocolFee/types.d.ts.map +1 -0
  149. package/polkadot/protocolFee/types.js +5 -0
  150. package/polkadot/protocolFee/types.js.map +1 -0
  151. package/polkadot/registry.d.ts +366 -0
  152. package/polkadot/registry.d.ts.map +1 -0
  153. package/polkadot/registry.js +8 -0
  154. package/polkadot/registry.js.map +1 -0
  155. package/polkadot/schema.d.ts +897 -0
  156. package/polkadot/schema.d.ts.map +1 -0
  157. package/polkadot/schema.js +1612 -0
  158. package/polkadot/schema.js.map +1 -0
  159. package/polkadot/settlement/definitions.d.ts +41 -0
  160. package/polkadot/settlement/definitions.d.ts.map +1 -0
  161. package/polkadot/settlement/definitions.js +69 -0
  162. package/polkadot/settlement/definitions.js.map +1 -0
  163. package/polkadot/settlement/index.d.ts +2 -0
  164. package/polkadot/settlement/index.d.ts.map +1 -0
  165. package/polkadot/settlement/index.js +20 -0
  166. package/polkadot/settlement/index.js.map +1 -0
  167. package/polkadot/settlement/types.d.ts +2 -0
  168. package/polkadot/settlement/types.d.ts.map +1 -0
  169. package/polkadot/settlement/types.js +5 -0
  170. package/polkadot/settlement/types.js.map +1 -0
  171. package/polkadot/staking/definitions.d.ts +16 -0
  172. package/polkadot/staking/definitions.d.ts.map +1 -0
  173. package/polkadot/staking/definitions.js +19 -0
  174. package/polkadot/staking/definitions.js.map +1 -0
  175. package/polkadot/staking/index.d.ts +2 -0
  176. package/polkadot/staking/index.d.ts.map +1 -0
  177. package/polkadot/staking/index.js +20 -0
  178. package/polkadot/staking/index.js.map +1 -0
  179. package/polkadot/staking/types.d.ts +2 -0
  180. package/polkadot/staking/types.d.ts.map +1 -0
  181. package/polkadot/staking/types.js +5 -0
  182. package/polkadot/staking/types.js.map +1 -0
  183. package/polkadot/types-lookup.d.ts +5930 -0
  184. package/polkadot/types-lookup.d.ts.map +1 -0
  185. package/polkadot/types-lookup.js +8 -0
  186. package/polkadot/types-lookup.js.map +1 -0
  187. package/polkadot/types.d.ts +11 -0
  188. package/polkadot/types.d.ts.map +1 -0
  189. package/polkadot/types.js +29 -0
  190. package/polkadot/types.js.map +1 -0
  191. package/rpc/index.js +2 -2
  192. package/rpc/index.js.map +1 -1
  193. package/runtime/assetApi/v4.d.ts.map +1 -1
  194. package/runtime/assetApi/v4.js +20 -5
  195. package/runtime/assetApi/v4.js.map +1 -1
  196. package/runtime/complianceApi/v2.d.ts.map +1 -1
  197. package/runtime/complianceApi/v2.js +12 -3
  198. package/runtime/complianceApi/v2.js.map +1 -1
  199. package/runtime/identityApi/v4.d.ts.map +1 -1
  200. package/runtime/identityApi/v4.js +46 -10
  201. package/runtime/identityApi/v4.js.map +1 -1
  202. package/runtime/index.js +2 -2
  203. package/runtime/index.js.map +1 -1
  204. package/runtime/nftApi/v2.d.ts.map +1 -1
  205. package/runtime/nftApi/v2.js +16 -4
  206. package/runtime/nftApi/v2.js.map +1 -1
  207. package/runtime/pipsApi/v1.d.ts.map +1 -1
  208. package/runtime/pipsApi/v1.js +18 -3
  209. package/runtime/pipsApi/v1.js.map +1 -1
  210. package/runtime/protocolFeeApi/v1.d.ts +3 -0
  211. package/runtime/protocolFeeApi/v1.d.ts.map +1 -0
  212. package/runtime/protocolFeeApi/v1.js +16 -0
  213. package/runtime/protocolFeeApi/v1.js.map +1 -0
  214. package/runtime/settlementApi/v2.d.ts.map +1 -1
  215. package/runtime/settlementApi/v2.js +28 -6
  216. package/runtime/settlementApi/v2.js.map +1 -1
  217. package/runtime/statisticsApi/v0.js +1 -1
  218. package/runtime/statisticsApi/v0.js.map +1 -1
  219. package/types/7.0.x.json +2 -1
  220. package/types/7.3.x.json +658 -0
  221. package/types/index.d.ts +393 -0
  222. package/types/index.d.ts.map +1 -1
  223. package/types/index.js +3 -1
  224. package/types/index.js.map +1 -1
  225. package/runtime/protocolApi/v1.d.ts +0 -3
  226. package/runtime/protocolApi/v1.d.ts.map +0 -1
  227. package/runtime/protocolApi/v1.js +0 -11
  228. package/runtime/protocolApi/v1.js.map +0 -1
@@ -0,0 +1,2536 @@
1
+ import '@polkadot/api-base/types/storage';
2
+ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
3
+ import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
+ import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
+ import type { AccountId32, Call, H256, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
6
+ import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetAssetDetails, PalletAssetTickerRegistration, PalletAssetTickerRegistrationConfig, PalletBalancesBalanceLock, PalletCommitteePolymeshVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCorporateAction, PalletCorporateActionsDistribution, PalletCorporateActionsTargetIdentities, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityClaim1stKey, PalletIdentityClaim2ndKey, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletPipsDepositInfo, PalletPipsPip, PalletPipsPipsMetadata, PalletPipsProposalState, PalletPipsSnapshotMetadata, PalletPipsSnapshottedPip, PalletPipsVote, PalletPipsVotingResult, PalletPreimageRequestStatus, PalletRelayerSubsidy, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingPermissionedIdentityPrefs, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingSlashingSwitch, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStoFundraiser, PalletTransactionPaymentReleases, PolymeshCommonUtilitiesCheckpointNextCheckpoints, PolymeshCommonUtilitiesCheckpointScheduleCheckpoints, PolymeshCommonUtilitiesProtocolFeeProtocolOp, PolymeshContractsApi, PolymeshContractsApiCodeHash, PolymeshContractsChainExtensionExtrinsicId, PolymeshContractsNextUpgrade, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAuthorization, PolymeshPrimitivesComplianceManagerAssetCompliance, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesGroupInactiveMember, PolymeshPrimitivesIdentityClaim, PolymeshPrimitivesIdentityDidRecord, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesMaybeBlock, PolymeshPrimitivesMemo, PolymeshPrimitivesMultisigProposalState, PolymeshPrimitivesMultisigProposalVoteCount, PolymeshPrimitivesNftNftCollection, PolymeshPrimitivesSecondaryKeyExtrinsicPermissions, PolymeshPrimitivesSecondaryKeyKeyRecord, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationStatus, PolymeshPrimitivesSettlementInstruction, PolymeshPrimitivesSettlementInstructionStatus, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementLegStatus, PolymeshPrimitivesSettlementMediatorAffirmationStatus, PolymeshPrimitivesSettlementVenue, PolymeshPrimitivesStatisticsStat1stKey, PolymeshPrimitivesStatisticsStat2ndKey, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesSubsetSubsetRestrictionAssetId, PolymeshPrimitivesSubsetSubsetRestrictionPortfolioId, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceAssetTransferCompliance, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
7
+ import type { Observable } from '@polkadot/types/types';
8
+ export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
9
+ export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
10
+ declare module '@polkadot/api-base/types/storage' {
11
+ interface AugmentedQueries<ApiType extends ApiTypes> {
12
+ asset: {
13
+ /**
14
+ * All [`Document`] attached to an asset.
15
+ **/
16
+ assetDocuments: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesDocument>>, [
17
+ PolymeshPrimitivesAssetAssetId,
18
+ u32
19
+ ]>;
20
+ /**
21
+ * [`DocumentId`] counter per [`AssetId`].
22
+ **/
23
+ assetDocumentsIdSequence: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u32>, [
24
+ PolymeshPrimitivesAssetAssetId
25
+ ]>;
26
+ /**
27
+ * Maps each [`AssetId`] to its asset identifiers ([`AssetIdentifier`]).
28
+ **/
29
+ assetIdentifiers: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Vec<PolymeshPrimitivesAssetIdentifier>>, [
30
+ PolymeshPrimitivesAssetAssetId
31
+ ]>;
32
+ /**
33
+ * Maps all [`AssetId`] that are mapped to a [`Ticker`].
34
+ **/
35
+ assetIdTicker: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Option<PolymeshPrimitivesTicker>>, [
36
+ PolymeshPrimitivesAssetAssetId
37
+ ]>;
38
+ /**
39
+ * Asset Metadata Global Key -> Name.
40
+ **/
41
+ assetMetadataGlobalKeyToName: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [
42
+ u64
43
+ ]>;
44
+ /**
45
+ * Asset Metadata Global Name -> Key.
46
+ **/
47
+ assetMetadataGlobalNameToKey: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<u64>>, [
48
+ Bytes
49
+ ]>;
50
+ /**
51
+ * Asset Metadata Global Key specs.
52
+ **/
53
+ assetMetadataGlobalSpecs: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesAssetMetadataAssetMetadataSpec>>, [
54
+ u64
55
+ ]>;
56
+ /**
57
+ * Asset Metadata Local Key -> Name.
58
+ **/
59
+ assetMetadataLocalKeyToName: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [
60
+ PolymeshPrimitivesAssetAssetId,
61
+ u64
62
+ ]>;
63
+ /**
64
+ * Asset Metadata Local Name -> Key.
65
+ **/
66
+ assetMetadataLocalNameToKey: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable<Option<u64>>, [
67
+ PolymeshPrimitivesAssetAssetId,
68
+ Bytes
69
+ ]>;
70
+ /**
71
+ * Asset Metadata Local Key specs.
72
+ **/
73
+ assetMetadataLocalSpecs: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesAssetMetadataAssetMetadataSpec>>, [
74
+ PolymeshPrimitivesAssetAssetId,
75
+ u64
76
+ ]>;
77
+ /**
78
+ * Details for an asset's Metadata values.
79
+ **/
80
+ assetMetadataValueDetails: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: PolymeshPrimitivesAssetMetadataAssetMetadataKey | {
81
+ Global: any;
82
+ } | {
83
+ Local: any;
84
+ } | string | Uint8Array) => Observable<Option<PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail>>, [
85
+ PolymeshPrimitivesAssetAssetId,
86
+ PolymeshPrimitivesAssetMetadataAssetMetadataKey
87
+ ]>;
88
+ /**
89
+ * Metatdata values for an asset.
90
+ **/
91
+ assetMetadataValues: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: PolymeshPrimitivesAssetMetadataAssetMetadataKey | {
92
+ Global: any;
93
+ } | {
94
+ Local: any;
95
+ } | string | Uint8Array) => Observable<Option<Bytes>>, [
96
+ PolymeshPrimitivesAssetAssetId,
97
+ PolymeshPrimitivesAssetMetadataAssetMetadataKey
98
+ ]>;
99
+ /**
100
+ * Maps each [`AssetId`] to its underling [`AssetName`].
101
+ **/
102
+ assetNames: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Option<Bytes>>, [
103
+ PolymeshPrimitivesAssetAssetId
104
+ ]>;
105
+ /**
106
+ * A per account nonce that is used for generating an [`AssetId`].
107
+ **/
108
+ assetNonce: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u64>, [
109
+ AccountId32
110
+ ]>;
111
+ /**
112
+ * Maps each [`AssetId`] to its underling [`AssetDetails`].
113
+ **/
114
+ assets: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Option<PalletAssetAssetDetails>>, [
115
+ PolymeshPrimitivesAssetAssetId
116
+ ]>;
117
+ /**
118
+ * A list of assets that exempt all users from affirming its receivement.
119
+ **/
120
+ assetsExemptFromAffirmation: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<bool>, [
121
+ PolymeshPrimitivesAssetAssetId
122
+ ]>;
123
+ /**
124
+ * Tracks the total [`Balance`] for each [`AssetId`] per [`IdentityId`].
125
+ **/
126
+ balanceOf: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<u128>, [
127
+ PolymeshPrimitivesAssetAssetId,
128
+ PolymeshPrimitivesIdentityId
129
+ ]>;
130
+ /**
131
+ * The last [`AssetMetadataGlobalKey`] used for a global key.
132
+ **/
133
+ currentAssetMetadataGlobalKey: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
134
+ /**
135
+ * The last [`AssetMetadataLocalKey`] used for [`AssetId`].
136
+ **/
137
+ currentAssetMetadataLocalKey: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Option<u64>>, [
138
+ PolymeshPrimitivesAssetAssetId
139
+ ]>;
140
+ /**
141
+ * The next `AssetType::Custom` ID in the sequence.
142
+ *
143
+ * Numbers in the sequence start from 1 rather than 0.
144
+ **/
145
+ customTypeIdSequence: AugmentedQuery<ApiType, () => Observable<u32>, []>;
146
+ /**
147
+ * Maps custom asset type ids to the registered string contents.
148
+ **/
149
+ customTypes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [
150
+ u32
151
+ ]>;
152
+ /**
153
+ * Inverse map of `CustomTypes`, from registered string contents to custom asset type ids.
154
+ **/
155
+ customTypesInverse: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<u32>>, [
156
+ Bytes
157
+ ]>;
158
+ /**
159
+ * Returns `true` if transfers for the asset are frozen. Otherwise, returns `false`.
160
+ **/
161
+ frozen: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<bool>, [
162
+ PolymeshPrimitivesAssetAssetId
163
+ ]>;
164
+ /**
165
+ * Maps each [`AssetId`] to the name of its founding round ([`FundingRoundName`]).
166
+ **/
167
+ fundingRound: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Bytes>, [
168
+ PolymeshPrimitivesAssetAssetId
169
+ ]>;
170
+ /**
171
+ * The total [`Balance`] of tokens issued in all recorded funding rounds ([`FundingRoundName`]).
172
+ **/
173
+ issuedInFundingRound: AugmentedQuery<ApiType, (arg: ITuple<[PolymeshPrimitivesAssetAssetId, Bytes]> | [PolymeshPrimitivesAssetAssetId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<u128>, [
174
+ ITuple<[PolymeshPrimitivesAssetAssetId, Bytes]>
175
+ ]>;
176
+ /**
177
+ * The list of mandatory mediators for every ticker.
178
+ **/
179
+ mandatoryMediators: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<BTreeSet<PolymeshPrimitivesIdentityId>>, [
180
+ PolymeshPrimitivesAssetAssetId
181
+ ]>;
182
+ /**
183
+ * All assets that don't need an affirmation to be received by an identity.
184
+ **/
185
+ preApprovedAsset: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<bool>, [
186
+ PolymeshPrimitivesIdentityId,
187
+ PolymeshPrimitivesAssetAssetId
188
+ ]>;
189
+ /**
190
+ * All assets owned by a user.
191
+ **/
192
+ securityTokensOwnedByUser: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<bool>, [
193
+ PolymeshPrimitivesIdentityId,
194
+ PolymeshPrimitivesAssetAssetId
195
+ ]>;
196
+ /**
197
+ * Storage version.
198
+ **/
199
+ storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
200
+ /**
201
+ * Maps all [`Ticker`] that are linked to an [`AssetId`].
202
+ **/
203
+ tickerAssetId: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesTicker | string | Uint8Array) => Observable<Option<PolymeshPrimitivesAssetAssetId>>, [
204
+ PolymeshPrimitivesTicker
205
+ ]>;
206
+ /**
207
+ * Returns [`TickerRegistrationConfig`] for assessing if a ticker is valid.
208
+ **/
209
+ tickerConfig: AugmentedQuery<ApiType, () => Observable<PalletAssetTickerRegistrationConfig>, [
210
+ ]>;
211
+ /**
212
+ * All tickers owned by a user.
213
+ **/
214
+ tickersOwnedByUser: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: PolymeshPrimitivesTicker | string | Uint8Array) => Observable<bool>, [
215
+ PolymeshPrimitivesIdentityId,
216
+ PolymeshPrimitivesTicker
217
+ ]>;
218
+ /**
219
+ * Map each [`Ticker`] to its registration details ([`TickerRegistration`]).
220
+ **/
221
+ uniqueTickerRegistration: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesTicker | string | Uint8Array) => Observable<Option<PalletAssetTickerRegistration>>, [
222
+ PolymeshPrimitivesTicker
223
+ ]>;
224
+ };
225
+ authorship: {
226
+ /**
227
+ * Author of current block.
228
+ **/
229
+ author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
230
+ };
231
+ babe: {
232
+ /**
233
+ * Current epoch authorities.
234
+ **/
235
+ authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>>, [
236
+ ]>;
237
+ /**
238
+ * This field should always be populated during block processing unless
239
+ * secondary plain slots are enabled (which don't contain a VRF output).
240
+ *
241
+ * It is set in `on_finalize`, before it will contain the value from the last block.
242
+ **/
243
+ authorVrfRandomness: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []>;
244
+ /**
245
+ * Current slot number.
246
+ **/
247
+ currentSlot: AugmentedQuery<ApiType, () => Observable<u64>, []>;
248
+ /**
249
+ * The configuration for the current epoch. Should never be `None` as it is initialized in
250
+ * genesis.
251
+ **/
252
+ epochConfig: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeBabeEpochConfiguration>>, [
253
+ ]>;
254
+ /**
255
+ * Current epoch index.
256
+ **/
257
+ epochIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
258
+ /**
259
+ * The block numbers when the last and current epoch have started, respectively `N-1` and
260
+ * `N`.
261
+ * NOTE: We track this is in order to annotate the block number when a given pool of
262
+ * entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in
263
+ * slots, which may be skipped, the block numbers may not line up with the slot numbers.
264
+ **/
265
+ epochStart: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []>;
266
+ /**
267
+ * The slot at which the first epoch actually started. This is 0
268
+ * until the first block of the chain.
269
+ **/
270
+ genesisSlot: AugmentedQuery<ApiType, () => Observable<u64>, []>;
271
+ /**
272
+ * Temporary value (cleared at block finalization) which is `Some`
273
+ * if per-block initialization has already been called for current block.
274
+ **/
275
+ initialized: AugmentedQuery<ApiType, () => Observable<Option<Option<SpConsensusBabeDigestsPreDigest>>>, [
276
+ ]>;
277
+ /**
278
+ * How late the current block is compared to its parent.
279
+ *
280
+ * This entry is populated as part of block execution and is cleaned up
281
+ * on block finalization. Querying this storage entry outside of block
282
+ * execution context should always yield zero.
283
+ **/
284
+ lateness: AugmentedQuery<ApiType, () => Observable<u32>, []>;
285
+ /**
286
+ * Next epoch authorities.
287
+ **/
288
+ nextAuthorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>>, [
289
+ ]>;
290
+ /**
291
+ * The configuration for the next epoch, `None` if the config will not change
292
+ * (you can fallback to `EpochConfig` instead in that case).
293
+ **/
294
+ nextEpochConfig: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeBabeEpochConfiguration>>, [
295
+ ]>;
296
+ /**
297
+ * Next epoch randomness.
298
+ **/
299
+ nextRandomness: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []>;
300
+ /**
301
+ * Pending epoch configuration change that will be applied when the next epoch is enacted.
302
+ **/
303
+ pendingEpochConfigChange: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeDigestsNextConfigDescriptor>>, [
304
+ ]>;
305
+ /**
306
+ * The epoch randomness for the *current* epoch.
307
+ *
308
+ * # Security
309
+ *
310
+ * This MUST NOT be used for gambling, as it can be influenced by a
311
+ * malicious validator in the short term. It MAY be used in many
312
+ * cryptographic protocols, however, so long as one remembers that this
313
+ * (like everything else on-chain) it is public. For example, it can be
314
+ * used where a number is needed that cannot have been chosen by an
315
+ * adversary, for purposes such as public-coin zero-knowledge proofs.
316
+ **/
317
+ randomness: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []>;
318
+ /**
319
+ * Randomness under construction.
320
+ *
321
+ * We make a trade-off between storage accesses and list length.
322
+ * We store the under-construction randomness in segments of up to
323
+ * `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
324
+ *
325
+ * Once a segment reaches this length, we begin the next one.
326
+ * We reset all segments and return to `0` at the beginning of every
327
+ * epoch.
328
+ **/
329
+ segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []>;
330
+ /**
331
+ * A list of the last 100 skipped epochs and the corresponding session index
332
+ * when the epoch was skipped.
333
+ *
334
+ * This is only used for validating equivocation proofs. An equivocation proof
335
+ * must contains a key-ownership proof for a given session, therefore we need a
336
+ * way to tie together sessions and epoch indices, i.e. we need to validate that
337
+ * a validator was the owner of a given key on a given session, and what the
338
+ * active epoch index was during that session.
339
+ **/
340
+ skippedEpochs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []>;
341
+ /**
342
+ * TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
343
+ **/
344
+ underConstruction: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<U8aFixed>>, [
345
+ u32
346
+ ]>;
347
+ };
348
+ balances: {
349
+ /**
350
+ * Any liquidity locks on some account balances.
351
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
352
+ **/
353
+ locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [
354
+ AccountId32
355
+ ]>;
356
+ /**
357
+ * The total units issued in the system.
358
+ **/
359
+ totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
360
+ };
361
+ capitalDistribution: {
362
+ /**
363
+ * All capital distributions, tied to their respective corporate actions (CAs).
364
+ *
365
+ * (CAId) => Distribution
366
+ **/
367
+ distributions: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
368
+ assetId?: any;
369
+ localId?: any;
370
+ } | string | Uint8Array) => Observable<Option<PalletCorporateActionsDistribution>>, [
371
+ PalletCorporateActionsCaId
372
+ ]>;
373
+ /**
374
+ * Has an asset holder been paid yet?
375
+ *
376
+ * (CAId, DID) -> Was DID paid in the CAId?
377
+ **/
378
+ holderPaid: AugmentedQuery<ApiType, (arg: ITuple<[PalletCorporateActionsCaId, PolymeshPrimitivesIdentityId]> | [
379
+ PalletCorporateActionsCaId | {
380
+ assetId?: any;
381
+ localId?: any;
382
+ } | string | Uint8Array,
383
+ PolymeshPrimitivesIdentityId | string | Uint8Array
384
+ ]) => Observable<bool>, [
385
+ ITuple<[PalletCorporateActionsCaId, PolymeshPrimitivesIdentityId]>
386
+ ]>;
387
+ /**
388
+ * Storage version.
389
+ **/
390
+ storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
391
+ };
392
+ cddServiceProviders: {
393
+ /**
394
+ * The current "active" membership, stored as an ordered Vec.
395
+ **/
396
+ activeMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesIdentityId>>, [
397
+ ]>;
398
+ /**
399
+ * Limit of how many "active" members there can be.
400
+ **/
401
+ activeMembersLimit: AugmentedQuery<ApiType, () => Observable<u32>, []>;
402
+ /**
403
+ * The current "inactive" membership, stored as an ordered Vec.
404
+ **/
405
+ inactiveMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesGroupInactiveMember>>, [
406
+ ]>;
407
+ };
408
+ checkpoint: {
409
+ /**
410
+ * Balance of a DID at a checkpoint.
411
+ *
412
+ * ([`AssetId`], did, checkpoint ID) -> Balance of a DID at a checkpoint
413
+ **/
414
+ balance: AugmentedQuery<ApiType, (arg1: ITuple<[PolymeshPrimitivesAssetAssetId, u64]> | [PolymeshPrimitivesAssetAssetId | string | Uint8Array, u64 | AnyNumber | Uint8Array], arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<u128>, [
415
+ ITuple<[PolymeshPrimitivesAssetAssetId, u64]>,
416
+ PolymeshPrimitivesIdentityId
417
+ ]>;
418
+ /**
419
+ * Checkpoints where a DID's balance was updated.
420
+ * ([`AssetId`], did) -> [checkpoint ID where user balance changed]
421
+ **/
422
+ balanceUpdates: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<Vec<u64>>, [
423
+ PolymeshPrimitivesAssetAssetId,
424
+ PolymeshPrimitivesIdentityId
425
+ ]>;
426
+ /**
427
+ * Cached next checkpoint for each schedule.
428
+ *
429
+ * This is used to quickly find the next checkpoint from a asset's schedules.
430
+ *
431
+ * ([`AssetId`]) -> next checkpoints
432
+ **/
433
+ cachedNextCheckpoints: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Option<PolymeshCommonUtilitiesCheckpointNextCheckpoints>>, [
434
+ PolymeshPrimitivesAssetAssetId
435
+ ]>;
436
+ /**
437
+ * Checkpoints ID generator sequence.
438
+ * ID of first checkpoint is 1 instead of 0.
439
+ *
440
+ * ([`AssetId`]) -> no. of checkpoints
441
+ **/
442
+ checkpointIdSequence: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u64>, [
443
+ PolymeshPrimitivesAssetAssetId
444
+ ]>;
445
+ /**
446
+ * Scheduled checkpoints.
447
+ *
448
+ * ([`AssetId`], schedule ID) -> schedule checkpoints
449
+ **/
450
+ scheduledCheckpoints: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshCommonUtilitiesCheckpointScheduleCheckpoints>>, [
451
+ PolymeshPrimitivesAssetAssetId,
452
+ u64
453
+ ]>;
454
+ /**
455
+ * Checkpoint schedule ID sequence for assets.
456
+ *
457
+ * ([`AssetId`]) -> schedule ID
458
+ **/
459
+ scheduleIdSequence: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u64>, [
460
+ PolymeshPrimitivesAssetAssetId
461
+ ]>;
462
+ /**
463
+ * All the checkpoints a given schedule originated.
464
+ *
465
+ * ([`AssetId`], schedule ID) -> [checkpoint ID]
466
+ **/
467
+ schedulePoints: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>, [
468
+ PolymeshPrimitivesAssetAssetId,
469
+ u64
470
+ ]>;
471
+ /**
472
+ * How many "strong" references are there to a given `ScheduleId`?
473
+ *
474
+ * The presence of a "strong" reference, in the sense of `Rc<T>`,
475
+ * entails that the referenced schedule cannot be removed.
476
+ * Thus, as long as `strong_ref_count(schedule_id) > 0`,
477
+ * `remove_schedule(schedule_id)` will error.
478
+ *
479
+ * ([`AssetId`], schedule ID) -> strong ref count
480
+ **/
481
+ scheduleRefCount: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<u32>, [
482
+ PolymeshPrimitivesAssetAssetId,
483
+ u64
484
+ ]>;
485
+ /**
486
+ * The maximum complexity allowed for an asset's schedules.
487
+ **/
488
+ schedulesMaxComplexity: AugmentedQuery<ApiType, () => Observable<u64>, []>;
489
+ /**
490
+ * Storage version.
491
+ **/
492
+ storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
493
+ /**
494
+ * Checkpoint timestamps.
495
+ *
496
+ * Every schedule-originated checkpoint maps its ID to its due time.
497
+ * Every checkpoint manually created maps its ID to the time of recording.
498
+ *
499
+ * ([`AssetId`]) -> (checkpoint ID) -> checkpoint timestamp
500
+ **/
501
+ timestamps: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<u64>, [
502
+ PolymeshPrimitivesAssetAssetId,
503
+ u64
504
+ ]>;
505
+ /**
506
+ * Total supply of the token at the checkpoint.
507
+ *
508
+ * ([`AssetId`], checkpointId) -> total supply at given checkpoint
509
+ **/
510
+ totalSupply: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<u128>, [
511
+ PolymeshPrimitivesAssetAssetId,
512
+ u64
513
+ ]>;
514
+ };
515
+ committeeMembership: {
516
+ /**
517
+ * The current "active" membership, stored as an ordered Vec.
518
+ **/
519
+ activeMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesIdentityId>>, [
520
+ ]>;
521
+ /**
522
+ * Limit of how many "active" members there can be.
523
+ **/
524
+ activeMembersLimit: AugmentedQuery<ApiType, () => Observable<u32>, []>;
525
+ /**
526
+ * The current "inactive" membership, stored as an ordered Vec.
527
+ **/
528
+ inactiveMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesGroupInactiveMember>>, [
529
+ ]>;
530
+ };
531
+ complianceManager: {
532
+ /**
533
+ * Compliance for an asset ([`AssetId`] -> [`AssetCompliance`])
534
+ **/
535
+ assetCompliances: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<PolymeshPrimitivesComplianceManagerAssetCompliance>, [
536
+ PolymeshPrimitivesAssetAssetId
537
+ ]>;
538
+ /**
539
+ * Storage version.
540
+ **/
541
+ storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
542
+ /**
543
+ * List of trusted claim issuer [`AssetId`] -> Issuer Identity
544
+ **/
545
+ trustedClaimIssuer: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Vec<PolymeshPrimitivesConditionTrustedIssuer>>, [
546
+ PolymeshPrimitivesAssetAssetId
547
+ ]>;
548
+ };
549
+ contracts: {
550
+ /**
551
+ * A mapping between an original code hash and instrumented wasm code, ready for execution.
552
+ **/
553
+ codeStorage: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletContractsWasmPrefabWasmModule>>, [
554
+ H256
555
+ ]>;
556
+ /**
557
+ * The code associated with a given account.
558
+ *
559
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
560
+ **/
561
+ contractInfoOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletContractsStorageContractInfo>>, [
562
+ AccountId32
563
+ ]>;
564
+ /**
565
+ * Evicted contracts that await child trie deletion.
566
+ *
567
+ * Child trie deletion is a heavy operation depending on the amount of storage items
568
+ * stored in said trie. Therefore this operation is performed lazily in `on_initialize`.
569
+ **/
570
+ deletionQueue: AugmentedQuery<ApiType, () => Observable<Vec<PalletContractsStorageDeletedContract>>, [
571
+ ]>;
572
+ /**
573
+ * This is a **monotonic** counter incremented on contract instantiation.
574
+ *
575
+ * This is used in order to generate unique trie ids for contracts.
576
+ * The trie id of a new contract is calculated from hash(account_id, nonce).
577
+ * The nonce is required because otherwise the following sequence would lead to
578
+ * a possible collision of storage:
579
+ *
580
+ * 1. Create a new contract.
581
+ * 2. Terminate the contract.
582
+ * 3. Immediately recreate the contract with the same account_id.
583
+ *
584
+ * This is bad because the contents of a trie are deleted lazily and there might be
585
+ * storage of the old instantiation still in it when the new contract is created. Please
586
+ * note that we can't replace the counter by the block number because the sequence above
587
+ * can happen in the same block. We also can't keep the account counter in memory only
588
+ * because storage is the only way to communicate across different extrinsics in the
589
+ * same block.
590
+ *
591
+ * # Note
592
+ *
593
+ * Do not use it to determine the number of contracts. It won't be decremented if
594
+ * a contract is destroyed.
595
+ **/
596
+ nonce: AugmentedQuery<ApiType, () => Observable<u64>, []>;
597
+ /**
598
+ * A mapping between an original code hash and its owner information.
599
+ **/
600
+ ownerInfoOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletContractsWasmOwnerInfo>>, [
601
+ H256
602
+ ]>;
603
+ /**
604
+ * A mapping from an original code hash to the original code, untouched by instrumentation.
605
+ **/
606
+ pristineCode: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [
607
+ H256
608
+ ]>;
609
+ };
610
+ corporateAction: {
611
+ /**
612
+ * Associations from CAs to `Document`s via their IDs.
613
+ * (CAId => [DocumentId])
614
+ *
615
+ * The `CorporateActions` map stores `AssetId => LocalId => The CA`,
616
+ * so we can infer `AssetId => CAId`. Therefore, we don't need a double map.
617
+ **/
618
+ caDocLink: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
619
+ assetId?: any;
620
+ localId?: any;
621
+ } | string | Uint8Array) => Observable<Vec<u32>>, [
622
+ PalletCorporateActionsCaId
623
+ ]>;
624
+ /**
625
+ * The next per-`AssetId` CA ID in the sequence.
626
+ * The full ID is defined as a combination of `AssetId` and a number in this sequence.
627
+ **/
628
+ caIdSequence: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u32>, [
629
+ PolymeshPrimitivesAssetAssetId
630
+ ]>;
631
+ /**
632
+ * All recorded CAs thus far.
633
+ * Only generic information is stored here.
634
+ * Specific `CAKind`s, e.g., benefits and corporate ballots, may use additional on-chain storage.
635
+ *
636
+ * (AssetId => local ID => the corporate action)
637
+ **/
638
+ corporateActions: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletCorporateActionsCorporateAction>>, [
639
+ PolymeshPrimitivesAssetAssetId,
640
+ u32
641
+ ]>;
642
+ /**
643
+ * The identities targeted by default for CAs for this asset,
644
+ * either to be excluded or included.
645
+ *
646
+ * (AssetId => target identities)
647
+ **/
648
+ defaultTargetIdentities: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<PalletCorporateActionsTargetIdentities>, [
649
+ PolymeshPrimitivesAssetAssetId
650
+ ]>;
651
+ /**
652
+ * The default amount of tax to withhold ("withholding tax", WT) for this asset when distributing dividends.
653
+ *
654
+ * To understand withholding tax, e.g., let's assume that you hold ACME shares.
655
+ * ACME now decides to distribute 100 SEK to Alice.
656
+ * Alice lives in Sweden, so Skatteverket (the Swedish tax authority) wants 30% of that.
657
+ * Then those 100 * 30% are withheld from Alice, and ACME will send them to Skatteverket.
658
+ *
659
+ * (AssetId => % to withhold)
660
+ **/
661
+ defaultWithholdingTax: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Permill>, [
662
+ PolymeshPrimitivesAssetAssetId
663
+ ]>;
664
+ /**
665
+ * Associates details in free-form text with a CA by its ID.
666
+ * (CAId => CADetails)
667
+ **/
668
+ details: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
669
+ assetId?: any;
670
+ localId?: any;
671
+ } | string | Uint8Array) => Observable<Bytes>, [
672
+ PalletCorporateActionsCaId
673
+ ]>;
674
+ /**
675
+ * The amount of tax to withhold ("withholding tax", WT) for a certain AssetId x DID.
676
+ * If an entry exists for a certain DID, it overrides the default in `DefaultWithholdingTax`.
677
+ *
678
+ * (AssetId => [(did, % to withhold)]
679
+ **/
680
+ didWithholdingTax: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Vec<ITuple<[PolymeshPrimitivesIdentityId, Permill]>>>, [
681
+ PolymeshPrimitivesAssetAssetId
682
+ ]>;
683
+ /**
684
+ * Determines the maximum number of bytes that the free-form `details` of a CA can store.
685
+ *
686
+ * Note that this is not the number of `char`s or the number of [graphemes].
687
+ * While this may be unnatural in terms of human understanding of a text's length,
688
+ * it more closely reflects actual storage costs (`'a'` is cheaper to store than an emoji).
689
+ *
690
+ * [graphemes]: https://en.wikipedia.org/wiki/Grapheme
691
+ **/
692
+ maxDetailsLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
693
+ /**
694
+ * Storage version.
695
+ **/
696
+ storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
697
+ };
698
+ corporateBallot: {
699
+ /**
700
+ * Metadata of a corporate ballot.
701
+ *
702
+ * (CAId) => BallotMeta
703
+ **/
704
+ metas: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
705
+ assetId?: any;
706
+ localId?: any;
707
+ } | string | Uint8Array) => Observable<Option<PalletCorporateActionsBallotBallotMeta>>, [
708
+ PalletCorporateActionsCaId
709
+ ]>;
710
+ /**
711
+ * Stores how many choices there are in each motion.
712
+ *
713
+ * At all times, the invariant holds that `motion_choices[idx]` is equal to
714
+ * `metas.unwrap().motions[idx].choices.len()`. That is, this is just a cache,
715
+ * used to avoid fetching all the motions with their associated texts.
716
+ *
717
+ * `u16` choices should be more than enough to fit real use cases.
718
+ *
719
+ * (CAId) => Number of choices in each motion.
720
+ **/
721
+ motionNumChoices: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
722
+ assetId?: any;
723
+ localId?: any;
724
+ } | string | Uint8Array) => Observable<Vec<u16>>, [
725
+ PalletCorporateActionsCaId
726
+ ]>;
727
+ /**
728
+ * Is ranked choice voting (RCV) enabled for this ballot?
729
+ * For an understanding of how RCV is handled, see note on `BallotVote`'s `fallback` field.
730
+ *
731
+ * (CAId) => bool
732
+ **/
733
+ rcv: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
734
+ assetId?: any;
735
+ localId?: any;
736
+ } | string | Uint8Array) => Observable<bool>, [
737
+ PalletCorporateActionsCaId
738
+ ]>;
739
+ /**
740
+ * Stores the total vote tally on each choice.
741
+ *
742
+ * RCV is not accounted for,
743
+ * as there are too many wants to interpret the graph,
744
+ * and because it would not be efficient.
745
+ *
746
+ * (CAId) => [current vote weights]
747
+ **/
748
+ results: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
749
+ assetId?: any;
750
+ localId?: any;
751
+ } | string | Uint8Array) => Observable<Vec<u128>>, [
752
+ PalletCorporateActionsCaId
753
+ ]>;
754
+ /**
755
+ * Storage version.
756
+ **/
757
+ storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
758
+ /**
759
+ * Time details of a corporate ballot associated with a CA.
760
+ * The timestamps denote when voting starts and stops.
761
+ *
762
+ * (CAId) => BallotTimeRange
763
+ **/
764
+ timeRanges: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
765
+ assetId?: any;
766
+ localId?: any;
767
+ } | string | Uint8Array) => Observable<Option<PalletCorporateActionsBallotBallotTimeRange>>, [
768
+ PalletCorporateActionsCaId
769
+ ]>;
770
+ /**
771
+ * Stores each DID's votes in a given ballot.
772
+ * See the documentation of `BallotVote` for notes on semantics.
773
+ *
774
+ * (CAId) => (DID) => [vote weight]
775
+ *
776
+ * User must enter 0 vote weight if they don't want to vote for a choice.
777
+ **/
778
+ votes: AugmentedQuery<ApiType, (arg1: PalletCorporateActionsCaId | {
779
+ assetId?: any;
780
+ localId?: any;
781
+ } | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<Vec<PalletCorporateActionsBallotBallotVote>>, [
782
+ PalletCorporateActionsCaId,
783
+ PolymeshPrimitivesIdentityId
784
+ ]>;
785
+ };
786
+ electionProviderMultiPhase: {
787
+ /**
788
+ * Current phase.
789
+ **/
790
+ currentPhase: AugmentedQuery<ApiType, () => Observable<PalletElectionProviderMultiPhasePhase>, [
791
+ ]>;
792
+ /**
793
+ * Desired number of targets to elect for this round.
794
+ *
795
+ * Only exists when [`Snapshot`] is present.
796
+ **/
797
+ desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
798
+ /**
799
+ * The minimum score that each 'untrusted' solution must attain in order to be considered
800
+ * feasible.
801
+ *
802
+ * Can be set via `set_minimum_untrusted_score`.
803
+ **/
804
+ minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, [
805
+ ]>;
806
+ /**
807
+ * Current best solution, signed or unsigned, queued to be returned upon `elect`.
808
+ **/
809
+ queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseReadySolution>>, [
810
+ ]>;
811
+ /**
812
+ * Internal counter for the number of rounds.
813
+ *
814
+ * This is useful for de-duplication of transactions submitted to the pool, and general
815
+ * diagnostics of the pallet.
816
+ *
817
+ * This is merely incremented once per every time that an upstream `elect` is called.
818
+ **/
819
+ round: AugmentedQuery<ApiType, () => Observable<u32>, []>;
820
+ /**
821
+ * A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
822
+ * value in `SignedSubmissions`.
823
+ *
824
+ * We never need to process more than a single signed submission at a time. Signed submissions
825
+ * can be quite large, so we're willing to pay the cost of multiple database accesses to access
826
+ * them one at a time instead of reading and decoding all of them at once.
827
+ **/
828
+ signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpNposElectionsElectionScore, u32, u32]>>>, [
829
+ ]>;
830
+ /**
831
+ * The next index to be assigned to an incoming signed submission.
832
+ *
833
+ * Every accepted submission is assigned a unique index; that index is bound to that particular
834
+ * submission for the duration of the election. On election finalization, the next index is
835
+ * reset to 0.
836
+ *
837
+ * We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its
838
+ * capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,
839
+ * because iteration is slow. Instead, we store the value here.
840
+ **/
841
+ signedSubmissionNextIndex: AugmentedQuery<ApiType, () => Observable<u32>, []>;
842
+ /**
843
+ * Unchecked, signed solutions.
844
+ *
845
+ * Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while
846
+ * allowing us to keep only a single one in memory at a time.
847
+ *
848
+ * Twox note: the key of the map is an auto-incrementing index which users cannot inspect or
849
+ * affect; we shouldn't need a cryptographically secure hasher.
850
+ **/
851
+ signedSubmissionsMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletElectionProviderMultiPhaseSignedSignedSubmission>>, [
852
+ u32
853
+ ]>;
854
+ /**
855
+ * Snapshot data of the round.
856
+ *
857
+ * This is created at the beginning of the signed phase and cleared upon calling `elect`.
858
+ **/
859
+ snapshot: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseRoundSnapshot>>, [
860
+ ]>;
861
+ /**
862
+ * The metadata of the [`RoundSnapshot`]
863
+ *
864
+ * Only exists when [`Snapshot`] is present.
865
+ **/
866
+ snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize>>, [
867
+ ]>;
868
+ };
869
+ externalAgents: {
870
+ /**
871
+ * Maps an agent (`IdentityId`) to all assets they belong to, if any.
872
+ **/
873
+ agentOf: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Null>, [
874
+ PolymeshPrimitivesIdentityId,
875
+ PolymeshPrimitivesAssetAssetId
876
+ ]>;
877
+ /**
878
+ * The next per-asset AG ID in the sequence.
879
+ *
880
+ * The full ID is defined as a combination of `AssetId` and a number in this sequence,
881
+ * which starts from 1, rather than 0.
882
+ **/
883
+ agIdSequence: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u32>, [
884
+ PolymeshPrimitivesAssetAssetId
885
+ ]>;
886
+ /**
887
+ * Maps agents (`IdentityId`) for an `AssetId` to what AG they belong to, if any.
888
+ **/
889
+ groupOfAgent: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<Option<PolymeshPrimitivesAgentAgentGroup>>, [
890
+ PolymeshPrimitivesAssetAssetId,
891
+ PolymeshPrimitivesIdentityId
892
+ ]>;
893
+ /**
894
+ * For custom AGs of an `AssetId`, maps to what permissions an agent in that AG would have.
895
+ **/
896
+ groupPermissions: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesSecondaryKeyExtrinsicPermissions>>, [
897
+ PolymeshPrimitivesAssetAssetId,
898
+ u32
899
+ ]>;
900
+ /**
901
+ * Maps an `AssetId` to the number of `Full` agents for it.
902
+ **/
903
+ numFullAgents: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u32>, [
904
+ PolymeshPrimitivesAssetAssetId
905
+ ]>;
906
+ /**
907
+ * Storage version.
908
+ **/
909
+ storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
910
+ };
911
+ grandpa: {
912
+ /**
913
+ * The number of changes (both in terms of keys and underlying economic responsibilities)
914
+ * in the "set" of Grandpa validators from genesis.
915
+ **/
916
+ currentSetId: AugmentedQuery<ApiType, () => Observable<u64>, []>;
917
+ /**
918
+ * next block number where we can force a change.
919
+ **/
920
+ nextForced: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
921
+ /**
922
+ * Pending change: (signaled at, scheduled change).
923
+ **/
924
+ pendingChange: AugmentedQuery<ApiType, () => Observable<Option<PalletGrandpaStoredPendingChange>>, [
925
+ ]>;
926
+ /**
927
+ * A mapping from grandpa set ID to the index of the *most recent* session for which its
928
+ * members were responsible.
929
+ *
930
+ * This is only used for validating equivocation proofs. An equivocation proof must
931
+ * contains a key-ownership proof for a given session, therefore we need a way to tie
932
+ * together sessions and GRANDPA set ids, i.e. we need to validate that a validator
933
+ * was the owner of a given key on a given session, and what the active set ID was
934
+ * during that session.
935
+ *
936
+ * TWOX-NOTE: `SetId` is not under user control.
937
+ **/
938
+ setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [
939
+ u64
940
+ ]>;
941
+ /**
942
+ * `true` if we are currently stalled.
943
+ **/
944
+ stalled: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []>;
945
+ /**
946
+ * State of the current authority set.
947
+ **/
948
+ state: AugmentedQuery<ApiType, () => Observable<PalletGrandpaStoredState>, []>;
949
+ };
950
+ identity: {
951
+ /**
952
+ * How many "strong" references to the account key.
953
+ *
954
+ * Strong references will block a key from leaving it's identity.
955
+ *
956
+ * Pallets using "strong" references to account keys:
957
+ * * Relayer: For `user_key` and `paying_key`
958
+ *
959
+ **/
960
+ accountKeyRefCount: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u64>, [
961
+ AccountId32
962
+ ]>;
963
+ /**
964
+ * All authorizations that an identity/key has
965
+ **/
966
+ authorizations: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesSecondaryKeySignatory | {
967
+ Identity: any;
968
+ } | {
969
+ Account: any;
970
+ } | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesAuthorization>>, [
971
+ PolymeshPrimitivesSecondaryKeySignatory,
972
+ u64
973
+ ]>;
974
+ /**
975
+ * All authorizations that an identity has given. (Authorizer, auth_id -> authorized)
976
+ **/
977
+ authorizationsGiven: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesSecondaryKeySignatory>, [
978
+ PolymeshPrimitivesIdentityId,
979
+ u64
980
+ ]>;
981
+ /**
982
+ * A config flag that, if set, instructs an authorization from a CDD provider in order to
983
+ * change the primary key of an identity.
984
+ **/
985
+ cddAuthForPrimaryKeyRotation: AugmentedQuery<ApiType, () => Observable<bool>, []>;
986
+ /**
987
+ * All child identities of a parent (i.e ParentDID, ChildDID, true)
988
+ **/
989
+ childDid: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<bool>, [
990
+ PolymeshPrimitivesIdentityId,
991
+ PolymeshPrimitivesIdentityId
992
+ ]>;
993
+ /**
994
+ * (Target ID, claim type) (issuer,scope) -> Associated claims
995
+ **/
996
+ claims: AugmentedQuery<ApiType, (arg1: PalletIdentityClaim1stKey | {
997
+ target?: any;
998
+ claimType?: any;
999
+ } | string | Uint8Array, arg2: PalletIdentityClaim2ndKey | {
1000
+ issuer?: any;
1001
+ scope?: any;
1002
+ } | string | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityClaim>>, [
1003
+ PalletIdentityClaim1stKey,
1004
+ PalletIdentityClaim2ndKey
1005
+ ]>;
1006
+ /**
1007
+ * Controls the authorization id.
1008
+ **/
1009
+ currentAuthId: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1010
+ /**
1011
+ * It stores the current gas fee payer for the current transaction.
1012
+ **/
1013
+ currentPayer: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
1014
+ /**
1015
+ * The next `CustomClaimTypeId`.
1016
+ **/
1017
+ customClaimIdSequence: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1018
+ /**
1019
+ * CusotmClaimTypeId -> String constant
1020
+ **/
1021
+ customClaims: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [
1022
+ u32
1023
+ ]>;
1024
+ /**
1025
+ * String constant -> CustomClaimTypeId
1026
+ **/
1027
+ customClaimsInverse: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<u32>>, [
1028
+ Bytes
1029
+ ]>;
1030
+ /**
1031
+ * A reverse double map to allow finding all keys for an identity.
1032
+ **/
1033
+ didKeys: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<bool>, [
1034
+ PolymeshPrimitivesIdentityId,
1035
+ AccountId32
1036
+ ]>;
1037
+ /**
1038
+ * DID -> identity info
1039
+ **/
1040
+ didRecords: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityDidRecord>>, [
1041
+ PolymeshPrimitivesIdentityId
1042
+ ]>;
1043
+ /**
1044
+ * DID -> bool that indicates if secondary keys are frozen.
1045
+ **/
1046
+ isDidFrozen: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<bool>, [
1047
+ PolymeshPrimitivesIdentityId
1048
+ ]>;
1049
+ /**
1050
+ * A secondary key's asset permissions.
1051
+ **/
1052
+ keyAssetPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolymeshPrimitivesSubsetSubsetRestrictionAssetId>>, [
1053
+ AccountId32
1054
+ ]>;
1055
+ /**
1056
+ * A secondary key's extrinsic permissions.
1057
+ **/
1058
+ keyExtrinsicPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolymeshPrimitivesSecondaryKeyExtrinsicPermissions>>, [
1059
+ AccountId32
1060
+ ]>;
1061
+ /**
1062
+ * A secondary key's portfolio permissions.
1063
+ **/
1064
+ keyPortfolioPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolymeshPrimitivesSubsetSubsetRestrictionPortfolioId>>, [
1065
+ AccountId32
1066
+ ]>;
1067
+ /**
1068
+ * Map from AccountId to `KeyRecord` that holds the key's type and identity.
1069
+ **/
1070
+ keyRecords: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolymeshPrimitivesSecondaryKeyKeyRecord>>, [
1071
+ AccountId32
1072
+ ]>;
1073
+ /**
1074
+ * Nonce to ensure unique actions. starts from 1.
1075
+ **/
1076
+ multiPurposeNonce: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1077
+ /**
1078
+ * Track the number of authorizations given by each identity.
1079
+ **/
1080
+ numberOfGivenAuths: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<u32>, [
1081
+ PolymeshPrimitivesIdentityId
1082
+ ]>;
1083
+ /**
1084
+ * Authorization nonce per Identity. Initially is 0.
1085
+ **/
1086
+ offChainAuthorizationNonce: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<u64>, [
1087
+ PolymeshPrimitivesIdentityId
1088
+ ]>;
1089
+ /**
1090
+ * Tracks all authorizations that must be deleted
1091
+ **/
1092
+ outdatedAuthorizations: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesSecondaryKeySignatory | {
1093
+ Identity: any;
1094
+ } | {
1095
+ Account: any;
1096
+ } | string | Uint8Array) => Observable<Option<u64>>, [
1097
+ PolymeshPrimitivesSecondaryKeySignatory
1098
+ ]>;
1099
+ /**
1100
+ * Parent identity if the DID is a child Identity.
1101
+ **/
1102
+ parentDid: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityId>>, [
1103
+ PolymeshPrimitivesIdentityId
1104
+ ]>;
1105
+ /**
1106
+ * Storage version.
1107
+ **/
1108
+ storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
1109
+ };
1110
+ imOnline: {
1111
+ /**
1112
+ * For each session index, we keep a mapping of `ValidatorId<T>` to the
1113
+ * number of blocks authored by the given authority.
1114
+ **/
1115
+ authoredBlocks: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<u32>, [
1116
+ u32,
1117
+ AccountId32
1118
+ ]>;
1119
+ /**
1120
+ * The block number after which it's ok to send heartbeats in the current
1121
+ * session.
1122
+ *
1123
+ * At the beginning of each session we set this to a value that should fall
1124
+ * roughly in the middle of the session duration. The idea is to first wait for
1125
+ * the validators to produce a block in the current session, so that the
1126
+ * heartbeat later on will not be necessary.
1127
+ *
1128
+ * This value will only be used as a fallback if we fail to get a proper session
1129
+ * progress estimate from `NextSessionRotation`, as those estimates should be
1130
+ * more accurate then the value we calculate for `HeartbeatAfter`.
1131
+ **/
1132
+ heartbeatAfter: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1133
+ /**
1134
+ * The current set of keys that may issue a heartbeat.
1135
+ **/
1136
+ keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, [
1137
+ ]>;
1138
+ /**
1139
+ * For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to
1140
+ * `WrapperOpaque<BoundedOpaqueNetworkState>`.
1141
+ **/
1142
+ receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<WrapperOpaque<PalletImOnlineBoundedOpaqueNetworkState>>>, [
1143
+ u32,
1144
+ u32
1145
+ ]>;
1146
+ };
1147
+ indices: {
1148
+ /**
1149
+ * The lookup from index to account.
1150
+ **/
1151
+ accounts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[AccountId32, u128, bool]>>>, [
1152
+ u32
1153
+ ]>;
1154
+ };
1155
+ multiSig: {
1156
+ /**
1157
+ * The multisig's admin identity. The primary key of this identity
1158
+ * has admin control over the multisig.
1159
+ *
1160
+ * multisig -> Option<IdentityId>.
1161
+ **/
1162
+ adminDid: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityId>>, [
1163
+ AccountId32
1164
+ ]>;
1165
+ /**
1166
+ * Pending join identity authorization proposals.
1167
+ *
1168
+ * multisig -> auth id => Option<proposal id>.
1169
+ **/
1170
+ authToProposalId: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<u64>>, [
1171
+ AccountId32,
1172
+ u64
1173
+ ]>;
1174
+ /**
1175
+ * Proposal execution reentry guard.
1176
+ **/
1177
+ executionReentry: AugmentedQuery<ApiType, () => Observable<bool>, []>;
1178
+ /**
1179
+ * The last proposal id before the multisig changed signers or signatures required.
1180
+ *
1181
+ * multisig => Option<proposal id>
1182
+ **/
1183
+ lastInvalidProposal: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u64>>, [
1184
+ AccountId32
1185
+ ]>;
1186
+ /**
1187
+ * Nonce to ensure unique MultiSig addresses are generated; starts from 1.
1188
+ **/
1189
+ multiSigNonce: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1190
+ /**
1191
+ * Signers of a multisig. (multisig, signer) => bool.
1192
+ **/
1193
+ multiSigSigners: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<bool>, [
1194
+ AccountId32,
1195
+ AccountId32
1196
+ ]>;
1197
+ /**
1198
+ * Confirmations required before processing a multisig tx.
1199
+ **/
1200
+ multiSigSignsRequired: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u64>, [
1201
+ AccountId32
1202
+ ]>;
1203
+ /**
1204
+ * Next proposal id for a multisig. Starts from 0.
1205
+ *
1206
+ * multisig => next proposal id
1207
+ **/
1208
+ nextProposalId: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u64>, [
1209
+ AccountId32
1210
+ ]>;
1211
+ /**
1212
+ * Number of approved/accepted signers of a multisig.
1213
+ **/
1214
+ numberOfSigners: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u64>, [
1215
+ AccountId32
1216
+ ]>;
1217
+ /**
1218
+ * The multisig's paying identity. The primary key of this identity
1219
+ * pays the transaction/protocal fees of the multisig proposals.
1220
+ *
1221
+ * multisig -> Option<IdentityId>.
1222
+ **/
1223
+ payingDid: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityId>>, [
1224
+ AccountId32
1225
+ ]>;
1226
+ /**
1227
+ * Proposals presented for voting to a multisig.
1228
+ *
1229
+ * multisig -> proposal id => Option<Proposal>.
1230
+ **/
1231
+ proposals: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<Call>>, [
1232
+ AccountId32,
1233
+ u64
1234
+ ]>;
1235
+ /**
1236
+ * The state of a multisig proposal
1237
+ *
1238
+ * multisig -> proposal id => Option<ProposalState>.
1239
+ **/
1240
+ proposalStates: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesMultisigProposalState>>, [
1241
+ AccountId32,
1242
+ u64
1243
+ ]>;
1244
+ /**
1245
+ * The count of approvals/rejections of a multisig proposal.
1246
+ *
1247
+ * multisig -> proposal id => Option<ProposalVoteCount>.
1248
+ **/
1249
+ proposalVoteCounts: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesMultisigProposalVoteCount>>, [
1250
+ AccountId32,
1251
+ u64
1252
+ ]>;
1253
+ /**
1254
+ * Storage version.
1255
+ **/
1256
+ storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
1257
+ /**
1258
+ * The last transaction version, used for `on_runtime_upgrade`.
1259
+ **/
1260
+ transactionVersion: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1261
+ /**
1262
+ * Individual multisig signer votes.
1263
+ *
1264
+ * (multisig, proposal_id) -> signer => vote.
1265
+ **/
1266
+ votes: AugmentedQuery<ApiType, (arg1: ITuple<[AccountId32, u64]> | [AccountId32 | string | Uint8Array, u64 | AnyNumber | Uint8Array], arg2: AccountId32 | string | Uint8Array) => Observable<bool>, [
1267
+ ITuple<[AccountId32, u64]>,
1268
+ AccountId32
1269
+ ]>;
1270
+ };
1271
+ nft: {
1272
+ /**
1273
+ * All collection details for a given collection id.
1274
+ **/
1275
+ collection: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesNftNftCollection>, [
1276
+ u64
1277
+ ]>;
1278
+ /**
1279
+ * The collection id corresponding to each asset.
1280
+ **/
1281
+ collectionAsset: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u64>, [
1282
+ PolymeshPrimitivesAssetAssetId
1283
+ ]>;
1284
+ /**
1285
+ * All mandatory metadata keys for a given collection.
1286
+ **/
1287
+ collectionKeys: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<PolymeshPrimitivesAssetMetadataAssetMetadataKey>>, [
1288
+ u64
1289
+ ]>;
1290
+ /**
1291
+ * The last `NFTCollectionId` used for a collection.
1292
+ **/
1293
+ currentCollectionId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
1294
+ /**
1295
+ * The last `NFTId` used for an NFT.
1296
+ **/
1297
+ currentNFTId: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u64>>, [
1298
+ u64
1299
+ ]>;
1300
+ /**
1301
+ * The metadata value of an nft given its collection id, token id and metadata key.
1302
+ **/
1303
+ metadataValue: AugmentedQuery<ApiType, (arg1: ITuple<[u64, u64]> | [u64 | AnyNumber | Uint8Array, u64 | AnyNumber | Uint8Array], arg2: PolymeshPrimitivesAssetMetadataAssetMetadataKey | {
1304
+ Global: any;
1305
+ } | {
1306
+ Local: any;
1307
+ } | string | Uint8Array) => Observable<Bytes>, [
1308
+ ITuple<[u64, u64]>,
1309
+ PolymeshPrimitivesAssetMetadataAssetMetadataKey
1310
+ ]>;
1311
+ /**
1312
+ * Tracks the owner of an NFT
1313
+ **/
1314
+ nftOwner: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityIdPortfolioId>>, [
1315
+ PolymeshPrimitivesAssetAssetId,
1316
+ u64
1317
+ ]>;
1318
+ /**
1319
+ * The total number of NFTs in a collection.
1320
+ **/
1321
+ nfTsInCollection: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u64>, [
1322
+ PolymeshPrimitivesAssetAssetId
1323
+ ]>;
1324
+ /**
1325
+ * The total number of NFTs per identity.
1326
+ **/
1327
+ numberOfNFTs: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<u64>, [
1328
+ PolymeshPrimitivesAssetAssetId,
1329
+ PolymeshPrimitivesIdentityId
1330
+ ]>;
1331
+ };
1332
+ offences: {
1333
+ /**
1334
+ * A vector of reports of the same kind that happened at the same time slot.
1335
+ **/
1336
+ concurrentReportsIndex: AugmentedQuery<ApiType, (arg1: U8aFixed | string | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable<Vec<H256>>, [
1337
+ U8aFixed,
1338
+ Bytes
1339
+ ]>;
1340
+ /**
1341
+ * The primary structure that holds all offence records keyed by report identifiers.
1342
+ **/
1343
+ reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [
1344
+ H256
1345
+ ]>;
1346
+ /**
1347
+ * Enumerates all reports of a kind along with the time they happened.
1348
+ *
1349
+ * All reports are sorted by the time of offence.
1350
+ *
1351
+ * Note that the actual type of this mapping is `Vec<u8>`, this is because values of
1352
+ * different types are not supported at the moment so we are doing the manual serialization.
1353
+ **/
1354
+ reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [
1355
+ U8aFixed
1356
+ ]>;
1357
+ };
1358
+ pips: {
1359
+ /**
1360
+ * Total count of pending or scheduled PIPs.
1361
+ **/
1362
+ activePipCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1363
+ /**
1364
+ * The maximum allowed number for active PIPs. Once reached, new PIPs cannot be proposed by community members.
1365
+ **/
1366
+ activePipLimit: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1367
+ /**
1368
+ * All existing PIPs where the proposer is a committee.
1369
+ * This list is a cache of all ids in `Proposals` with `Proposer::Committee(_)`.
1370
+ **/
1371
+ committeePips: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []>;
1372
+ /**
1373
+ * Default enactment period that will be use after a proposal is accepted by GC.
1374
+ **/
1375
+ defaultEnactmentPeriod: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1376
+ /**
1377
+ * All locked [`DepositInfo`] per [`PipId`] for each account.
1378
+ **/
1379
+ deposits: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletPipsDepositInfo>>, [
1380
+ u32,
1381
+ AccountId32
1382
+ ]>;
1383
+ /**
1384
+ * A live priority queue (lowest priority at index 0)
1385
+ * of pending PIPs up to the active limit.
1386
+ * Priority is defined by the `weight` in the `SnapshottedPip`.
1387
+ *
1388
+ * Unlike `SnapshotQueue`, this queue is live, getting updated with each vote cast.
1389
+ * The snapshot is therefore essentially a point-in-time clone of this queue.
1390
+ **/
1391
+ liveQueue: AugmentedQuery<ApiType, () => Observable<Vec<PalletPipsSnapshottedPip>>, []>;
1392
+ /**
1393
+ * Maximum times a PIP can be skipped before triggering `CannotSkipPip` in `enact_snapshot_results`.
1394
+ **/
1395
+ maxPipSkipCount: AugmentedQuery<ApiType, () => Observable<u8>, []>;
1396
+ /**
1397
+ * The minimum amount to be used as a deposit for community PIP creation.
1398
+ **/
1399
+ minimumProposalDeposit: AugmentedQuery<ApiType, () => Observable<u128>, []>;
1400
+ /**
1401
+ * Number of blocks it will take, after a `Pending` PIP expires, assuming it has not transitioned to another `ProposalState`.
1402
+ **/
1403
+ pendingPipExpiry: AugmentedQuery<ApiType, () => Observable<PolymeshPrimitivesMaybeBlock>, []>;
1404
+ /**
1405
+ * All PIPs that still require refunds.
1406
+ **/
1407
+ pendingRefunds: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [
1408
+ u32
1409
+ ]>;
1410
+ /**
1411
+ * Proposal's identifier.
1412
+ **/
1413
+ pipIdSequence: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1414
+ /**
1415
+ * The number of times a certain PIP has been skipped.
1416
+ * Once a (configurable) threshhold is exceeded, a PIP cannot be skipped again.
1417
+ **/
1418
+ pipSkipCount: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u8>, [
1419
+ u32
1420
+ ]>;
1421
+ /**
1422
+ * Maps PIPs to the block at which they will be executed.
1423
+ **/
1424
+ pipToSchedule: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [
1425
+ u32
1426
+ ]>;
1427
+ /**
1428
+ * The [`PipsMetadata`] for each proposal ([`PipId`]).
1429
+ **/
1430
+ proposalMetadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletPipsPipsMetadata>>, [
1431
+ u32
1432
+ ]>;
1433
+ /**
1434
+ * The [`VotingResult`] for each proposal ([`PipId`]).
1435
+ **/
1436
+ proposalResult: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletPipsVotingResult>, [
1437
+ u32
1438
+ ]>;
1439
+ /**
1440
+ * The [`Pip`] for each proposal ([`PipId`]).
1441
+ **/
1442
+ proposals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletPipsPip>>, [
1443
+ u32
1444
+ ]>;
1445
+ /**
1446
+ * The ([`ProposalState`]) of a given PIP ([`PipId`]).
1447
+ **/
1448
+ proposalStates: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletPipsProposalState>>, [
1449
+ u32
1450
+ ]>;
1451
+ /**
1452
+ * The Votes ([`Vote`]) for each proposal ([`PipId`]) per account.
1453
+ **/
1454
+ proposalVotes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletPipsVote>>, [
1455
+ u32,
1456
+ AccountId32
1457
+ ]>;
1458
+ /**
1459
+ * Set to `true` if historical PIPs data must be removed.
1460
+ **/
1461
+ pruneHistoricalPips: AugmentedQuery<ApiType, () => Observable<bool>, []>;
1462
+ /**
1463
+ * Snaphot's identifier.
1464
+ **/
1465
+ snapshotIdSequence: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1466
+ /**
1467
+ * The [`SnapshotMetadata`].
1468
+ **/
1469
+ snapshotMeta: AugmentedQuery<ApiType, () => Observable<Option<PalletPipsSnapshotMetadata>>, [
1470
+ ]>;
1471
+ /**
1472
+ * The priority queue (lowest priority at index 0) of PIPs at the point of snapshotting.
1473
+ * Priority is defined by the `weight` in the `SnapshottedPip`.
1474
+ *
1475
+ * A queued PIP can be skipped. Doing so bumps the `pip_skip_count`.
1476
+ * Once a (configurable) threshhold is exceeded, a PIP cannot be skipped again.
1477
+ **/
1478
+ snapshotQueue: AugmentedQuery<ApiType, () => Observable<Vec<PalletPipsSnapshottedPip>>, []>;
1479
+ /**
1480
+ * Storage version.
1481
+ **/
1482
+ storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
1483
+ /**
1484
+ * All PIPs that still require votes to be pruned.
1485
+ **/
1486
+ votesToBePruned: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [
1487
+ u32
1488
+ ]>;
1489
+ };
1490
+ polymeshCommittee: {
1491
+ /**
1492
+ * Time after which a proposal will expire.
1493
+ **/
1494
+ expiresAfter: AugmentedQuery<ApiType, () => Observable<PolymeshPrimitivesMaybeBlock>, []>;
1495
+ /**
1496
+ * The current members of the committee.
1497
+ **/
1498
+ members: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesIdentityId>>, []>;
1499
+ /**
1500
+ * Proposals so far.
1501
+ **/
1502
+ proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1503
+ /**
1504
+ * Actual proposal for a given hash.
1505
+ **/
1506
+ proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [
1507
+ H256
1508
+ ]>;
1509
+ /**
1510
+ * The hashes of the active proposals.
1511
+ **/
1512
+ proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []>;
1513
+ /**
1514
+ * Release cooridinator.
1515
+ **/
1516
+ releaseCoordinator: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []>;
1517
+ /**
1518
+ * Vote threshold for an approval.
1519
+ **/
1520
+ voteThreshold: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []>;
1521
+ /**
1522
+ * PolymeshVotes on a given proposal, if it is ongoing.
1523
+ **/
1524
+ voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCommitteePolymeshVotes>>, [
1525
+ H256
1526
+ ]>;
1527
+ };
1528
+ polymeshContracts: {
1529
+ /**
1530
+ * Stores the chain version and code hash for the next chain upgrade.
1531
+ **/
1532
+ apiNextUpgrade: AugmentedQuery<ApiType, (arg: PolymeshContractsApi | {
1533
+ desc?: any;
1534
+ major?: any;
1535
+ } | string | Uint8Array) => Observable<Option<PolymeshContractsNextUpgrade>>, [
1536
+ PolymeshContractsApi
1537
+ ]>;
1538
+ /**
1539
+ * Whitelist of extrinsics allowed to be called from contracts.
1540
+ **/
1541
+ callRuntimeWhitelist: AugmentedQuery<ApiType, (arg: PolymeshContractsChainExtensionExtrinsicId) => Observable<bool>, [
1542
+ PolymeshContractsChainExtensionExtrinsicId
1543
+ ]>;
1544
+ /**
1545
+ * Stores the code hash for the current api.
1546
+ **/
1547
+ currentApiHash: AugmentedQuery<ApiType, (arg: PolymeshContractsApi | {
1548
+ desc?: any;
1549
+ major?: any;
1550
+ } | string | Uint8Array) => Observable<Option<PolymeshContractsApiCodeHash>>, [
1551
+ PolymeshContractsApi
1552
+ ]>;
1553
+ /**
1554
+ * Storage version.
1555
+ **/
1556
+ storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
1557
+ };
1558
+ portfolio: {
1559
+ /**
1560
+ * Custodians allowed to create and take custody of portfolios on an id's behalf.
1561
+ **/
1562
+ allowedCustodians: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<bool>, [
1563
+ PolymeshPrimitivesIdentityId,
1564
+ PolymeshPrimitivesIdentityId
1565
+ ]>;
1566
+ /**
1567
+ * Inverse map of `Portfolios` used to ensure bijectivitiy,
1568
+ * and uniqueness of names in `Portfolios`.
1569
+ **/
1570
+ nameToNumber: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable<Option<u64>>, [
1571
+ PolymeshPrimitivesIdentityId,
1572
+ Bytes
1573
+ ]>;
1574
+ /**
1575
+ * The next portfolio sequence number of an identity.
1576
+ **/
1577
+ nextPortfolioNumber: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<u64>, [
1578
+ PolymeshPrimitivesIdentityId
1579
+ ]>;
1580
+ /**
1581
+ * The asset balances of portfolios.
1582
+ **/
1583
+ portfolioAssetBalances: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityIdPortfolioId | {
1584
+ did?: any;
1585
+ kind?: any;
1586
+ } | string | Uint8Array, arg2: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u128>, [
1587
+ PolymeshPrimitivesIdentityIdPortfolioId,
1588
+ PolymeshPrimitivesAssetAssetId
1589
+ ]>;
1590
+ /**
1591
+ * How many assets with non-zero balance this portfolio contains.
1592
+ **/
1593
+ portfolioAssetCount: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityIdPortfolioId | {
1594
+ did?: any;
1595
+ kind?: any;
1596
+ } | string | Uint8Array) => Observable<u64>, [
1597
+ PolymeshPrimitivesIdentityIdPortfolioId
1598
+ ]>;
1599
+ /**
1600
+ * The custodian of a particular portfolio. None implies that the identity owner is the custodian.
1601
+ **/
1602
+ portfolioCustodian: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityIdPortfolioId | {
1603
+ did?: any;
1604
+ kind?: any;
1605
+ } | string | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityId>>, [
1606
+ PolymeshPrimitivesIdentityIdPortfolioId
1607
+ ]>;
1608
+ /**
1609
+ * Amount of assets locked in a portfolio.
1610
+ * These assets show up in portfolio balance but can not be transferred away.
1611
+ **/
1612
+ portfolioLockedAssets: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityIdPortfolioId | {
1613
+ did?: any;
1614
+ kind?: any;
1615
+ } | string | Uint8Array, arg2: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u128>, [
1616
+ PolymeshPrimitivesIdentityIdPortfolioId,
1617
+ PolymeshPrimitivesAssetAssetId
1618
+ ]>;
1619
+ /**
1620
+ * All locked nft for a given portfolio.
1621
+ **/
1622
+ portfolioLockedNFT: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityIdPortfolioId | {
1623
+ did?: any;
1624
+ kind?: any;
1625
+ } | string | Uint8Array, arg2: ITuple<[PolymeshPrimitivesAssetAssetId, u64]> | [PolymeshPrimitivesAssetAssetId | string | Uint8Array, u64 | AnyNumber | Uint8Array]) => Observable<bool>, [
1626
+ PolymeshPrimitivesIdentityIdPortfolioId,
1627
+ ITuple<[PolymeshPrimitivesAssetAssetId, u64]>
1628
+ ]>;
1629
+ /**
1630
+ * The nft associated to the portfolio.
1631
+ **/
1632
+ portfolioNFT: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityIdPortfolioId | {
1633
+ did?: any;
1634
+ kind?: any;
1635
+ } | string | Uint8Array, arg2: ITuple<[PolymeshPrimitivesAssetAssetId, u64]> | [PolymeshPrimitivesAssetAssetId | string | Uint8Array, u64 | AnyNumber | Uint8Array]) => Observable<bool>, [
1636
+ PolymeshPrimitivesIdentityIdPortfolioId,
1637
+ ITuple<[PolymeshPrimitivesAssetAssetId, u64]>
1638
+ ]>;
1639
+ /**
1640
+ * The set of existing portfolios with their names. If a certain pair of a DID and
1641
+ * portfolio number maps to `None` then such a portfolio doesn't exist. Conversely, if a
1642
+ * pair maps to `Some(name)` then such a portfolio exists and is called `name`.
1643
+ **/
1644
+ portfolios: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [
1645
+ PolymeshPrimitivesIdentityId,
1646
+ u64
1647
+ ]>;
1648
+ /**
1649
+ * Tracks all the portfolios in custody of a particular identity. Only used by the UIs.
1650
+ * When `true` is stored as the value for a given `(did, pid)`, it means that `pid` is in custody of `did`.
1651
+ * `false` values are never explicitly stored in the map, and are instead inferred by the absence of a key.
1652
+ **/
1653
+ portfoliosInCustody: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: PolymeshPrimitivesIdentityIdPortfolioId | {
1654
+ did?: any;
1655
+ kind?: any;
1656
+ } | string | Uint8Array) => Observable<bool>, [
1657
+ PolymeshPrimitivesIdentityId,
1658
+ PolymeshPrimitivesIdentityIdPortfolioId
1659
+ ]>;
1660
+ /**
1661
+ * All portfolios that don't need to affirm the receivement of a given [`AssetId`].
1662
+ **/
1663
+ preApprovedPortfolios: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityIdPortfolioId | {
1664
+ did?: any;
1665
+ kind?: any;
1666
+ } | string | Uint8Array, arg2: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<bool>, [
1667
+ PolymeshPrimitivesIdentityIdPortfolioId,
1668
+ PolymeshPrimitivesAssetAssetId
1669
+ ]>;
1670
+ /**
1671
+ * Storage version.
1672
+ **/
1673
+ storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
1674
+ };
1675
+ preimage: {
1676
+ preimageFor: AugmentedQuery<ApiType, (arg: ITuple<[H256, u32]> | [H256 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<Bytes>>, [
1677
+ ITuple<[H256, u32]>
1678
+ ]>;
1679
+ /**
1680
+ * The request status of a given hash.
1681
+ **/
1682
+ statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [
1683
+ H256
1684
+ ]>;
1685
+ };
1686
+ protocolFee: {
1687
+ /**
1688
+ * The mapping of operation names to the base fees of those operations.
1689
+ **/
1690
+ baseFees: AugmentedQuery<ApiType, (arg: PolymeshCommonUtilitiesProtocolFeeProtocolOp | 'AssetRegisterTicker' | 'AssetIssue' | 'AssetAddDocuments' | 'AssetCreateAsset' | 'CheckpointCreateSchedule' | 'ComplianceManagerAddComplianceRequirement' | 'IdentityCddRegisterDid' | 'IdentityAddClaim' | 'IdentityAddSecondaryKeysWithAuthorization' | 'PipsPropose' | 'ContractsPutCode' | 'CorporateBallotAttachBallot' | 'CapitalDistributionDistribute' | 'NFTCreateCollection' | 'NFTMint' | 'IdentityCreateChildIdentity' | number | Uint8Array) => Observable<u128>, [
1691
+ PolymeshCommonUtilitiesProtocolFeeProtocolOp
1692
+ ]>;
1693
+ /**
1694
+ * The fee coefficient as a positive rational (numerator, denominator).
1695
+ **/
1696
+ coefficient: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []>;
1697
+ };
1698
+ randomnessCollectiveFlip: {
1699
+ /**
1700
+ * Series of block headers from the last 81 blocks that acts as random seed material. This
1701
+ * is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of
1702
+ * the oldest hash.
1703
+ **/
1704
+ randomMaterial: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []>;
1705
+ };
1706
+ relayer: {
1707
+ /**
1708
+ * The subsidy for a `user_key` if they are being subsidised,
1709
+ * as a map `user_key` => `Subsidy`.
1710
+ *
1711
+ * A key can only have one subsidy at a time. To change subsidisers
1712
+ * a key needs to call `remove_paying_key` to remove the current subsidy,
1713
+ * before they can accept a new subsidiser.
1714
+ **/
1715
+ subsidies: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletRelayerSubsidy>>, [
1716
+ AccountId32
1717
+ ]>;
1718
+ };
1719
+ scheduler: {
1720
+ /**
1721
+ * Items to be executed, indexed by the block number that they should be executed on.
1722
+ **/
1723
+ agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduled>>>, [
1724
+ u32
1725
+ ]>;
1726
+ incompleteSince: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
1727
+ /**
1728
+ * Lookup from a name to the block number and index of the task.
1729
+ *
1730
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
1731
+ * identities.
1732
+ **/
1733
+ lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [
1734
+ U8aFixed
1735
+ ]>;
1736
+ };
1737
+ session: {
1738
+ /**
1739
+ * Current index of the session.
1740
+ **/
1741
+ currentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1742
+ /**
1743
+ * Indices of disabled validators.
1744
+ *
1745
+ * The vec is always kept sorted so that we can find whether a given validator is
1746
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
1747
+ * a new set of identities.
1748
+ **/
1749
+ disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []>;
1750
+ /**
1751
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
1752
+ **/
1753
+ keyOwner: AugmentedQuery<ApiType, (arg: ITuple<[SpCoreCryptoKeyTypeId, Bytes]> | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<AccountId32>>, [
1754
+ ITuple<[SpCoreCryptoKeyTypeId, Bytes]>
1755
+ ]>;
1756
+ /**
1757
+ * The next session keys for a validator.
1758
+ **/
1759
+ nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolymeshRuntimeDevelopRuntimeSessionKeys>>, [
1760
+ AccountId32
1761
+ ]>;
1762
+ /**
1763
+ * True if the underlying economic identities or weighting behind the validators
1764
+ * has changed in the queued validator set.
1765
+ **/
1766
+ queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []>;
1767
+ /**
1768
+ * The queued keys for the next session. When the next session begins, these keys
1769
+ * will be used to determine the validator's session keys.
1770
+ **/
1771
+ queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, PolymeshRuntimeDevelopRuntimeSessionKeys]>>>, [
1772
+ ]>;
1773
+ /**
1774
+ * The current set of validators.
1775
+ **/
1776
+ validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []>;
1777
+ };
1778
+ settlement: {
1779
+ /**
1780
+ * Tracks affirmations received for an instruction. (instruction_id, counter_party) -> AffirmationStatus
1781
+ **/
1782
+ affirmsReceived: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: PolymeshPrimitivesIdentityIdPortfolioId | {
1783
+ did?: any;
1784
+ kind?: any;
1785
+ } | string | Uint8Array) => Observable<PolymeshPrimitivesSettlementAffirmationStatus>, [
1786
+ u64,
1787
+ PolymeshPrimitivesIdentityIdPortfolioId
1788
+ ]>;
1789
+ /**
1790
+ * Free-form text about a venue. venue_id -> `VenueDetails`
1791
+ * Only needed for the UI.
1792
+ **/
1793
+ details: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Bytes>, [
1794
+ u64
1795
+ ]>;
1796
+ /**
1797
+ * Number of affirmations pending before instruction is executed. instruction_id -> affirm_pending
1798
+ **/
1799
+ instructionAffirmsPending: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<u64>, [
1800
+ u64
1801
+ ]>;
1802
+ /**
1803
+ * Number of instructions in the system (It's one more than the actual number)
1804
+ **/
1805
+ instructionCounter: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1806
+ /**
1807
+ * Details about an instruction. instruction_id -> instruction_details
1808
+ **/
1809
+ instructionDetails: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesSettlementInstruction>, [
1810
+ u64
1811
+ ]>;
1812
+ /**
1813
+ * Legs under an instruction. (instruction_id, leg_id) -> Leg
1814
+ **/
1815
+ instructionLegs: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesSettlementLeg>>, [
1816
+ u64,
1817
+ u64
1818
+ ]>;
1819
+ /**
1820
+ * Status of a leg under an instruction. (instruction_id, leg_id) -> LegStatus
1821
+ **/
1822
+ instructionLegStatus: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesSettlementLegStatus>, [
1823
+ u64,
1824
+ u64
1825
+ ]>;
1826
+ /**
1827
+ * The status for the mediators affirmation.
1828
+ **/
1829
+ instructionMediatorsAffirmations: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<PolymeshPrimitivesSettlementMediatorAffirmationStatus>, [
1830
+ u64,
1831
+ PolymeshPrimitivesIdentityId
1832
+ ]>;
1833
+ /**
1834
+ * Instruction memo
1835
+ **/
1836
+ instructionMemos: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesMemo>>, [
1837
+ u64
1838
+ ]>;
1839
+ /**
1840
+ * Instruction statuses. instruction_id -> InstructionStatus
1841
+ **/
1842
+ instructionStatuses: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesSettlementInstructionStatus>, [
1843
+ u64
1844
+ ]>;
1845
+ /**
1846
+ * The moment the instruction was moved to the `LockedForExecution` status.
1847
+ **/
1848
+ lockedTimestamp: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u64>>, [
1849
+ u64
1850
+ ]>;
1851
+ /**
1852
+ * Tracks the number of signers each venue has.
1853
+ **/
1854
+ numberOfVenueSigners: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<u32>, [
1855
+ u64
1856
+ ]>;
1857
+ /**
1858
+ * Tracks the affirmation status for offchain legs in a instruction. [`(InstructionId, LegId)`] -> [`AffirmationStatus`]
1859
+ **/
1860
+ offChainAffirmations: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesSettlementAffirmationStatus>, [
1861
+ u64,
1862
+ u64
1863
+ ]>;
1864
+ /**
1865
+ * Tracks redemption of receipts. (signer, receipt_uid) -> receipt_used
1866
+ **/
1867
+ receiptsUsed: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<bool>, [
1868
+ AccountId32,
1869
+ u64
1870
+ ]>;
1871
+ /**
1872
+ * Storage version.
1873
+ **/
1874
+ storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
1875
+ /**
1876
+ * Helps a user track their pending instructions and affirmations (only needed for UI).
1877
+ * (counter_party, instruction_id) -> AffirmationStatus
1878
+ **/
1879
+ userAffirmations: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityIdPortfolioId | {
1880
+ did?: any;
1881
+ kind?: any;
1882
+ } | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesSettlementAffirmationStatus>, [
1883
+ PolymeshPrimitivesIdentityIdPortfolioId,
1884
+ u64
1885
+ ]>;
1886
+ /**
1887
+ * Venues create by an identity.
1888
+ * Only needed for the UI.
1889
+ *
1890
+ * identity -> venue_id -> ()
1891
+ **/
1892
+ userVenues: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Null>, [
1893
+ PolymeshPrimitivesIdentityId,
1894
+ u64
1895
+ ]>;
1896
+ /**
1897
+ * Venues that are allowed to create instructions involving a particular asset. Only used if filtering is enabled.
1898
+ * ([`AssetId`], venue_id) -> allowed
1899
+ **/
1900
+ venueAllowList: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<bool>, [
1901
+ PolymeshPrimitivesAssetAssetId,
1902
+ u64
1903
+ ]>;
1904
+ /**
1905
+ * Number of venues in the system (It's one more than the actual number)
1906
+ **/
1907
+ venueCounter: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1908
+ /**
1909
+ * Tracks if a token has enabled filtering venues that can create instructions involving their token. AssetId -> filtering_enabled
1910
+ **/
1911
+ venueFiltering: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<bool>, [
1912
+ PolymeshPrimitivesAssetAssetId
1913
+ ]>;
1914
+ /**
1915
+ * Info about a venue. venue_id -> venue
1916
+ **/
1917
+ venueInfo: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesSettlementVenue>>, [
1918
+ u64
1919
+ ]>;
1920
+ /**
1921
+ * Instructions under a venue.
1922
+ * Only needed for the UI.
1923
+ *
1924
+ * venue_id -> instruction_id -> ()
1925
+ **/
1926
+ venueInstructions: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Null>, [
1927
+ u64,
1928
+ u64
1929
+ ]>;
1930
+ /**
1931
+ * Signers allowed by the venue. (venue_id, signer) -> bool
1932
+ **/
1933
+ venueSigners: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<bool>, [
1934
+ u64,
1935
+ AccountId32
1936
+ ]>;
1937
+ };
1938
+ staking: {
1939
+ /**
1940
+ * The active era information, it holds index and start.
1941
+ *
1942
+ * The active era is the era being currently rewarded. Validator set of this era must be
1943
+ * equal to [`SessionInterface::validators`].
1944
+ **/
1945
+ activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []>;
1946
+ /**
1947
+ * Map from all locked "stash" accounts to the controller account.
1948
+ *
1949
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1950
+ **/
1951
+ bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [
1952
+ AccountId32
1953
+ ]>;
1954
+ /**
1955
+ * A mapping from still-bonded eras to the first session index of that era.
1956
+ *
1957
+ * Must contains information for eras for the range:
1958
+ * `[active_era - bounding_duration; active_era]`
1959
+ **/
1960
+ bondedEras: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []>;
1961
+ /**
1962
+ * The amount of currency given to reporters of a slash event which was
1963
+ * canceled by extraordinary circumstances (e.g. governance).
1964
+ **/
1965
+ canceledSlashPayout: AugmentedQuery<ApiType, () => Observable<u128>, []>;
1966
+ /**
1967
+ * The threshold for when users can start calling `chill_other` for other validators /
1968
+ * nominators. The threshold is compared to the actual number of validators / nominators
1969
+ * (`CountFor*`) in the system compared to the configured max (`Max*Count`).
1970
+ **/
1971
+ chillThreshold: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []>;
1972
+ /**
1973
+ * Counter for the related counted storage map
1974
+ **/
1975
+ counterForNominators: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1976
+ /**
1977
+ * Counter for the related counted storage map
1978
+ **/
1979
+ counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1980
+ /**
1981
+ * The current era index.
1982
+ *
1983
+ * This is the latest planned era, depending on how the Session pallet queues the validator
1984
+ * set, it might be active or not.
1985
+ **/
1986
+ currentEra: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
1987
+ /**
1988
+ * The last planned session scheduled by the session pallet.
1989
+ *
1990
+ * This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
1991
+ **/
1992
+ currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1993
+ /**
1994
+ * Rewards for the last `HISTORY_DEPTH` eras.
1995
+ * If reward hasn't been set or has been removed then 0 reward is returned.
1996
+ **/
1997
+ erasRewardPoints: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletStakingEraRewardPoints>, [
1998
+ u32
1999
+ ]>;
2000
+ /**
2001
+ * Exposure of validator at era.
2002
+ *
2003
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
2004
+ *
2005
+ * Is it removed after `HISTORY_DEPTH` eras.
2006
+ * If stakers hasn't been set or has been removed then empty exposure is returned.
2007
+ **/
2008
+ erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [
2009
+ u32,
2010
+ AccountId32
2011
+ ]>;
2012
+ /**
2013
+ * Clipped Exposure of validator at era.
2014
+ *
2015
+ * This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
2016
+ * `T::MaxNominatorRewardedPerValidator` biggest stakers.
2017
+ * (Note: the field `total` and `own` of the exposure remains unchanged).
2018
+ * This is used to limit the i/o cost for the nominator payout.
2019
+ *
2020
+ * This is keyed fist by the era index to allow bulk deletion and then the stash account.
2021
+ *
2022
+ * Is it removed after `HISTORY_DEPTH` eras.
2023
+ * If stakers hasn't been set or has been removed then empty exposure is returned.
2024
+ **/
2025
+ erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [
2026
+ u32,
2027
+ AccountId32
2028
+ ]>;
2029
+ /**
2030
+ * The session index at which the era start for the last `HISTORY_DEPTH` eras.
2031
+ *
2032
+ * Note: This tracks the starting session (i.e. session index when era start being active)
2033
+ * for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
2034
+ **/
2035
+ erasStartSessionIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [
2036
+ u32
2037
+ ]>;
2038
+ /**
2039
+ * The total amount staked for the last `HISTORY_DEPTH` eras.
2040
+ * If total hasn't been set or has been removed then 0 stake is returned.
2041
+ **/
2042
+ erasTotalStake: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [
2043
+ u32
2044
+ ]>;
2045
+ /**
2046
+ * Similar to `ErasStakers`, this holds the preferences of validators.
2047
+ *
2048
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
2049
+ *
2050
+ * Is it removed after `HISTORY_DEPTH` eras.
2051
+ **/
2052
+ erasValidatorPrefs: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [
2053
+ u32,
2054
+ AccountId32
2055
+ ]>;
2056
+ /**
2057
+ * The total validator era payout for the last `HISTORY_DEPTH` eras.
2058
+ *
2059
+ * Eras that haven't finished yet or has been removed doesn't have reward.
2060
+ **/
2061
+ erasValidatorReward: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u128>>, [
2062
+ u32
2063
+ ]>;
2064
+ /**
2065
+ * Mode of era forcing.
2066
+ **/
2067
+ forceEra: AugmentedQuery<ApiType, () => Observable<PalletStakingForcing>, []>;
2068
+ /**
2069
+ * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
2070
+ * easy to initialize and the performance hit is minimal (we expect no more than four
2071
+ * invulnerables) and restricted to testnets.
2072
+ **/
2073
+ invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []>;
2074
+ /**
2075
+ * Map from all (unlocked) "controller" accounts to the info regarding the staking.
2076
+ **/
2077
+ ledger: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingStakingLedger>>, [
2078
+ AccountId32
2079
+ ]>;
2080
+ /**
2081
+ * The maximum nominator count before we stop allowing new validators to join.
2082
+ *
2083
+ * When this value is not set, no limits are enforced.
2084
+ **/
2085
+ maxNominatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
2086
+ /**
2087
+ * The maximum validator count before we stop allowing new validators to join.
2088
+ *
2089
+ * When this value is not set, no limits are enforced.
2090
+ **/
2091
+ maxValidatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
2092
+ /**
2093
+ * The minimum amount of commission that validators can set.
2094
+ *
2095
+ * If set to `0`, no limit exists.
2096
+ **/
2097
+ minCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []>;
2098
+ /**
2099
+ * The minimum active nominator stake of the last successful election.
2100
+ **/
2101
+ minimumActiveStake: AugmentedQuery<ApiType, () => Observable<u128>, []>;
2102
+ /**
2103
+ * Minimum number of staking participants before emergency conditions are imposed.
2104
+ **/
2105
+ minimumValidatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
2106
+ /**
2107
+ * The minimum active bond to become and maintain the role of a nominator.
2108
+ **/
2109
+ minNominatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []>;
2110
+ /**
2111
+ * The minimum active bond to become and maintain the role of a validator.
2112
+ **/
2113
+ minValidatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []>;
2114
+ /**
2115
+ * The map from nominator stash key to their nomination preferences, namely the validators that
2116
+ * they wish to support.
2117
+ *
2118
+ * Note that the keys of this storage map might become non-decodable in case the
2119
+ * [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators
2120
+ * are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
2121
+ * indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
2122
+ * nominators will effectively not-exist, until they re-submit their preferences such that it
2123
+ * is within the bounds of the newly set `Config::MaxNominations`.
2124
+ *
2125
+ * This implies that `::iter_keys().count()` and `::iter().count()` might return different
2126
+ * values for this map. Moreover, the main `::count()` is aligned with the former, namely the
2127
+ * number of keys that exist.
2128
+ *
2129
+ * Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
2130
+ * [`Call::chill_other`] dispatchable by anyone.
2131
+ *
2132
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
2133
+ **/
2134
+ nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [
2135
+ AccountId32
2136
+ ]>;
2137
+ /**
2138
+ * All slashing events on nominators, mapped by era to the highest slash value of the era.
2139
+ **/
2140
+ nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [
2141
+ u32,
2142
+ AccountId32
2143
+ ]>;
2144
+ /**
2145
+ * Indices of validators that have offended in the active era and whether they are currently
2146
+ * disabled.
2147
+ *
2148
+ * This value should be a superset of disabled validators since not all offences lead to the
2149
+ * validator being disabled (if there was no slash). This is needed to track the percentage of
2150
+ * validators that have offended in the current era, ensuring a new era is forced if
2151
+ * `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
2152
+ * whether a given validator has previously offended using binary search. It gets cleared when
2153
+ * the era ends.
2154
+ **/
2155
+ offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []>;
2156
+ /**
2157
+ * Where the reward payment should be made. Keyed by stash.
2158
+ *
2159
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
2160
+ **/
2161
+ payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [
2162
+ AccountId32
2163
+ ]>;
2164
+ /**
2165
+ * Entities that are allowed to run operator/validator nodes.
2166
+ **/
2167
+ permissionedIdentity: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<Option<PalletStakingPermissionedIdentityPrefs>>, [
2168
+ PolymeshPrimitivesIdentityId
2169
+ ]>;
2170
+ polymeshStorageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
2171
+ /**
2172
+ * Slashing switch for validators & Nominators.
2173
+ **/
2174
+ slashingAllowedFor: AugmentedQuery<ApiType, () => Observable<PalletStakingSlashingSwitch>, [
2175
+ ]>;
2176
+ /**
2177
+ * Slashing spans for stash accounts.
2178
+ **/
2179
+ slashingSpans: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingSlashingSlashingSpans>>, [
2180
+ AccountId32
2181
+ ]>;
2182
+ /**
2183
+ * The percentage of the slash that is distributed to reporters.
2184
+ *
2185
+ * The rest of the slashed value is handled by the `Slash`.
2186
+ **/
2187
+ slashRewardFraction: AugmentedQuery<ApiType, () => Observable<Perbill>, []>;
2188
+ /**
2189
+ * Records information about the maximum slash of a stash within a slashing span,
2190
+ * as well as how much reward has been paid out.
2191
+ **/
2192
+ spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PalletStakingSlashingSpanRecord>, [
2193
+ ITuple<[AccountId32, u32]>
2194
+ ]>;
2195
+ /**
2196
+ * All unapplied slashes that are queued for later.
2197
+ **/
2198
+ unappliedSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStakingUnappliedSlash>>, [
2199
+ u32
2200
+ ]>;
2201
+ /**
2202
+ * Allows flexibility in commission. Every validator has commission that should be in the range [0, Cap].
2203
+ **/
2204
+ validatorCommissionCap: AugmentedQuery<ApiType, () => Observable<Perbill>, []>;
2205
+ /**
2206
+ * The ideal number of active validators.
2207
+ **/
2208
+ validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
2209
+ /**
2210
+ * The map from (wannabe) validator stash key to the preferences of that validator.
2211
+ *
2212
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
2213
+ **/
2214
+ validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [
2215
+ AccountId32
2216
+ ]>;
2217
+ /**
2218
+ * All slashing events on validators, mapped by era to the highest slash proportion
2219
+ * and slash value of the era.
2220
+ **/
2221
+ validatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Perbill, u128]>>>, [
2222
+ u32,
2223
+ AccountId32
2224
+ ]>;
2225
+ };
2226
+ statistics: {
2227
+ /**
2228
+ * Maps a set of [`StatType`] for each [`AssetId`].
2229
+ **/
2230
+ activeAssetStats: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<BTreeSet<PolymeshPrimitivesStatisticsStatType>>, [
2231
+ PolymeshPrimitivesAssetAssetId
2232
+ ]>;
2233
+ /**
2234
+ * Asset stats.
2235
+ **/
2236
+ assetStats: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesStatisticsStat1stKey | {
2237
+ assetId?: any;
2238
+ statType?: any;
2239
+ } | string | Uint8Array, arg2: PolymeshPrimitivesStatisticsStat2ndKey | {
2240
+ NoClaimStat: any;
2241
+ } | {
2242
+ Claim: any;
2243
+ } | string | Uint8Array) => Observable<u128>, [
2244
+ PolymeshPrimitivesStatisticsStat1stKey,
2245
+ PolymeshPrimitivesStatisticsStat2ndKey
2246
+ ]>;
2247
+ /**
2248
+ * The [`AssetTransferCompliance`] for each [`AssetId`].
2249
+ **/
2250
+ assetTransferCompliances: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<PolymeshPrimitivesTransferComplianceAssetTransferCompliance>, [
2251
+ PolymeshPrimitivesAssetAssetId
2252
+ ]>;
2253
+ /**
2254
+ * Storage migration version.
2255
+ **/
2256
+ storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
2257
+ /**
2258
+ * Entities exempt from a Transfer Compliance rule.
2259
+ **/
2260
+ transferConditionExemptEntities: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesTransferComplianceTransferConditionExemptKey | {
2261
+ assetId?: any;
2262
+ op?: any;
2263
+ claimType?: any;
2264
+ } | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<bool>, [
2265
+ PolymeshPrimitivesTransferComplianceTransferConditionExemptKey,
2266
+ PolymeshPrimitivesIdentityId
2267
+ ]>;
2268
+ };
2269
+ sto: {
2270
+ /**
2271
+ * Total fundraisers created for a token.
2272
+ **/
2273
+ fundraiserCount: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u64>, [
2274
+ PolymeshPrimitivesAssetAssetId
2275
+ ]>;
2276
+ /**
2277
+ * Name for the Fundraiser. Only used offchain.
2278
+ * (AssetId, fundraiser_id) -> Fundraiser name
2279
+ **/
2280
+ fundraiserNames: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [
2281
+ PolymeshPrimitivesAssetAssetId,
2282
+ u64
2283
+ ]>;
2284
+ /**
2285
+ * If the fundraiser supports off-chain funding payments using receipts.
2286
+ **/
2287
+ fundraiserOffchainAsset: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesTicker>>, [
2288
+ PolymeshPrimitivesAssetAssetId,
2289
+ u64
2290
+ ]>;
2291
+ /**
2292
+ * All fundraisers that are currently running.
2293
+ * (AssetId, fundraiser_id) -> Fundraiser
2294
+ **/
2295
+ fundraisers: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletStoFundraiser>>, [
2296
+ PolymeshPrimitivesAssetAssetId,
2297
+ u64
2298
+ ]>;
2299
+ /**
2300
+ * Storage migration version.
2301
+ **/
2302
+ storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
2303
+ };
2304
+ sudo: {
2305
+ /**
2306
+ * The `AccountId` of the sudo key.
2307
+ **/
2308
+ key: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
2309
+ };
2310
+ system: {
2311
+ /**
2312
+ * The full account information for a particular account ID.
2313
+ **/
2314
+ account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<FrameSystemAccountInfo>, [
2315
+ AccountId32
2316
+ ]>;
2317
+ /**
2318
+ * Total length (in bytes) for all extrinsics put together, for the current block.
2319
+ **/
2320
+ allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
2321
+ /**
2322
+ * Map of block numbers to block hashes.
2323
+ **/
2324
+ blockHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>, [
2325
+ u32
2326
+ ]>;
2327
+ /**
2328
+ * The current weight for the block.
2329
+ **/
2330
+ blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportDispatchPerDispatchClassWeight>, [
2331
+ ]>;
2332
+ /**
2333
+ * Digest of the current block, also part of the block header.
2334
+ **/
2335
+ digest: AugmentedQuery<ApiType, () => Observable<SpRuntimeDigest>, []>;
2336
+ /**
2337
+ * The number of events in the `Events<T>` list.
2338
+ **/
2339
+ eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
2340
+ /**
2341
+ * Events deposited for the current block.
2342
+ *
2343
+ * NOTE: The item is unbound and should therefore never be read on chain.
2344
+ * It could otherwise inflate the PoV size of a block.
2345
+ *
2346
+ * Events have a large in-memory size. Box the events to not go out-of-memory
2347
+ * just in case someone still reads them from within the runtime.
2348
+ **/
2349
+ events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []>;
2350
+ /**
2351
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
2352
+ * of events in the `<Events<T>>` list.
2353
+ *
2354
+ * All topic vectors have deterministic storage locations depending on the topic. This
2355
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
2356
+ * in case of changes fetch the list of events of interest.
2357
+ *
2358
+ * The value has the type `(T::BlockNumber, EventIndex)` because if we used only just
2359
+ * the `EventIndex` then in case if the topic has the same contents on the next block
2360
+ * no notification will be triggered thus the event might be lost.
2361
+ **/
2362
+ eventTopics: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u32]>>>, [
2363
+ H256
2364
+ ]>;
2365
+ /**
2366
+ * The execution phase of the block.
2367
+ **/
2368
+ executionPhase: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemPhase>>, []>;
2369
+ /**
2370
+ * Total extrinsics count for the current block.
2371
+ **/
2372
+ extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
2373
+ /**
2374
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
2375
+ **/
2376
+ extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [
2377
+ u32
2378
+ ]>;
2379
+ /**
2380
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
2381
+ **/
2382
+ lastRuntimeUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemLastRuntimeUpgradeInfo>>, [
2383
+ ]>;
2384
+ /**
2385
+ * The current block number being processed. Set by `execute_block`.
2386
+ **/
2387
+ number: AugmentedQuery<ApiType, () => Observable<u32>, []>;
2388
+ /**
2389
+ * Hash of the previous block.
2390
+ **/
2391
+ parentHash: AugmentedQuery<ApiType, () => Observable<H256>, []>;
2392
+ /**
2393
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
2394
+ * (default) if not.
2395
+ **/
2396
+ upgradedToTripleRefCount: AugmentedQuery<ApiType, () => Observable<bool>, []>;
2397
+ /**
2398
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
2399
+ **/
2400
+ upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []>;
2401
+ };
2402
+ technicalCommittee: {
2403
+ /**
2404
+ * Time after which a proposal will expire.
2405
+ **/
2406
+ expiresAfter: AugmentedQuery<ApiType, () => Observable<PolymeshPrimitivesMaybeBlock>, []>;
2407
+ /**
2408
+ * The current members of the committee.
2409
+ **/
2410
+ members: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesIdentityId>>, []>;
2411
+ /**
2412
+ * Proposals so far.
2413
+ **/
2414
+ proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
2415
+ /**
2416
+ * Actual proposal for a given hash.
2417
+ **/
2418
+ proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [
2419
+ H256
2420
+ ]>;
2421
+ /**
2422
+ * The hashes of the active proposals.
2423
+ **/
2424
+ proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []>;
2425
+ /**
2426
+ * Release cooridinator.
2427
+ **/
2428
+ releaseCoordinator: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []>;
2429
+ /**
2430
+ * Vote threshold for an approval.
2431
+ **/
2432
+ voteThreshold: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []>;
2433
+ /**
2434
+ * PolymeshVotes on a given proposal, if it is ongoing.
2435
+ **/
2436
+ voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCommitteePolymeshVotes>>, [
2437
+ H256
2438
+ ]>;
2439
+ };
2440
+ technicalCommitteeMembership: {
2441
+ /**
2442
+ * The current "active" membership, stored as an ordered Vec.
2443
+ **/
2444
+ activeMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesIdentityId>>, [
2445
+ ]>;
2446
+ /**
2447
+ * Limit of how many "active" members there can be.
2448
+ **/
2449
+ activeMembersLimit: AugmentedQuery<ApiType, () => Observable<u32>, []>;
2450
+ /**
2451
+ * The current "inactive" membership, stored as an ordered Vec.
2452
+ **/
2453
+ inactiveMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesGroupInactiveMember>>, [
2454
+ ]>;
2455
+ };
2456
+ timestamp: {
2457
+ /**
2458
+ * Did the timestamp get updated in this block?
2459
+ **/
2460
+ didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []>;
2461
+ /**
2462
+ * Current time for the current block.
2463
+ **/
2464
+ now: AugmentedQuery<ApiType, () => Observable<u64>, []>;
2465
+ };
2466
+ transactionPayment: {
2467
+ nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []>;
2468
+ storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, [
2469
+ ]>;
2470
+ };
2471
+ upgradeCommittee: {
2472
+ /**
2473
+ * Time after which a proposal will expire.
2474
+ **/
2475
+ expiresAfter: AugmentedQuery<ApiType, () => Observable<PolymeshPrimitivesMaybeBlock>, []>;
2476
+ /**
2477
+ * The current members of the committee.
2478
+ **/
2479
+ members: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesIdentityId>>, []>;
2480
+ /**
2481
+ * Proposals so far.
2482
+ **/
2483
+ proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
2484
+ /**
2485
+ * Actual proposal for a given hash.
2486
+ **/
2487
+ proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [
2488
+ H256
2489
+ ]>;
2490
+ /**
2491
+ * The hashes of the active proposals.
2492
+ **/
2493
+ proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []>;
2494
+ /**
2495
+ * Release cooridinator.
2496
+ **/
2497
+ releaseCoordinator: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []>;
2498
+ /**
2499
+ * Vote threshold for an approval.
2500
+ **/
2501
+ voteThreshold: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []>;
2502
+ /**
2503
+ * PolymeshVotes on a given proposal, if it is ongoing.
2504
+ **/
2505
+ voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCommitteePolymeshVotes>>, [
2506
+ H256
2507
+ ]>;
2508
+ };
2509
+ upgradeCommitteeMembership: {
2510
+ /**
2511
+ * The current "active" membership, stored as an ordered Vec.
2512
+ **/
2513
+ activeMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesIdentityId>>, [
2514
+ ]>;
2515
+ /**
2516
+ * Limit of how many "active" members there can be.
2517
+ **/
2518
+ activeMembersLimit: AugmentedQuery<ApiType, () => Observable<u32>, []>;
2519
+ /**
2520
+ * The current "inactive" membership, stored as an ordered Vec.
2521
+ **/
2522
+ inactiveMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesGroupInactiveMember>>, [
2523
+ ]>;
2524
+ };
2525
+ utility: {
2526
+ /**
2527
+ * Nonce for `relay_tx`.
2528
+ * POLYMESH: added.
2529
+ **/
2530
+ nonces: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u64>, [
2531
+ AccountId32
2532
+ ]>;
2533
+ };
2534
+ }
2535
+ }
2536
+ //# sourceMappingURL=augment-api-query.d.ts.map