@polkadot/api-augment 10.12.4 → 10.13.1
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.
- package/cjs/packageInfo.js +1 -1
- package/kusama/runtime.d.ts +166 -3
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/polkadot/runtime.d.ts +23 -3
- package/substrate/consts.d.ts +37 -12
- package/substrate/errors.d.ts +30 -4
- package/substrate/events.d.ts +71 -4
- package/substrate/query.d.ts +31 -4
- package/substrate/runtime.d.ts +74 -6
- package/substrate/tx.d.ts +5488 -574
package/substrate/query.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
|
|
|
4
4
|
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAllowedRenewalId, PalletBrokerAllowedRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
|
7
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAllowedRenewalId, PalletBrokerAllowedRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
|
8
8
|
import type { Observable } from '@polkadot/types/types';
|
|
9
9
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
10
10
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -53,7 +53,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
53
53
|
**/
|
|
54
54
|
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
55
55
|
/**
|
|
56
|
-
* The prime member that helps determine the default vote behavior in case of
|
|
56
|
+
* The prime member that helps determine the default vote behavior in case of abstentions.
|
|
57
57
|
**/
|
|
58
58
|
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
59
59
|
/**
|
|
@@ -317,10 +317,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
317
317
|
/**
|
|
318
318
|
* Any liquidity locks on some account balances.
|
|
319
319
|
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
320
|
+
*
|
|
321
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
320
322
|
**/
|
|
321
323
|
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
322
324
|
/**
|
|
323
325
|
* Named reserves on some account balances.
|
|
326
|
+
*
|
|
327
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
324
328
|
**/
|
|
325
329
|
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
326
330
|
/**
|
|
@@ -590,7 +594,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
590
594
|
**/
|
|
591
595
|
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
592
596
|
/**
|
|
593
|
-
* The prime member that helps determine the default vote behavior in case of
|
|
597
|
+
* The prime member that helps determine the default vote behavior in case of abstentions.
|
|
594
598
|
**/
|
|
595
599
|
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
596
600
|
/**
|
|
@@ -1151,6 +1155,25 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1151
1155
|
**/
|
|
1152
1156
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1153
1157
|
};
|
|
1158
|
+
multiBlockMigrations: {
|
|
1159
|
+
/**
|
|
1160
|
+
* The currently active migration to run and its cursor.
|
|
1161
|
+
*
|
|
1162
|
+
* `None` indicates that no migration is running.
|
|
1163
|
+
**/
|
|
1164
|
+
cursor: AugmentedQuery<ApiType, () => Observable<Option<PalletMigrationsMigrationCursor>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1165
|
+
/**
|
|
1166
|
+
* Set of all successfully executed migrations.
|
|
1167
|
+
*
|
|
1168
|
+
* This is used as blacklist, to not re-execute migrations that have not been removed from the
|
|
1169
|
+
* codebase yet. Governance can regularly clear this out via `clear_historic`.
|
|
1170
|
+
**/
|
|
1171
|
+
historic: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<Null>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
|
1172
|
+
/**
|
|
1173
|
+
* Generic query
|
|
1174
|
+
**/
|
|
1175
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1176
|
+
};
|
|
1154
1177
|
multisig: {
|
|
1155
1178
|
/**
|
|
1156
1179
|
* The set of open multisig operations.
|
|
@@ -2204,6 +2227,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2204
2227
|
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
2205
2228
|
**/
|
|
2206
2229
|
extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
2230
|
+
/**
|
|
2231
|
+
* Whether all inherents have been applied.
|
|
2232
|
+
**/
|
|
2233
|
+
inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2207
2234
|
/**
|
|
2208
2235
|
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
2209
2236
|
**/
|
|
@@ -2250,7 +2277,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2250
2277
|
**/
|
|
2251
2278
|
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2252
2279
|
/**
|
|
2253
|
-
* The prime member that helps determine the default vote behavior in case of
|
|
2280
|
+
* The prime member that helps determine the default vote behavior in case of abstentions.
|
|
2254
2281
|
**/
|
|
2255
2282
|
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2256
2283
|
/**
|
package/substrate/runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/calls';
|
|
2
2
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
|
3
|
-
import type { Bytes, Null, Option, Result, Vec, bool, u128, u32 } from '@polkadot/types-codec';
|
|
3
|
+
import type { Bytes, Null, Option, Result, U64, Vec, bool, u128, u32 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
|
|
6
6
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
|
@@ -10,17 +10,20 @@ import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
|
10
10
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
|
11
11
|
import type { CodeSource, CodeUploadResult, ContractExecResult, ContractInstantiateResult } from '@polkadot/types/interfaces/contracts';
|
|
12
12
|
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|
13
|
+
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
|
|
13
14
|
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
|
14
15
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
|
16
|
+
import type { Mixnode, MixnodesErr, SessionStatus } from '@polkadot/types/interfaces/mixnet';
|
|
15
17
|
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
|
16
18
|
import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
|
|
17
19
|
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
|
18
20
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
|
19
|
-
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
|
21
|
+
import type { AccountId, Balance, Block, BlockNumber, Call, ExtrinsicInclusionMode, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
|
20
22
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
23
|
+
import type { StatementStoreInvalidStatement, StatementStoreStatementSource, StatementStoreValidStatement } from '@polkadot/types/interfaces/statement';
|
|
21
24
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
|
22
25
|
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
|
23
|
-
import type { StagingXcmV3MultiLocation } from '@polkadot/types/lookup';
|
|
26
|
+
import type { SpStatementStoreStatement, StagingXcmV3MultiLocation } from '@polkadot/types/lookup';
|
|
24
27
|
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
|
25
28
|
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
|
26
29
|
export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
|
|
@@ -203,7 +206,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
203
206
|
**/
|
|
204
207
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
205
208
|
};
|
|
206
|
-
/** 0xdf6acb689907609b/
|
|
209
|
+
/** 0xdf6acb689907609b/5 */
|
|
207
210
|
core: {
|
|
208
211
|
/**
|
|
209
212
|
* Execute the given block.
|
|
@@ -221,7 +224,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
221
224
|
stateRoot?: any;
|
|
222
225
|
extrinsicsRoot?: any;
|
|
223
226
|
digest?: any;
|
|
224
|
-
} | string | Uint8Array) => Observable<
|
|
227
|
+
} | string | Uint8Array) => Observable<ExtrinsicInclusionMode>>;
|
|
225
228
|
/**
|
|
226
229
|
* Returns the version of the runtime.
|
|
227
230
|
**/
|
|
@@ -231,6 +234,21 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
231
234
|
**/
|
|
232
235
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
233
236
|
};
|
|
237
|
+
/** 0xfbc577b9d747efd6/1 */
|
|
238
|
+
genesisBuilder: {
|
|
239
|
+
/**
|
|
240
|
+
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
|
241
|
+
**/
|
|
242
|
+
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
|
|
243
|
+
/**
|
|
244
|
+
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
|
|
245
|
+
**/
|
|
246
|
+
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
|
|
247
|
+
/**
|
|
248
|
+
* Generic call
|
|
249
|
+
**/
|
|
250
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
251
|
+
};
|
|
234
252
|
/** 0xed99c5acb25eedf5/3 */
|
|
235
253
|
grandpaApi: {
|
|
236
254
|
/**
|
|
@@ -276,16 +294,47 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
276
294
|
**/
|
|
277
295
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
278
296
|
};
|
|
297
|
+
/** 0x6fd7c327202e4a8d/1 */
|
|
298
|
+
mixnetApi: {
|
|
299
|
+
/**
|
|
300
|
+
* Get the index and phase of the current session.
|
|
301
|
+
**/
|
|
302
|
+
currentMixnodes: AugmentedCall<ApiType, () => Observable<Result<Mixnode, MixnodesErr>>>;
|
|
303
|
+
/**
|
|
304
|
+
* Try to register a mixnode for the next session.
|
|
305
|
+
**/
|
|
306
|
+
maybeRegister: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array, mixnode: Mixnode | {
|
|
307
|
+
externalAddresses?: any;
|
|
308
|
+
kxPublic?: any;
|
|
309
|
+
peerId?: any;
|
|
310
|
+
} | string | Uint8Array) => Observable<bool>>;
|
|
311
|
+
/**
|
|
312
|
+
* Get the index and phase of the current session.
|
|
313
|
+
**/
|
|
314
|
+
prevMixnodes: AugmentedCall<ApiType, () => Observable<Result<Mixnode, MixnodesErr>>>;
|
|
315
|
+
/**
|
|
316
|
+
* Get the index and phase of the current session.
|
|
317
|
+
**/
|
|
318
|
+
sessionStatus: AugmentedCall<ApiType, () => Observable<SessionStatus>>;
|
|
319
|
+
/**
|
|
320
|
+
* Generic call
|
|
321
|
+
**/
|
|
322
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
323
|
+
};
|
|
279
324
|
/** 0x91d5df18b0d2cf58/2 */
|
|
280
325
|
mmrApi: {
|
|
281
326
|
/**
|
|
282
327
|
* Generate MMR proof for the given block numbers.
|
|
283
328
|
**/
|
|
284
329
|
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
|
330
|
+
/**
|
|
331
|
+
* Return the number of MMR blocks in the chain.
|
|
332
|
+
**/
|
|
333
|
+
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
|
|
285
334
|
/**
|
|
286
335
|
* Return the on-chain MMR root hash.
|
|
287
336
|
**/
|
|
288
|
-
|
|
337
|
+
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
|
289
338
|
/**
|
|
290
339
|
* Verify MMR proof against on-chain MMR.
|
|
291
340
|
**/
|
|
@@ -463,5 +512,24 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
463
512
|
**/
|
|
464
513
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
465
514
|
};
|
|
515
|
+
/** 0xbe9fb0c91a8046cf/1 */
|
|
516
|
+
validateStatement: {
|
|
517
|
+
/**
|
|
518
|
+
* Validate the statement.
|
|
519
|
+
**/
|
|
520
|
+
valdateStatement: AugmentedCall<ApiType, (source: StatementStoreStatementSource | 'Chain' | 'Network' | 'Local' | number | Uint8Array, statement: SpStatementStoreStatement | {
|
|
521
|
+
proof?: any;
|
|
522
|
+
decryptionKey?: any;
|
|
523
|
+
channel?: any;
|
|
524
|
+
priority?: any;
|
|
525
|
+
numTopics?: any;
|
|
526
|
+
topics?: any;
|
|
527
|
+
data?: any;
|
|
528
|
+
} | string | Uint8Array) => Observable<Result<StatementStoreValidStatement, StatementStoreInvalidStatement>>>;
|
|
529
|
+
/**
|
|
530
|
+
* Generic call
|
|
531
|
+
**/
|
|
532
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
533
|
+
};
|
|
466
534
|
}
|
|
467
535
|
}
|