@polkadot/api-augment 8.10.1 → 8.11.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.
@@ -12,4 +12,6 @@ require("./query");
12
12
 
13
13
  require("./registry");
14
14
 
15
+ require("./runtime");
16
+
15
17
  require("./tx");
@@ -0,0 +1 @@
1
+ "use strict";
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@polkadot/api-augment',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '8.10.1'
14
+ version: '8.11.1'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
@@ -12,4 +12,6 @@ require("./query");
12
12
 
13
13
  require("./registry");
14
14
 
15
+ require("./runtime");
16
+
15
17
  require("./tx");
@@ -0,0 +1 @@
1
+ "use strict";
@@ -12,4 +12,6 @@ require("./query");
12
12
 
13
13
  require("./registry");
14
14
 
15
+ require("./runtime");
16
+
15
17
  require("./tx");
@@ -0,0 +1 @@
1
+ "use strict";
@@ -493,6 +493,10 @@ declare module '@polkadot/api-base/types/errors' {
493
493
  * these are removed, either through `unvote` or `reap_vote`.
494
494
  **/
495
495
  VotesExist: AugmentedError<ApiType>;
496
+ /**
497
+ * Voting period too low
498
+ **/
499
+ VotingPeriodLow: AugmentedError<ApiType>;
496
500
  /**
497
501
  * Invalid upper bound.
498
502
  **/
package/kusama/index.d.ts CHANGED
@@ -4,4 +4,5 @@ import './errors';
4
4
  import './events';
5
5
  import './query';
6
6
  import './registry';
7
+ import './runtime';
7
8
  import './tx';
package/kusama/index.js CHANGED
@@ -6,4 +6,5 @@ import "./errors.js";
6
6
  import "./events.js";
7
7
  import "./query.js";
8
8
  import "./registry.js";
9
+ import "./runtime.js";
9
10
  import "./tx.js";
@@ -0,0 +1,388 @@
1
+ import type { ApiTypes } from '@polkadot/api-base/types';
2
+ import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
3
+ import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
4
+ import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
5
+ import type { ValidatorSet } from '@polkadot/types/interfaces/beefy';
6
+ import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
7
+ import type { BlockHash } from '@polkadot/types/interfaces/chain';
8
+ import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
9
+ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
10
+ import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
11
+ import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
12
+ import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
13
+ import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
14
+ import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
15
+ import type { AccountId, Block, Hash, Header, Index, KeyTypeId, Slot, ValidatorId } from '@polkadot/types/interfaces/runtime';
16
+ import type { SessionIndex } from '@polkadot/types/interfaces/session';
17
+ import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
18
+ import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
19
+ import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
20
+ import type { IExtrinsic, Observable } from '@polkadot/types/types';
21
+ declare module '@polkadot/api-base/types/calls' {
22
+ interface AugmentedCalls<ApiType extends ApiTypes> {
23
+ /** 0xbc9d89904f5b923f/1 */
24
+ accountNonceApi: {
25
+ /**
26
+ * The API to query account nonce (aka transaction index)
27
+ **/
28
+ accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
29
+ /**
30
+ * Generic call
31
+ **/
32
+ [key: string]: DecoratedCallBase<ApiType>;
33
+ };
34
+ /** 0x687ad44ad37f03c2/1 */
35
+ authorityDiscoveryApi: {
36
+ /**
37
+ * Retrieve authority identifiers of the current and next authority set.
38
+ **/
39
+ authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;
40
+ /**
41
+ * Generic call
42
+ **/
43
+ [key: string]: DecoratedCallBase<ApiType>;
44
+ };
45
+ /** 0xcbca25e39f142387/2 */
46
+ babeApi: {
47
+ /**
48
+ * Return the genesis configuration for BABE. The configuration is only read on genesis.
49
+ **/
50
+ configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
51
+ /**
52
+ * Returns information regarding the current epoch.
53
+ **/
54
+ currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
55
+ /**
56
+ * Returns the slot that started the current epoch.
57
+ **/
58
+ currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
59
+ /**
60
+ * Generates a proof of key ownership for the given authority in the current epoch.
61
+ **/
62
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
63
+ /**
64
+ * Returns information regarding the next epoch (which was already previously announced).
65
+ **/
66
+ nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
67
+ /**
68
+ * Submits an unsigned extrinsic to report an equivocation.
69
+ **/
70
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | {
71
+ offender?: any;
72
+ slotNumber?: any;
73
+ firstHeader?: any;
74
+ secondHeader?: any;
75
+ } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
76
+ /**
77
+ * Generic call
78
+ **/
79
+ [key: string]: DecoratedCallBase<ApiType>;
80
+ };
81
+ /** 0x49eaaf1b548a0cb0/1 */
82
+ beefyApi: {
83
+ /**
84
+ * Return the current active BEEFY validator set
85
+ **/
86
+ validatorSet: AugmentedCall<ApiType, () => Observable<Option<ValidatorSet>>>;
87
+ /**
88
+ * Generic call
89
+ **/
90
+ [key: string]: DecoratedCallBase<ApiType>;
91
+ };
92
+ /** 0x40fe3ad401f8959a/6 */
93
+ blockBuilder: {
94
+ /**
95
+ * Apply the given extrinsic.
96
+ **/
97
+ applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
98
+ /**
99
+ * Check that the inherents are valid.
100
+ **/
101
+ checkInherents: AugmentedCall<ApiType, (block: Block | {
102
+ header?: any;
103
+ extrinsics?: any;
104
+ } | string | Uint8Array, data: InherentData | {
105
+ data?: any;
106
+ } | string | Uint8Array) => Observable<CheckInherentsResult>>;
107
+ /**
108
+ * Finish the current block.
109
+ **/
110
+ finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
111
+ /**
112
+ * Generate inherent extrinsics.
113
+ **/
114
+ inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | {
115
+ data?: any;
116
+ } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
117
+ /**
118
+ * Generic call
119
+ **/
120
+ [key: string]: DecoratedCallBase<ApiType>;
121
+ };
122
+ /** 0xdf6acb689907609b/4 */
123
+ core: {
124
+ /**
125
+ * Execute the given block.
126
+ **/
127
+ executeBlock: AugmentedCall<ApiType, (block: Block | {
128
+ header?: any;
129
+ extrinsics?: any;
130
+ } | string | Uint8Array) => Observable<Null>>;
131
+ /**
132
+ * Initialize a block with the given header.
133
+ **/
134
+ initializeBlock: AugmentedCall<ApiType, (header: Header | {
135
+ parentHash?: any;
136
+ number?: any;
137
+ stateRoot?: any;
138
+ extrinsicsRoot?: any;
139
+ digest?: any;
140
+ } | string | Uint8Array) => Observable<Null>>;
141
+ /**
142
+ * Returns the version of the runtime.
143
+ **/
144
+ version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
145
+ /**
146
+ * Generic call
147
+ **/
148
+ [key: string]: DecoratedCallBase<ApiType>;
149
+ };
150
+ /** 0xed99c5acb25eedf5/3 */
151
+ grandpaApi: {
152
+ /**
153
+ * Get current GRANDPA authority set id.
154
+ **/
155
+ currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
156
+ /**
157
+ * Generates a proof of key ownership for the given authority in the given set.
158
+ **/
159
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
160
+ /**
161
+ * Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
162
+ **/
163
+ grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
164
+ /**
165
+ * Submits an unsigned extrinsic to report an equivocation.
166
+ **/
167
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | {
168
+ setId?: any;
169
+ equivocation?: any;
170
+ } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
171
+ /**
172
+ * Generic call
173
+ **/
174
+ [key: string]: DecoratedCallBase<ApiType>;
175
+ };
176
+ /** 0x37e397fc7c91f5e4/1 */
177
+ metadata: {
178
+ /**
179
+ * Returns the metadata of a runtime
180
+ **/
181
+ metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
182
+ /**
183
+ * Generic call
184
+ **/
185
+ [key: string]: DecoratedCallBase<ApiType>;
186
+ };
187
+ /** 0x91d5df18b0d2cf58/1 */
188
+ mmrApi: {
189
+ /**
190
+ * Generate MMR proof for a series of leaves under given indices.
191
+ **/
192
+ generateBatchProof: AugmentedCall<ApiType, (leafIndices: Vec<MmrLeafIndex> | (MmrLeafIndex | AnyNumber | Uint8Array)[]) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
193
+ /**
194
+ * Generate MMR proof for a leaf under given index.
195
+ **/
196
+ generateProof: AugmentedCall<ApiType, (leafIndex: MmrLeafIndex | AnyNumber | Uint8Array) => Observable<Result<ITuple<[MmrEncodableOpaqueLeaf, MmrProof]>, MmrError>>>;
197
+ /**
198
+ * Return the on-chain MMR root hash.
199
+ **/
200
+ mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
201
+ /**
202
+ * Verify MMR proof against on-chain MMR for a batch of leaves.
203
+ **/
204
+ verifyBatchProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
205
+ leafIndices?: any;
206
+ leafCount?: any;
207
+ items?: any;
208
+ } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
209
+ /**
210
+ * Verify MMR proof against given root hash or a batch of leaves.
211
+ **/
212
+ verifyBatchProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
213
+ leafIndices?: any;
214
+ leafCount?: any;
215
+ items?: any;
216
+ } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
217
+ /**
218
+ * Verify MMR proof against on-chain MMR.
219
+ **/
220
+ verifyProof: AugmentedCall<ApiType, (leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | {
221
+ leafIndex?: any;
222
+ leafCount?: any;
223
+ items?: any;
224
+ } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
225
+ /**
226
+ * Verify MMR proof against given root hash.
227
+ **/
228
+ verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | {
229
+ leafIndex?: any;
230
+ leafCount?: any;
231
+ items?: any;
232
+ } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
233
+ /**
234
+ * Generic call
235
+ **/
236
+ [key: string]: DecoratedCallBase<ApiType>;
237
+ };
238
+ /** 0xf78b278be53f454c/2 */
239
+ offchainWorkerApi: {
240
+ /**
241
+ * Starts the off-chain task for given block header.
242
+ **/
243
+ offchainWorker: AugmentedCall<ApiType, (header: Header | {
244
+ parentHash?: any;
245
+ number?: any;
246
+ stateRoot?: any;
247
+ extrinsicsRoot?: any;
248
+ digest?: any;
249
+ } | string | Uint8Array) => Observable<Null>>;
250
+ /**
251
+ * Generic call
252
+ **/
253
+ [key: string]: DecoratedCallBase<ApiType>;
254
+ };
255
+ /** 0xaf2c0297a23e6d3d/2 */
256
+ parachainHost: {
257
+ /**
258
+ * Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
259
+ **/
260
+ assumedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, hash: Hash | string | Uint8Array) => Observable<Option<ITuple<[PersistedValidationData, ValidationCodeHash]>>>>;
261
+ /**
262
+ * Yields information on all availability cores as relevant to the child block.
263
+ **/
264
+ availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<CoreState>>>;
265
+ /**
266
+ * Get a vector of events concerning candidates that occurred within a block.
267
+ **/
268
+ candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<CandidateEvent>>>;
269
+ /**
270
+ * Get the receipt of a candidate pending availability.
271
+ **/
272
+ candidatePendingAvailability: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<CommittedCandidateReceipt>>>;
273
+ /**
274
+ * Checks if the given validation outputs pass the acceptance criteria.
275
+ **/
276
+ checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | {
277
+ upwardMessages?: any;
278
+ horizontalMessages?: any;
279
+ newValidationCode?: any;
280
+ headData?: any;
281
+ processedDownwardMessages?: any;
282
+ hrmpWatermark?: any;
283
+ } | string | Uint8Array) => Observable<bool>>;
284
+ /**
285
+ * Get all the pending inbound messages in the downward message queue for a para.
286
+ **/
287
+ dmqContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundDownwardMessage>>>;
288
+ /**
289
+ * Get the contents of all channels addressed to the given recipient.
290
+ **/
291
+ inboundHrmpChannelsContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundHrmpMessage>>>;
292
+ /**
293
+ * Scrape dispute relevant from on-chain, backing votes and resolved disputes.
294
+ **/
295
+ onChainVotes: AugmentedCall<ApiType, () => Observable<Option<ScrapedOnChainVotes>>>;
296
+ /**
297
+ * Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.
298
+ **/
299
+ persistedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PersistedValidationData>>>;
300
+ /**
301
+ * Returns code hashes of PVFs that require pre-checking by validators in the active set.
302
+ **/
303
+ pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
304
+ /**
305
+ * Returns the session index expected at a child of the block.
306
+ **/
307
+ sessionIndexForChild: AugmentedCall<ApiType, () => Observable<SessionIndex>>;
308
+ /**
309
+ * Get the session info for the given session, if stored.
310
+ **/
311
+ sessionInfo: AugmentedCall<ApiType, (index: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<SessionInfo>>>;
312
+ /**
313
+ * Submits a PVF pre-checking statement into the transaction pool.
314
+ **/
315
+ submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PvfCheckStatement | {
316
+ accept?: any;
317
+ subject?: any;
318
+ sessionIndex?: any;
319
+ validatorIndex?: any;
320
+ } | string | Uint8Array, signature: ValidatorSignature | string | Uint8Array) => Observable<Null>>;
321
+ /**
322
+ * Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
323
+ **/
324
+ validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<ValidationCode>>;
325
+ /**
326
+ * Get the validation code from its hash.
327
+ **/
328
+ validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<ValidationCode>>>;
329
+ /**
330
+ * Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.
331
+ **/
332
+ validationCodeHash: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCodeHash>>>;
333
+ /**
334
+ * Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on
335
+ **/
336
+ validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<ParaValidatorIndex>>, GroupRotationInfo]>>>;
337
+ /**
338
+ * Get the current validators.
339
+ **/
340
+ validators: AugmentedCall<ApiType, () => Observable<Vec<ValidatorId>>>;
341
+ /**
342
+ * Generic call
343
+ **/
344
+ [key: string]: DecoratedCallBase<ApiType>;
345
+ };
346
+ /** 0xab3c0572291feb8b/1 */
347
+ sessionKeys: {
348
+ /**
349
+ * Decode the given public session keys.
350
+ **/
351
+ decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;
352
+ /**
353
+ * Generate a set of session keys with optionally using the given seed.
354
+ **/
355
+ generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | object | string | Uint8Array) => Observable<Bytes>>;
356
+ /**
357
+ * Generic call
358
+ **/
359
+ [key: string]: DecoratedCallBase<ApiType>;
360
+ };
361
+ /** 0xd2bc9897eed08f15/3 */
362
+ taggedTransactionQueue: {
363
+ /**
364
+ * Validate the transaction.
365
+ **/
366
+ validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
367
+ /**
368
+ * Generic call
369
+ **/
370
+ [key: string]: DecoratedCallBase<ApiType>;
371
+ };
372
+ /** 0x37c8bb1350a9a2a8/1 */
373
+ transactionPaymentApi: {
374
+ /**
375
+ * The transaction fee details
376
+ **/
377
+ queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
378
+ /**
379
+ * The transaction info
380
+ **/
381
+ queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
382
+ /**
383
+ * Generic call
384
+ **/
385
+ [key: string]: DecoratedCallBase<ApiType>;
386
+ };
387
+ }
388
+ }
@@ -0,0 +1 @@
1
+ export {};
package/kusama/tx.d.ts CHANGED
@@ -1271,8 +1271,9 @@ declare module '@polkadot/api-base/types/submittable' {
1271
1271
  * The dispatch of this call must be `FastTrackOrigin`.
1272
1272
  *
1273
1273
  * - `proposal_hash`: The hash of the current external proposal.
1274
- * - `voting_period`: The period that is allowed for voting on this proposal. Increased to
1275
- * `FastTrackVotingPeriod` if too low.
1274
+ * - `voting_period`: The period that is allowed for voting on this proposal.
1275
+ * Must be always greater than zero.
1276
+ * For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`.
1276
1277
  * - `delay`: The number of block after voting has ended in approval and this should be
1277
1278
  * enacted. This doesn't have a minimum amount.
1278
1279
  *
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "8.10.1",
23
+ "version": "8.11.1",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -82,6 +82,11 @@
82
82
  "require": "./cjs/kusama/registry.js",
83
83
  "default": "./kusama/registry.js"
84
84
  },
85
+ "./kusama/runtime": {
86
+ "types": "./kusama/runtime.d.ts",
87
+ "require": "./cjs/kusama/runtime.js",
88
+ "default": "./kusama/runtime.js"
89
+ },
85
90
  "./kusama/tx": {
86
91
  "types": "./kusama/tx.d.ts",
87
92
  "require": "./cjs/kusama/tx.js",
@@ -130,6 +135,11 @@
130
135
  "require": "./cjs/polkadot/registry.js",
131
136
  "default": "./polkadot/registry.js"
132
137
  },
138
+ "./polkadot/runtime": {
139
+ "types": "./polkadot/runtime.d.ts",
140
+ "require": "./cjs/polkadot/runtime.js",
141
+ "default": "./polkadot/runtime.js"
142
+ },
133
143
  "./polkadot/tx": {
134
144
  "types": "./polkadot/tx.d.ts",
135
145
  "require": "./cjs/polkadot/tx.js",
@@ -165,6 +175,11 @@
165
175
  "require": "./cjs/substrate/registry.js",
166
176
  "default": "./substrate/registry.js"
167
177
  },
178
+ "./substrate/runtime": {
179
+ "types": "./substrate/runtime.d.ts",
180
+ "require": "./cjs/substrate/runtime.js",
181
+ "default": "./substrate/runtime.js"
182
+ },
168
183
  "./substrate/tx": {
169
184
  "types": "./substrate/tx.d.ts",
170
185
  "require": "./cjs/substrate/tx.js",
@@ -172,12 +187,12 @@
172
187
  }
173
188
  },
174
189
  "dependencies": {
175
- "@babel/runtime": "^7.18.3",
176
- "@polkadot/api-base": "8.10.1",
177
- "@polkadot/rpc-augment": "8.10.1",
178
- "@polkadot/types": "8.10.1",
179
- "@polkadot/types-augment": "8.10.1",
180
- "@polkadot/types-codec": "8.10.1",
181
- "@polkadot/util": "^9.6.2"
190
+ "@babel/runtime": "^7.18.6",
191
+ "@polkadot/api-base": "8.11.1",
192
+ "@polkadot/rpc-augment": "8.11.1",
193
+ "@polkadot/types": "8.11.1",
194
+ "@polkadot/types-augment": "8.11.1",
195
+ "@polkadot/types-codec": "8.11.1",
196
+ "@polkadot/util": "^9.7.1"
182
197
  }
183
198
  }
package/packageInfo.js CHANGED
@@ -5,5 +5,5 @@ export const packageInfo = {
5
5
  name: '@polkadot/api-augment',
6
6
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
7
7
  type: 'esm',
8
- version: '8.10.1'
8
+ version: '8.11.1'
9
9
  };
@@ -493,6 +493,10 @@ declare module '@polkadot/api-base/types/errors' {
493
493
  * these are removed, either through `unvote` or `reap_vote`.
494
494
  **/
495
495
  VotesExist: AugmentedError<ApiType>;
496
+ /**
497
+ * Voting period too low
498
+ **/
499
+ VotingPeriodLow: AugmentedError<ApiType>;
496
500
  /**
497
501
  * Invalid upper bound.
498
502
  **/
@@ -4,4 +4,5 @@ import './errors';
4
4
  import './events';
5
5
  import './query';
6
6
  import './registry';
7
+ import './runtime';
7
8
  import './tx';
package/polkadot/index.js CHANGED
@@ -6,4 +6,5 @@ import "./errors.js";
6
6
  import "./events.js";
7
7
  import "./query.js";
8
8
  import "./registry.js";
9
+ import "./runtime.js";
9
10
  import "./tx.js";