@polkadot/api-augment 10.11.3 → 10.12.2

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.
@@ -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.11.3' };
4
+ exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.12.2' };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "10.11.3",
21
+ "version": "10.12.2",
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.11.3",
215
- "@polkadot/rpc-augment": "10.11.3",
216
- "@polkadot/types": "10.11.3",
217
- "@polkadot/types-augment": "10.11.3",
218
- "@polkadot/types-codec": "10.11.3",
214
+ "@polkadot/api-base": "10.12.2",
215
+ "@polkadot/rpc-augment": "10.12.2",
216
+ "@polkadot/types": "10.12.2",
217
+ "@polkadot/types-augment": "10.12.2",
218
+ "@polkadot/types-codec": "10.12.2",
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.11.3' };
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.2' };
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
3
3
  import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { Codec, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { Perbill, Percent, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsEnvironment, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
6
+ import type { FrameSupportPalletId, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsEnvironment, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
7
  export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
8
8
  declare module '@polkadot/api-base/types/consts' {
9
9
  interface AugmentedConsts<ApiType extends ApiTypes> {
@@ -44,10 +44,6 @@ declare module '@polkadot/api-base/types/consts' {
44
44
  [key: string]: Codec;
45
45
  };
46
46
  assetConversion: {
47
- /**
48
- * A setting to allow creating pools with both non-native assets.
49
- **/
50
- allowMultiAssetPools: bool & AugmentedConst<ApiType>;
51
47
  /**
52
48
  * A fee to withdraw the liquidity.
53
49
  **/
@@ -72,6 +68,10 @@ declare module '@polkadot/api-base/types/consts' {
72
68
  * A one-time fee to setup the pool.
73
69
  **/
74
70
  poolSetupFee: u128 & AugmentedConst<ApiType>;
71
+ /**
72
+ * Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`].
73
+ **/
74
+ poolSetupFeeAsset: FrameSupportTokensFungibleUnionOfNativeOrWithId & AugmentedConst<ApiType>;
75
75
  /**
76
76
  * Generic const
77
77
  **/
@@ -159,10 +159,6 @@ declare module '@polkadot/api-base/types/consts' {
159
159
  * The maximum number of individual freeze locks that can exist on an account at any time.
160
160
  **/
161
161
  maxFreezes: u32 & AugmentedConst<ApiType>;
162
- /**
163
- * The maximum number of holds that can exist on an account at any time.
164
- **/
165
- maxHolds: u32 & AugmentedConst<ApiType>;
166
162
  /**
167
163
  * The maximum number of locks that should exist on an account.
168
164
  * Not strictly enforced, but used for weight estimation.
@@ -177,6 +173,29 @@ declare module '@polkadot/api-base/types/consts' {
177
173
  **/
178
174
  [key: string]: Codec;
179
175
  };
176
+ beefy: {
177
+ /**
178
+ * The maximum number of authorities that can be added.
179
+ **/
180
+ maxAuthorities: u32 & AugmentedConst<ApiType>;
181
+ /**
182
+ * The maximum number of nominators for each validator.
183
+ **/
184
+ maxNominators: u32 & AugmentedConst<ApiType>;
185
+ /**
186
+ * The maximum number of entries to keep in the set id to session index mapping.
187
+ *
188
+ * Since the `SetIdSession` map is only used for validating equivocations this
189
+ * value should relate to the bonding duration of whatever staking system is
190
+ * being used (if any). If equivocation handling is not enabled then this value
191
+ * can be zero.
192
+ **/
193
+ maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
194
+ /**
195
+ * Generic const
196
+ **/
197
+ [key: string]: Codec;
198
+ };
180
199
  bounties: {
181
200
  /**
182
201
  * The amount held on deposit for placing a bounty proposal.
@@ -261,9 +280,15 @@ declare module '@polkadot/api-base/types/consts' {
261
280
  [key: string]: Codec;
262
281
  };
263
282
  contracts: {
283
+ /**
284
+ * The version of the HostFn APIs that are available in the runtime.
285
+ *
286
+ * Only valid value is `()`.
287
+ **/
288
+ apiVersion: u16 & AugmentedConst<ApiType>;
264
289
  /**
265
290
  * The percentage of the storage deposit that should be held for using a code hash.
266
- * Instantiating a contract, or calling [`chain_extension::Ext::add_delegate_dependency`]
291
+ * Instantiating a contract, or calling [`chain_extension::Ext::lock_delegate_dependency`]
267
292
  * protects the code from being removed. In order to prevent abuse these actions are
268
293
  * protected with a percentage of the code deposit.
269
294
  **/
@@ -309,7 +334,7 @@ declare module '@polkadot/api-base/types/consts' {
309
334
  maxDebugBufferLen: u32 & AugmentedConst<ApiType>;
310
335
  /**
311
336
  * The maximum number of delegate_dependencies that a contract can lock with
312
- * [`chain_extension::Ext::add_delegate_dependency`].
337
+ * [`chain_extension::Ext::lock_delegate_dependency`].
313
338
  **/
314
339
  maxDelegateDependencies: u32 & AugmentedConst<ApiType>;
315
340
  /**
@@ -449,11 +474,6 @@ declare module '@polkadot/api-base/types/consts' {
449
474
  * "better" in the Signed phase.
450
475
  **/
451
476
  betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
452
- /**
453
- * The minimum amount of improvement to the solution score that defines a solution as
454
- * "better" in the Unsigned phase.
455
- **/
456
- betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
457
477
  /**
458
478
  * The maximum number of winners that can be elected by this `ElectionProvider`
459
479
  * implementation.
@@ -623,7 +643,7 @@ declare module '@polkadot/api-base/types/consts' {
623
643
  };
624
644
  identity: {
625
645
  /**
626
- * The amount held on deposit for a registered identity
646
+ * The amount held on deposit for a registered identity.
627
647
  **/
628
648
  basicDeposit: u128 & AugmentedConst<ApiType>;
629
649
  /**
@@ -639,6 +659,18 @@ declare module '@polkadot/api-base/types/consts' {
639
659
  * The maximum number of sub-accounts allowed per identified account.
640
660
  **/
641
661
  maxSubAccounts: u32 & AugmentedConst<ApiType>;
662
+ /**
663
+ * The maximum length of a suffix.
664
+ **/
665
+ maxSuffixLength: u32 & AugmentedConst<ApiType>;
666
+ /**
667
+ * The maximum length of a username, including its suffix and any system-added delimiters.
668
+ **/
669
+ maxUsernameLength: u32 & AugmentedConst<ApiType>;
670
+ /**
671
+ * The number of blocks within which a username grant must be accepted.
672
+ **/
673
+ pendingUsernameExpiration: u32 & AugmentedConst<ApiType>;
642
674
  /**
643
675
  * The amount held on deposit for a registered subaccount. This should account for the fact
644
676
  * that one storage item's value will increase by the size of an account ID, and there will
@@ -1410,7 +1442,7 @@ declare module '@polkadot/api-base/types/consts' {
1410
1442
  * - [`frame_support::storage::StorageDoubleMap`]: 96 byte
1411
1443
  *
1412
1444
  * For more info see
1413
- * <https://www.shawntabrizi.com/substrate/querying-substrate-storage-via-rpc/>
1445
+ * <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
1414
1446
  **/
1415
1447
  maxKeyLen: u32 & AugmentedConst<ApiType>;
1416
1448
  /**
@@ -1501,7 +1533,7 @@ declare module '@polkadot/api-base/types/consts' {
1501
1533
  **/
1502
1534
  tipFindersFee: Percent & AugmentedConst<ApiType>;
1503
1535
  /**
1504
- * The amount held on deposit for placing a tip report.
1536
+ * The non-zero amount held on deposit for placing a tip report.
1505
1537
  **/
1506
1538
  tipReportDepositBase: u128 & AugmentedConst<ApiType>;
1507
1539
  /**
@@ -188,27 +188,21 @@ declare module '@polkadot/api-base/types/errors' {
188
188
  **/
189
189
  AssetTwoWithdrawalDidNotMeetMinimum: AugmentedError<ApiType>;
190
190
  /**
191
- * Unable to find an element in an array/vec that should have one-to-one correspondence
192
- * with another. For example, an array of assets constituting a `path` should have a
193
- * corresponding array of `amounts` along the path.
191
+ * The destination account cannot exist with the swapped funds.
194
192
  **/
195
- CorrespondenceError: AugmentedError<ApiType>;
196
- /**
197
- * Provided assets are equal.
198
- **/
199
- EqualAssets: AugmentedError<ApiType>;
193
+ BelowMinimum: AugmentedError<ApiType>;
200
194
  /**
201
195
  * It was not possible to get or increment the Id of the pool.
202
196
  **/
203
197
  IncorrectPoolAssetId: AugmentedError<ApiType>;
204
- /**
205
- * Insufficient liquidity in the pool.
206
- **/
207
- InsufficientLiquidity: AugmentedError<ApiType>;
208
198
  /**
209
199
  * Insufficient liquidity minted.
210
200
  **/
211
201
  InsufficientLiquidityMinted: AugmentedError<ApiType>;
202
+ /**
203
+ * Provided asset pair is not supported for pool.
204
+ **/
205
+ InvalidAssetPair: AugmentedError<ApiType>;
212
206
  /**
213
207
  * The provided path must consists of 2 assets at least.
214
208
  **/
@@ -225,18 +219,10 @@ declare module '@polkadot/api-base/types/errors' {
225
219
  * An overflow happened.
226
220
  **/
227
221
  Overflow: AugmentedError<ApiType>;
228
- /**
229
- * It was not possible to calculate path data.
230
- **/
231
- PathError: AugmentedError<ApiType>;
232
222
  /**
233
223
  * Pool already exists.
234
224
  **/
235
225
  PoolExists: AugmentedError<ApiType>;
236
- /**
237
- * Only pools with native on one side are valid.
238
- **/
239
- PoolMustContainNativeCurrency: AugmentedError<ApiType>;
240
226
  /**
241
227
  * The pool doesn't exist.
242
228
  **/
@@ -254,10 +240,6 @@ declare module '@polkadot/api-base/types/errors' {
254
240
  * minimal amount.
255
241
  **/
256
242
  ReserveLeftLessThanMinimal: AugmentedError<ApiType>;
257
- /**
258
- * Provided asset is not supported for pool.
259
- **/
260
- UnsupportedAsset: AugmentedError<ApiType>;
261
243
  /**
262
244
  * Desired amount can't be zero.
263
245
  **/
@@ -280,6 +262,10 @@ declare module '@polkadot/api-base/types/errors' {
280
262
  * The given asset ID already has an assigned conversion rate and cannot be re-created.
281
263
  **/
282
264
  AlreadyExists: AugmentedError<ApiType>;
265
+ /**
266
+ * Overflow ocurred when calculating the inverse rate.
267
+ **/
268
+ Overflow: AugmentedError<ApiType>;
283
269
  /**
284
270
  * The given asset ID is unknown.
285
271
  **/
@@ -405,6 +391,10 @@ declare module '@polkadot/api-base/types/errors' {
405
391
  * Beneficiary account must pre-exist.
406
392
  **/
407
393
  DeadAccount: AugmentedError<ApiType>;
394
+ /**
395
+ * The delta cannot be zero.
396
+ **/
397
+ DeltaZero: AugmentedError<ApiType>;
408
398
  /**
409
399
  * Value too low to create account due to existential deposit.
410
400
  **/
@@ -421,6 +411,10 @@ declare module '@polkadot/api-base/types/errors' {
421
411
  * Balance too low to send value.
422
412
  **/
423
413
  InsufficientBalance: AugmentedError<ApiType>;
414
+ /**
415
+ * The issuance cannot be modified since it is already deactivated.
416
+ **/
417
+ IssuanceDeactivated: AugmentedError<ApiType>;
424
418
  /**
425
419
  * Account liquidity restrictions prevent withdrawal.
426
420
  **/
@@ -430,7 +424,7 @@ declare module '@polkadot/api-base/types/errors' {
430
424
  **/
431
425
  TooManyFreezes: AugmentedError<ApiType>;
432
426
  /**
433
- * Number of holds exceed `MaxHolds`.
427
+ * Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
434
428
  **/
435
429
  TooManyHolds: AugmentedError<ApiType>;
436
430
  /**
@@ -446,6 +440,28 @@ declare module '@polkadot/api-base/types/errors' {
446
440
  **/
447
441
  [key: string]: AugmentedError<ApiType>;
448
442
  };
443
+ beefy: {
444
+ /**
445
+ * A given equivocation report is valid but already previously reported.
446
+ **/
447
+ DuplicateOffenceReport: AugmentedError<ApiType>;
448
+ /**
449
+ * Submitted configuration is invalid.
450
+ **/
451
+ InvalidConfiguration: AugmentedError<ApiType>;
452
+ /**
453
+ * An equivocation proof provided as part of an equivocation report is invalid.
454
+ **/
455
+ InvalidEquivocationProof: AugmentedError<ApiType>;
456
+ /**
457
+ * A key ownership proof provided as part of an equivocation report is invalid.
458
+ **/
459
+ InvalidKeyOwnershipProof: AugmentedError<ApiType>;
460
+ /**
461
+ * Generic error
462
+ **/
463
+ [key: string]: AugmentedError<ApiType>;
464
+ };
449
465
  bounties: {
450
466
  /**
451
467
  * The bounty cannot be closed because it has active child bounties.
@@ -810,7 +826,7 @@ declare module '@polkadot/api-base/types/errors' {
810
826
  AlreadyDelegating: AugmentedError<ApiType>;
811
827
  /**
812
828
  * The account currently has votes attached to it and the operation cannot succeed until
813
- * these are removed, either through `unvote` or `reap_vote`.
829
+ * these are removed through `remove_vote`.
814
830
  **/
815
831
  AlreadyVoting: AugmentedError<ApiType>;
816
832
  /**
@@ -1080,6 +1096,10 @@ declare module '@polkadot/api-base/types/errors' {
1080
1096
  * OCW submitted solution for wrong round
1081
1097
  **/
1082
1098
  OcwCallWrongEra: AugmentedError<ApiType>;
1099
+ /**
1100
+ * Sumission was prepared for a different round.
1101
+ **/
1102
+ PreDispatchDifferentRound: AugmentedError<ApiType>;
1083
1103
  /**
1084
1104
  * Submission was too early.
1085
1105
  **/
@@ -1296,10 +1316,22 @@ declare module '@polkadot/api-base/types/errors' {
1296
1316
  * Invalid judgement.
1297
1317
  **/
1298
1318
  InvalidJudgement: AugmentedError<ApiType>;
1319
+ /**
1320
+ * The signature on a username was not valid.
1321
+ **/
1322
+ InvalidSignature: AugmentedError<ApiType>;
1323
+ /**
1324
+ * The provided suffix is too long.
1325
+ **/
1326
+ InvalidSuffix: AugmentedError<ApiType>;
1299
1327
  /**
1300
1328
  * The target is invalid.
1301
1329
  **/
1302
1330
  InvalidTarget: AugmentedError<ApiType>;
1331
+ /**
1332
+ * The username does not meet the requirements.
1333
+ **/
1334
+ InvalidUsername: AugmentedError<ApiType>;
1303
1335
  /**
1304
1336
  * The provided judgement was for a different identity.
1305
1337
  **/
@@ -1312,10 +1344,18 @@ declare module '@polkadot/api-base/types/errors' {
1312
1344
  * Error that occurs when there is an issue paying for judgement.
1313
1345
  **/
1314
1346
  JudgementPaymentFailed: AugmentedError<ApiType>;
1347
+ /**
1348
+ * The authority cannot allocate any more usernames.
1349
+ **/
1350
+ NoAllocation: AugmentedError<ApiType>;
1315
1351
  /**
1316
1352
  * No identity found.
1317
1353
  **/
1318
1354
  NoIdentity: AugmentedError<ApiType>;
1355
+ /**
1356
+ * The username cannot be forcefully removed because it can still be accepted.
1357
+ **/
1358
+ NotExpired: AugmentedError<ApiType>;
1319
1359
  /**
1320
1360
  * Account isn't found.
1321
1361
  **/
@@ -1332,6 +1372,18 @@ declare module '@polkadot/api-base/types/errors' {
1332
1372
  * Sender is not a sub-account.
1333
1373
  **/
1334
1374
  NotSub: AugmentedError<ApiType>;
1375
+ /**
1376
+ * The sender does not have permission to issue a username.
1377
+ **/
1378
+ NotUsernameAuthority: AugmentedError<ApiType>;
1379
+ /**
1380
+ * The requested username does not exist.
1381
+ **/
1382
+ NoUsername: AugmentedError<ApiType>;
1383
+ /**
1384
+ * Setting this username requires a signature, but none was provided.
1385
+ **/
1386
+ RequiresSignature: AugmentedError<ApiType>;
1335
1387
  /**
1336
1388
  * Sticky judgement.
1337
1389
  **/
@@ -1344,6 +1396,10 @@ declare module '@polkadot/api-base/types/errors' {
1344
1396
  * Too many subs-accounts.
1345
1397
  **/
1346
1398
  TooManySubAccounts: AugmentedError<ApiType>;
1399
+ /**
1400
+ * The username is already taken.
1401
+ **/
1402
+ UsernameTaken: AugmentedError<ApiType>;
1347
1403
  /**
1348
1404
  * Generic error
1349
1405
  **/
@@ -2152,6 +2208,10 @@ declare module '@polkadot/api-base/types/errors' {
2152
2208
  * The member's rank is too low to vote.
2153
2209
  **/
2154
2210
  RankTooLow: AugmentedError<ApiType>;
2211
+ /**
2212
+ * The new member to exchange is the same as the old member
2213
+ **/
2214
+ SameMember: AugmentedError<ApiType>;
2155
2215
  /**
2156
2216
  * Generic error
2157
2217
  **/
@@ -2805,10 +2865,6 @@ declare module '@polkadot/api-base/types/errors' {
2805
2865
  * The origin filter prevent the call to be dispatched.
2806
2866
  **/
2807
2867
  CallFiltered: AugmentedError<ApiType>;
2808
- /**
2809
- * The specified [`Task`] failed during execution.
2810
- **/
2811
- FailedTask: AugmentedError<ApiType>;
2812
2868
  /**
2813
2869
  * Failed to extract the runtime version from the new runtime.
2814
2870
  *
@@ -2820,10 +2876,6 @@ declare module '@polkadot/api-base/types/errors' {
2820
2876
  * and the new runtime.
2821
2877
  **/
2822
2878
  InvalidSpecName: AugmentedError<ApiType>;
2823
- /**
2824
- * The specified [`Task`] is not valid.
2825
- **/
2826
- InvalidTask: AugmentedError<ApiType>;
2827
2879
  /**
2828
2880
  * Suicide called when the account has non-default composite data.
2829
2881
  **/
@@ -2832,11 +2884,19 @@ declare module '@polkadot/api-base/types/errors' {
2832
2884
  * There is a non-zero reference count preventing the account from being purged.
2833
2885
  **/
2834
2886
  NonZeroRefCount: AugmentedError<ApiType>;
2887
+ /**
2888
+ * No upgrade authorized.
2889
+ **/
2890
+ NothingAuthorized: AugmentedError<ApiType>;
2835
2891
  /**
2836
2892
  * The specification version is not allowed to decrease between the current runtime
2837
2893
  * and the new runtime.
2838
2894
  **/
2839
2895
  SpecVersionNeedsToIncrease: AugmentedError<ApiType>;
2896
+ /**
2897
+ * The submitted code is not authorized.
2898
+ **/
2899
+ Unauthorized: AugmentedError<ApiType>;
2840
2900
  /**
2841
2901
  * Generic error
2842
2902
  **/