@polkadot/api-augment 11.0.2 → 11.0.3
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/package.json +6 -6
- package/packageInfo.js +1 -1
- package/substrate/errors.d.ts +34 -0
- package/substrate/events.d.ts +24 -3
- package/substrate/query.d.ts +25 -2
- package/substrate/tx.d.ts +56 -10
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: '11.0.
|
|
4
|
+
exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '11.0.3' };
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"./cjs/packageDetect.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "11.0.
|
|
21
|
+
"version": "11.0.3",
|
|
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": "11.0.
|
|
215
|
-
"@polkadot/rpc-augment": "11.0.
|
|
216
|
-
"@polkadot/types": "11.0.
|
|
217
|
-
"@polkadot/types-augment": "11.0.
|
|
218
|
-
"@polkadot/types-codec": "11.0.
|
|
214
|
+
"@polkadot/api-base": "11.0.3",
|
|
215
|
+
"@polkadot/rpc-augment": "11.0.3",
|
|
216
|
+
"@polkadot/types": "11.0.3",
|
|
217
|
+
"@polkadot/types-augment": "11.0.3",
|
|
218
|
+
"@polkadot/types-codec": "11.0.3",
|
|
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: '11.0.
|
|
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: '11.0.3' };
|
package/substrate/errors.d.ts
CHANGED
|
@@ -257,6 +257,28 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
257
257
|
**/
|
|
258
258
|
[key: string]: AugmentedError<ApiType>;
|
|
259
259
|
};
|
|
260
|
+
assetConversionMigration: {
|
|
261
|
+
/**
|
|
262
|
+
* Provided asset pair is not supported for pool.
|
|
263
|
+
**/
|
|
264
|
+
InvalidAssetPair: AugmentedError<ApiType>;
|
|
265
|
+
/**
|
|
266
|
+
* Indicates a partial transfer of balance to the new account during a migration.
|
|
267
|
+
**/
|
|
268
|
+
PartialTransfer: AugmentedError<ApiType>;
|
|
269
|
+
/**
|
|
270
|
+
* The pool doesn't exist.
|
|
271
|
+
**/
|
|
272
|
+
PoolNotFound: AugmentedError<ApiType>;
|
|
273
|
+
/**
|
|
274
|
+
* Pool's balance cannot be zero.
|
|
275
|
+
**/
|
|
276
|
+
ZeroBalance: AugmentedError<ApiType>;
|
|
277
|
+
/**
|
|
278
|
+
* Generic error
|
|
279
|
+
**/
|
|
280
|
+
[key: string]: AugmentedError<ApiType>;
|
|
281
|
+
};
|
|
260
282
|
assetRate: {
|
|
261
283
|
/**
|
|
262
284
|
* The given asset ID already has an assigned conversion rate and cannot be re-created.
|
|
@@ -539,6 +561,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
539
561
|
* The configuration could not be applied because it is invalid.
|
|
540
562
|
**/
|
|
541
563
|
InvalidConfig: AugmentedError<ApiType>;
|
|
564
|
+
/**
|
|
565
|
+
* The revenue must be claimed for 1 or more timeslices.
|
|
566
|
+
**/
|
|
567
|
+
NoClaimTimeslices: AugmentedError<ApiType>;
|
|
542
568
|
/**
|
|
543
569
|
* The history item does not exist.
|
|
544
570
|
**/
|
|
@@ -2805,6 +2831,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2805
2831
|
* Not a controller account.
|
|
2806
2832
|
**/
|
|
2807
2833
|
NotController: AugmentedError<ApiType>;
|
|
2834
|
+
/**
|
|
2835
|
+
* Not enough funds available to withdraw.
|
|
2836
|
+
**/
|
|
2837
|
+
NotEnoughFunds: AugmentedError<ApiType>;
|
|
2808
2838
|
/**
|
|
2809
2839
|
* Items are not sorted and unique.
|
|
2810
2840
|
**/
|
|
@@ -2817,6 +2847,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2817
2847
|
* Can not rebond without unlocking chunks.
|
|
2818
2848
|
**/
|
|
2819
2849
|
NoUnlockChunk: AugmentedError<ApiType>;
|
|
2850
|
+
/**
|
|
2851
|
+
* Provided reward destination is not allowed.
|
|
2852
|
+
**/
|
|
2853
|
+
RewardDestinationRestricted: AugmentedError<ApiType>;
|
|
2820
2854
|
/**
|
|
2821
2855
|
* There are too many nominators in the system. Governance needs to adjust the staking
|
|
2822
2856
|
* settings to keep things safe for the runtime.
|
package/substrate/events.d.ts
CHANGED
|
@@ -213,6 +213,27 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
213
213
|
amountOut: u128;
|
|
214
214
|
path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>>;
|
|
215
215
|
}>;
|
|
216
|
+
/**
|
|
217
|
+
* Pool has been touched in order to fulfill operational requirements.
|
|
218
|
+
**/
|
|
219
|
+
Touched: AugmentedEvent<ApiType, [poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, who: AccountId32], {
|
|
220
|
+
poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>;
|
|
221
|
+
who: AccountId32;
|
|
222
|
+
}>;
|
|
223
|
+
/**
|
|
224
|
+
* Generic event
|
|
225
|
+
**/
|
|
226
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
227
|
+
};
|
|
228
|
+
assetConversionMigration: {
|
|
229
|
+
/**
|
|
230
|
+
* Indicates that a pool has been migrated to the new account ID.
|
|
231
|
+
**/
|
|
232
|
+
MigratedToNewAccount: AugmentedEvent<ApiType, [poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, priorAccount: AccountId32, newAccount: AccountId32], {
|
|
233
|
+
poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>;
|
|
234
|
+
priorAccount: AccountId32;
|
|
235
|
+
newAccount: AccountId32;
|
|
236
|
+
}>;
|
|
216
237
|
/**
|
|
217
238
|
* Generic event
|
|
218
239
|
**/
|
|
@@ -914,11 +935,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
914
935
|
/**
|
|
915
936
|
* Ownership of a Region has been transferred.
|
|
916
937
|
**/
|
|
917
|
-
Transferred: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32, oldOwner: AccountId32
|
|
938
|
+
Transferred: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32, oldOwner: Option<AccountId32>, owner: Option<AccountId32>], {
|
|
918
939
|
regionId: PalletBrokerRegionId;
|
|
919
940
|
duration: u32;
|
|
920
|
-
oldOwner: AccountId32
|
|
921
|
-
owner: AccountId32
|
|
941
|
+
oldOwner: Option<AccountId32>;
|
|
942
|
+
owner: Option<AccountId32>;
|
|
922
943
|
}>;
|
|
923
944
|
/**
|
|
924
945
|
* Generic event
|
package/substrate/query.d.ts
CHANGED
|
@@ -432,7 +432,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
432
432
|
**/
|
|
433
433
|
leases: AugmentedQuery<ApiType, () => Observable<Vec<PalletBrokerLeaseRecordItem>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
434
434
|
/**
|
|
435
|
-
* The current (unassigned) Regions.
|
|
435
|
+
* The current (unassigned or provisionally assigend) Regions.
|
|
436
436
|
**/
|
|
437
437
|
regions: AugmentedQuery<ApiType, (arg: PalletBrokerRegionId | {
|
|
438
438
|
begin?: any;
|
|
@@ -1424,6 +1424,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1424
1424
|
**/
|
|
1425
1425
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1426
1426
|
};
|
|
1427
|
+
palletExampleMbms: {
|
|
1428
|
+
/**
|
|
1429
|
+
* Define a storage item to illustrate multi-block migrations.
|
|
1430
|
+
**/
|
|
1431
|
+
myMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u64>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1432
|
+
/**
|
|
1433
|
+
* Generic query
|
|
1434
|
+
**/
|
|
1435
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1436
|
+
};
|
|
1427
1437
|
parameters: {
|
|
1428
1438
|
/**
|
|
1429
1439
|
* Stored parameters.
|
|
@@ -1431,7 +1441,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1431
1441
|
parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | {
|
|
1432
1442
|
Storage: any;
|
|
1433
1443
|
} | {
|
|
1434
|
-
|
|
1444
|
+
Contracts: any;
|
|
1435
1445
|
} | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
|
|
1436
1446
|
/**
|
|
1437
1447
|
* Generic query
|
|
@@ -1890,6 +1900,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1890
1900
|
* Counter for the related counted storage map
|
|
1891
1901
|
**/
|
|
1892
1902
|
counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1903
|
+
/**
|
|
1904
|
+
* Counter for the related counted storage map
|
|
1905
|
+
**/
|
|
1906
|
+
counterForVirtualStakers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1893
1907
|
/**
|
|
1894
1908
|
* The current era index.
|
|
1895
1909
|
*
|
|
@@ -2123,6 +2137,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2123
2137
|
* and slash value of the era.
|
|
2124
2138
|
**/
|
|
2125
2139
|
validatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Perbill, u128]>>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
2140
|
+
/**
|
|
2141
|
+
* Stakers whose funds are managed by other pallets.
|
|
2142
|
+
*
|
|
2143
|
+
* This pallet does not apply any locks on them, therefore they are only virtually bonded. They
|
|
2144
|
+
* are expected to be keyless accounts and hence should not be allowed to mutate their ledger
|
|
2145
|
+
* directly via this pallet. Instead, these accounts are managed by other pallets and accessed
|
|
2146
|
+
* via low level apis. We keep track of them to do minimal integrity checks.
|
|
2147
|
+
**/
|
|
2148
|
+
virtualStakers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
2126
2149
|
/**
|
|
2127
2150
|
* Generic query
|
|
2128
2151
|
**/
|
package/substrate/tx.d.ts
CHANGED
|
@@ -357,6 +357,49 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
357
357
|
} | {
|
|
358
358
|
WithId: any;
|
|
359
359
|
} | string | Uint8Array)[], amountOut: u128 | AnyNumber | Uint8Array, amountInMax: u128 | AnyNumber | Uint8Array, sendTo: AccountId32 | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<FrameSupportTokensFungibleUnionOfNativeOrWithId>, u128, u128, AccountId32, bool]>;
|
|
360
|
+
/**
|
|
361
|
+
* Touch an existing pool to fulfill prerequisites before providing liquidity, such as
|
|
362
|
+
* ensuring that the pool's accounts are in place. It is typically useful when a pool
|
|
363
|
+
* creator removes the pool's accounts and does not provide a liquidity. This action may
|
|
364
|
+
* involve holding assets from the caller as a deposit for creating the pool's accounts.
|
|
365
|
+
*
|
|
366
|
+
* The origin must be Signed.
|
|
367
|
+
*
|
|
368
|
+
* - `asset1`: The asset ID of an existing pool with a pair (asset1, asset2).
|
|
369
|
+
* - `asset2`: The asset ID of an existing pool with a pair (asset1, asset2).
|
|
370
|
+
*
|
|
371
|
+
* Emits `Touched` event when successful.
|
|
372
|
+
**/
|
|
373
|
+
touch: AugmentedSubmittable<(asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
|
|
374
|
+
Native: any;
|
|
375
|
+
} | {
|
|
376
|
+
WithId: any;
|
|
377
|
+
} | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
|
|
378
|
+
Native: any;
|
|
379
|
+
} | {
|
|
380
|
+
WithId: any;
|
|
381
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>;
|
|
382
|
+
/**
|
|
383
|
+
* Generic tx
|
|
384
|
+
**/
|
|
385
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
386
|
+
};
|
|
387
|
+
assetConversionMigration: {
|
|
388
|
+
/**
|
|
389
|
+
* Migrates an existing pool to a new account ID derivation method for a given asset pair.
|
|
390
|
+
* If the migration is successful, transaction fees are refunded to the caller.
|
|
391
|
+
*
|
|
392
|
+
* Must be signed.
|
|
393
|
+
**/
|
|
394
|
+
migrateToNewAccount: AugmentedSubmittable<(asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
|
|
395
|
+
Native: any;
|
|
396
|
+
} | {
|
|
397
|
+
WithId: any;
|
|
398
|
+
} | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
|
|
399
|
+
Native: any;
|
|
400
|
+
} | {
|
|
401
|
+
WithId: any;
|
|
402
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>;
|
|
360
403
|
/**
|
|
361
404
|
* Generic tx
|
|
362
405
|
**/
|
|
@@ -1590,13 +1633,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1590
1633
|
/**
|
|
1591
1634
|
* Claim the revenue owed from inclusion in the Instantaneous Coretime Pool.
|
|
1592
1635
|
*
|
|
1593
|
-
* - `origin`: Must be a Signed origin
|
|
1636
|
+
* - `origin`: Must be a Signed origin.
|
|
1594
1637
|
* - `region_id`: The Region which was assigned to the Pool.
|
|
1595
|
-
* - `max_timeslices`: The maximum number of timeslices which should be processed. This
|
|
1596
|
-
*
|
|
1597
|
-
* the Region `region_id`. If
|
|
1598
|
-
* required with the `region_id`
|
|
1599
|
-
* collected.
|
|
1638
|
+
* - `max_timeslices`: The maximum number of timeslices which should be processed. This
|
|
1639
|
+
* must be greater than 0. This may affect the weight of the call but should be ideally
|
|
1640
|
+
* made equivalent to the length of the Region `region_id`. If less, further dispatches
|
|
1641
|
+
* will be required with the same `region_id` to claim revenue for the remainder.
|
|
1600
1642
|
**/
|
|
1601
1643
|
claimRevenue: AugmentedSubmittable<(regionId: PalletBrokerRegionId | {
|
|
1602
1644
|
begin?: any;
|
|
@@ -1757,9 +1799,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1757
1799
|
*
|
|
1758
1800
|
* - `origin`: Must be Root or pass `AdminOrigin`.
|
|
1759
1801
|
* - `initial_price`: The price of Bulk Coretime in the first sale.
|
|
1760
|
-
* - `
|
|
1802
|
+
* - `extra_cores`: Number of extra cores that should be requested on top of the cores
|
|
1803
|
+
* required for `Reservations` and `Leases`.
|
|
1804
|
+
*
|
|
1805
|
+
* This will call [`Self::request_core_count`] internally to set the correct core count on
|
|
1806
|
+
* the relay chain.
|
|
1761
1807
|
**/
|
|
1762
|
-
startSales: AugmentedSubmittable<(initialPrice: u128 | AnyNumber | Uint8Array,
|
|
1808
|
+
startSales: AugmentedSubmittable<(initialPrice: u128 | AnyNumber | Uint8Array, extraCores: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u16]>;
|
|
1763
1809
|
swapLeases: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, other: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
1764
1810
|
/**
|
|
1765
1811
|
* Transfer a Bulk Coretime Region to a new owner.
|
|
@@ -5272,7 +5318,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5272
5318
|
setCommissionMax: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, maxCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Perbill]>;
|
|
5273
5319
|
/**
|
|
5274
5320
|
* Update configurations for the nomination pools. The origin for this call must be
|
|
5275
|
-
*
|
|
5321
|
+
* [`Config::AdminOrigin`].
|
|
5276
5322
|
*
|
|
5277
5323
|
* # Arguments
|
|
5278
5324
|
*
|
|
@@ -5459,7 +5505,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5459
5505
|
setParameter: AugmentedSubmittable<(keyValue: KitchensinkRuntimeRuntimeParameters | {
|
|
5460
5506
|
Storage: any;
|
|
5461
5507
|
} | {
|
|
5462
|
-
|
|
5508
|
+
Contracts: any;
|
|
5463
5509
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeParameters]>;
|
|
5464
5510
|
/**
|
|
5465
5511
|
* Generic tx
|