@polkadot/api-augment 10.12.3 → 10.12.6
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 +22 -2
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/polkadot/runtime.d.ts +22 -2
- package/substrate/consts.d.ts +21 -1
- package/substrate/errors.d.ts +14 -0
- package/substrate/events.d.ts +67 -0
- package/substrate/query.d.ts +24 -1
- package/substrate/runtime.d.ts +74 -6
- package/substrate/tx.d.ts +5475 -574
package/cjs/packageInfo.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packageInfo = void 0;
|
|
4
|
-
exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.12.
|
|
4
|
+
exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.12.6' };
|
package/kusama/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, u32 } from '@polkadot/types-codec';
|
|
3
|
+
import type { Bytes, Null, Option, Result, U64, Vec, u32 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
|
6
6
|
import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
|
@@ -8,6 +8,7 @@ import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfa
|
|
|
8
8
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
9
9
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
|
10
10
|
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|
11
|
+
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
|
|
11
12
|
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
|
12
13
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
|
13
14
|
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
|
@@ -179,6 +180,21 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
179
180
|
**/
|
|
180
181
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
181
182
|
};
|
|
183
|
+
/** 0xfbc577b9d747efd6/1 */
|
|
184
|
+
genesisBuilder: {
|
|
185
|
+
/**
|
|
186
|
+
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
|
187
|
+
**/
|
|
188
|
+
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
|
|
189
|
+
/**
|
|
190
|
+
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
|
|
191
|
+
**/
|
|
192
|
+
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
|
|
193
|
+
/**
|
|
194
|
+
* Generic call
|
|
195
|
+
**/
|
|
196
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
197
|
+
};
|
|
182
198
|
/** 0xed99c5acb25eedf5/3 */
|
|
183
199
|
grandpaApi: {
|
|
184
200
|
/**
|
|
@@ -230,10 +246,14 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
230
246
|
* Generate MMR proof for the given block numbers.
|
|
231
247
|
**/
|
|
232
248
|
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
|
249
|
+
/**
|
|
250
|
+
* Return the number of MMR blocks in the chain.
|
|
251
|
+
**/
|
|
252
|
+
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
|
|
233
253
|
/**
|
|
234
254
|
* Return the on-chain MMR root hash.
|
|
235
255
|
**/
|
|
236
|
-
|
|
256
|
+
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
|
237
257
|
/**
|
|
238
258
|
* Verify MMR proof against on-chain MMR.
|
|
239
259
|
**/
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"./cjs/packageDetect.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "10.12.
|
|
21
|
+
"version": "10.12.6",
|
|
22
22
|
"main": "./cjs/index.js",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts",
|
|
@@ -211,11 +211,11 @@
|
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
"dependencies": {
|
|
214
|
-
"@polkadot/api-base": "10.12.
|
|
215
|
-
"@polkadot/rpc-augment": "10.12.
|
|
216
|
-
"@polkadot/types": "10.12.
|
|
217
|
-
"@polkadot/types-augment": "10.12.
|
|
218
|
-
"@polkadot/types-codec": "10.12.
|
|
214
|
+
"@polkadot/api-base": "10.12.6",
|
|
215
|
+
"@polkadot/rpc-augment": "10.12.6",
|
|
216
|
+
"@polkadot/types": "10.12.6",
|
|
217
|
+
"@polkadot/types-augment": "10.12.6",
|
|
218
|
+
"@polkadot/types-codec": "10.12.6",
|
|
219
219
|
"@polkadot/util": "^12.6.2",
|
|
220
220
|
"tslib": "^2.6.2"
|
|
221
221
|
}
|
package/packageInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.12.
|
|
1
|
+
export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.12.6' };
|
package/polkadot/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, u32 } from '@polkadot/types-codec';
|
|
3
|
+
import type { Bytes, Null, Option, Result, U64, Vec, bool, u32 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
|
6
6
|
import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
|
@@ -8,6 +8,7 @@ import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfa
|
|
|
8
8
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
9
9
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
|
10
10
|
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|
11
|
+
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
|
|
11
12
|
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
|
12
13
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
|
13
14
|
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
|
@@ -181,6 +182,21 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
181
182
|
**/
|
|
182
183
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
183
184
|
};
|
|
185
|
+
/** 0xfbc577b9d747efd6/1 */
|
|
186
|
+
genesisBuilder: {
|
|
187
|
+
/**
|
|
188
|
+
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
|
189
|
+
**/
|
|
190
|
+
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
|
|
191
|
+
/**
|
|
192
|
+
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
|
|
193
|
+
**/
|
|
194
|
+
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
|
|
195
|
+
/**
|
|
196
|
+
* Generic call
|
|
197
|
+
**/
|
|
198
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
199
|
+
};
|
|
184
200
|
/** 0xed99c5acb25eedf5/3 */
|
|
185
201
|
grandpaApi: {
|
|
186
202
|
/**
|
|
@@ -232,10 +248,14 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
232
248
|
* Generate MMR proof for the given block numbers.
|
|
233
249
|
**/
|
|
234
250
|
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
|
251
|
+
/**
|
|
252
|
+
* Return the number of MMR blocks in the chain.
|
|
253
|
+
**/
|
|
254
|
+
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
|
|
235
255
|
/**
|
|
236
256
|
* Return the on-chain MMR root hash.
|
|
237
257
|
**/
|
|
238
|
-
|
|
258
|
+
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
|
239
259
|
/**
|
|
240
260
|
* Verify MMR proof against on-chain MMR.
|
|
241
261
|
**/
|
package/substrate/consts.d.ts
CHANGED
|
@@ -805,6 +805,26 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
805
805
|
**/
|
|
806
806
|
[key: string]: Codec;
|
|
807
807
|
};
|
|
808
|
+
multiBlockMigrations: {
|
|
809
|
+
/**
|
|
810
|
+
* The maximal length of an encoded cursor.
|
|
811
|
+
*
|
|
812
|
+
* A good default needs to selected such that no migration will ever have a cursor with MEL
|
|
813
|
+
* above this limit. This is statically checked in `integrity_test`.
|
|
814
|
+
**/
|
|
815
|
+
cursorMaxLen: u32 & AugmentedConst<ApiType>;
|
|
816
|
+
/**
|
|
817
|
+
* The maximal length of an encoded identifier.
|
|
818
|
+
*
|
|
819
|
+
* A good default needs to selected such that no migration will ever have an identifier
|
|
820
|
+
* with MEL above this limit. This is statically checked in `integrity_test`.
|
|
821
|
+
**/
|
|
822
|
+
identifierMaxLen: u32 & AugmentedConst<ApiType>;
|
|
823
|
+
/**
|
|
824
|
+
* Generic const
|
|
825
|
+
**/
|
|
826
|
+
[key: string]: Codec;
|
|
827
|
+
};
|
|
808
828
|
multisig: {
|
|
809
829
|
/**
|
|
810
830
|
* The base amount of currency needed to reserve for creating a multisig execution or to
|
|
@@ -1476,7 +1496,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
1476
1496
|
**/
|
|
1477
1497
|
ss58Prefix: u16 & AugmentedConst<ApiType>;
|
|
1478
1498
|
/**
|
|
1479
|
-
* Get the chain's
|
|
1499
|
+
* Get the chain's in-code version.
|
|
1480
1500
|
**/
|
|
1481
1501
|
version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
|
|
1482
1502
|
/**
|
package/substrate/errors.d.ts
CHANGED
|
@@ -1527,6 +1527,16 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1527
1527
|
**/
|
|
1528
1528
|
[key: string]: AugmentedError<ApiType>;
|
|
1529
1529
|
};
|
|
1530
|
+
multiBlockMigrations: {
|
|
1531
|
+
/**
|
|
1532
|
+
* The operation cannot complete since some MBMs are ongoing.
|
|
1533
|
+
**/
|
|
1534
|
+
Ongoing: AugmentedError<ApiType>;
|
|
1535
|
+
/**
|
|
1536
|
+
* Generic error
|
|
1537
|
+
**/
|
|
1538
|
+
[key: string]: AugmentedError<ApiType>;
|
|
1539
|
+
};
|
|
1530
1540
|
multisig: {
|
|
1531
1541
|
/**
|
|
1532
1542
|
* Call is already approved by this signatory.
|
|
@@ -2876,6 +2886,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2876
2886
|
* and the new runtime.
|
|
2877
2887
|
**/
|
|
2878
2888
|
InvalidSpecName: AugmentedError<ApiType>;
|
|
2889
|
+
/**
|
|
2890
|
+
* A multi-block migration is ongoing and prevents the current code from being replaced.
|
|
2891
|
+
**/
|
|
2892
|
+
MultiBlockMigrationsOngoing: AugmentedError<ApiType>;
|
|
2879
2893
|
/**
|
|
2880
2894
|
* Suicide called when the account has non-default composite data.
|
|
2881
2895
|
**/
|
package/substrate/events.d.ts
CHANGED
|
@@ -1773,6 +1773,67 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1773
1773
|
**/
|
|
1774
1774
|
[key: string]: AugmentedEvent<ApiType>;
|
|
1775
1775
|
};
|
|
1776
|
+
multiBlockMigrations: {
|
|
1777
|
+
/**
|
|
1778
|
+
* The set of historical migrations has been cleared.
|
|
1779
|
+
**/
|
|
1780
|
+
HistoricCleared: AugmentedEvent<ApiType, [nextCursor: Option<Bytes>], {
|
|
1781
|
+
nextCursor: Option<Bytes>;
|
|
1782
|
+
}>;
|
|
1783
|
+
/**
|
|
1784
|
+
* A migration progressed.
|
|
1785
|
+
**/
|
|
1786
|
+
MigrationAdvanced: AugmentedEvent<ApiType, [index: u32, took: u32], {
|
|
1787
|
+
index: u32;
|
|
1788
|
+
took: u32;
|
|
1789
|
+
}>;
|
|
1790
|
+
/**
|
|
1791
|
+
* A Migration completed.
|
|
1792
|
+
**/
|
|
1793
|
+
MigrationCompleted: AugmentedEvent<ApiType, [index: u32, took: u32], {
|
|
1794
|
+
index: u32;
|
|
1795
|
+
took: u32;
|
|
1796
|
+
}>;
|
|
1797
|
+
/**
|
|
1798
|
+
* A Migration failed.
|
|
1799
|
+
*
|
|
1800
|
+
* This implies that the whole upgrade failed and governance intervention is required.
|
|
1801
|
+
**/
|
|
1802
|
+
MigrationFailed: AugmentedEvent<ApiType, [index: u32, took: u32], {
|
|
1803
|
+
index: u32;
|
|
1804
|
+
took: u32;
|
|
1805
|
+
}>;
|
|
1806
|
+
/**
|
|
1807
|
+
* A migration was skipped since it was already executed in the past.
|
|
1808
|
+
**/
|
|
1809
|
+
MigrationSkipped: AugmentedEvent<ApiType, [index: u32], {
|
|
1810
|
+
index: u32;
|
|
1811
|
+
}>;
|
|
1812
|
+
/**
|
|
1813
|
+
* The current runtime upgrade completed.
|
|
1814
|
+
*
|
|
1815
|
+
* This implies that all of its migrations completed successfully as well.
|
|
1816
|
+
**/
|
|
1817
|
+
UpgradeCompleted: AugmentedEvent<ApiType, []>;
|
|
1818
|
+
/**
|
|
1819
|
+
* Runtime upgrade failed.
|
|
1820
|
+
*
|
|
1821
|
+
* This is very bad and will require governance intervention.
|
|
1822
|
+
**/
|
|
1823
|
+
UpgradeFailed: AugmentedEvent<ApiType, []>;
|
|
1824
|
+
/**
|
|
1825
|
+
* A Runtime upgrade started.
|
|
1826
|
+
*
|
|
1827
|
+
* Its end is indicated by `UpgradeCompleted` or `UpgradeFailed`.
|
|
1828
|
+
**/
|
|
1829
|
+
UpgradeStarted: AugmentedEvent<ApiType, [migrations: u32], {
|
|
1830
|
+
migrations: u32;
|
|
1831
|
+
}>;
|
|
1832
|
+
/**
|
|
1833
|
+
* Generic event
|
|
1834
|
+
**/
|
|
1835
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
1836
|
+
};
|
|
1776
1837
|
multisig: {
|
|
1777
1838
|
/**
|
|
1778
1839
|
* A multisig operation has been approved by someone.
|
|
@@ -3354,6 +3415,12 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
3354
3415
|
Chilled: AugmentedEvent<ApiType, [stash: AccountId32], {
|
|
3355
3416
|
stash: AccountId32;
|
|
3356
3417
|
}>;
|
|
3418
|
+
/**
|
|
3419
|
+
* Report of a controller batch deprecation.
|
|
3420
|
+
**/
|
|
3421
|
+
ControllerBatchDeprecated: AugmentedEvent<ApiType, [failures: u32], {
|
|
3422
|
+
failures: u32;
|
|
3423
|
+
}>;
|
|
3357
3424
|
/**
|
|
3358
3425
|
* The era payout has been set; the first balance is the validator-payout; the second is
|
|
3359
3426
|
* the remainder from the maximum amount of reward.
|
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>;
|
|
@@ -1151,6 +1151,25 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1151
1151
|
**/
|
|
1152
1152
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1153
1153
|
};
|
|
1154
|
+
multiBlockMigrations: {
|
|
1155
|
+
/**
|
|
1156
|
+
* The currently active migration to run and its cursor.
|
|
1157
|
+
*
|
|
1158
|
+
* `None` indicates that no migration is running.
|
|
1159
|
+
**/
|
|
1160
|
+
cursor: AugmentedQuery<ApiType, () => Observable<Option<PalletMigrationsMigrationCursor>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1161
|
+
/**
|
|
1162
|
+
* Set of all successfully executed migrations.
|
|
1163
|
+
*
|
|
1164
|
+
* This is used as blacklist, to not re-execute migrations that have not been removed from the
|
|
1165
|
+
* codebase yet. Governance can regularly clear this out via `clear_historic`.
|
|
1166
|
+
**/
|
|
1167
|
+
historic: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<Null>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
|
1168
|
+
/**
|
|
1169
|
+
* Generic query
|
|
1170
|
+
**/
|
|
1171
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1172
|
+
};
|
|
1154
1173
|
multisig: {
|
|
1155
1174
|
/**
|
|
1156
1175
|
* The set of open multisig operations.
|
|
@@ -2204,6 +2223,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2204
2223
|
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
2205
2224
|
**/
|
|
2206
2225
|
extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
2226
|
+
/**
|
|
2227
|
+
* Whether all inherents have been applied.
|
|
2228
|
+
**/
|
|
2229
|
+
inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2207
2230
|
/**
|
|
2208
2231
|
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
2209
2232
|
**/
|
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
|
}
|