@polkadot/api-augment 9.9.4 → 9.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/packageInfo.js +1 -1
- package/kusama/query.d.ts +1 -1
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/query.d.ts +1 -1
- package/substrate/consts.d.ts +22 -0
- package/substrate/query.d.ts +8 -0
- package/substrate/tx.d.ts +19 -18
package/cjs/packageInfo.js
CHANGED
package/kusama/query.d.ts
CHANGED
|
@@ -1101,7 +1101,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1101
1101
|
/**
|
|
1102
1102
|
* Past code of parachains. The parachains themselves may not be registered anymore,
|
|
1103
1103
|
* but we also keep their code on-chain for the same amount of time as outdated code
|
|
1104
|
-
* to keep it available for
|
|
1104
|
+
* to keep it available for approval checkers.
|
|
1105
1105
|
**/
|
|
1106
1106
|
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1107
1107
|
/**
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "9.
|
|
23
|
+
"version": "9.10.1",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -186,11 +186,11 @@
|
|
|
186
186
|
},
|
|
187
187
|
"dependencies": {
|
|
188
188
|
"@babel/runtime": "^7.20.1",
|
|
189
|
-
"@polkadot/api-base": "9.
|
|
190
|
-
"@polkadot/rpc-augment": "9.
|
|
191
|
-
"@polkadot/types": "9.
|
|
192
|
-
"@polkadot/types-augment": "9.
|
|
193
|
-
"@polkadot/types-codec": "9.
|
|
194
|
-
"@polkadot/util": "^10.1
|
|
189
|
+
"@polkadot/api-base": "9.10.1",
|
|
190
|
+
"@polkadot/rpc-augment": "9.10.1",
|
|
191
|
+
"@polkadot/types": "9.10.1",
|
|
192
|
+
"@polkadot/types-augment": "9.10.1",
|
|
193
|
+
"@polkadot/types-codec": "9.10.1",
|
|
194
|
+
"@polkadot/util": "^10.2.1"
|
|
195
195
|
}
|
|
196
196
|
}
|
package/packageInfo.js
CHANGED
|
@@ -7,5 +7,5 @@ export const packageInfo = {
|
|
|
7
7
|
name: '@polkadot/api-augment',
|
|
8
8
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
9
9
|
type: 'esm',
|
|
10
|
-
version: '9.
|
|
10
|
+
version: '9.10.1'
|
|
11
11
|
};
|
package/polkadot/query.d.ts
CHANGED
|
@@ -1004,7 +1004,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1004
1004
|
/**
|
|
1005
1005
|
* Past code of parachains. The parachains themselves may not be registered anymore,
|
|
1006
1006
|
* but we also keep their code on-chain for the same amount of time as outdated code
|
|
1007
|
-
* to keep it available for
|
|
1007
|
+
* to keep it available for approval checkers.
|
|
1008
1008
|
**/
|
|
1009
1009
|
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1010
1010
|
/**
|
package/substrate/consts.d.ts
CHANGED
|
@@ -231,10 +231,32 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
231
231
|
* Changing this value for an existing chain might need a storage migration.
|
|
232
232
|
**/
|
|
233
233
|
depositPerItem: u128 & AugmentedConst<ApiType>;
|
|
234
|
+
/**
|
|
235
|
+
* The maximum length of a contract code in bytes. This limit applies to the instrumented
|
|
236
|
+
* version of the code. Therefore `instantiate_with_code` can fail even when supplying
|
|
237
|
+
* a wasm binary below this maximum size.
|
|
238
|
+
**/
|
|
239
|
+
maxCodeLen: u32 & AugmentedConst<ApiType>;
|
|
240
|
+
/**
|
|
241
|
+
* The maximum allowable length in bytes for storage keys.
|
|
242
|
+
**/
|
|
243
|
+
maxStorageKeyLen: u32 & AugmentedConst<ApiType>;
|
|
234
244
|
/**
|
|
235
245
|
* Cost schedule and limits.
|
|
236
246
|
**/
|
|
237
247
|
schedule: PalletContractsSchedule & AugmentedConst<ApiType>;
|
|
248
|
+
/**
|
|
249
|
+
* Make contract callable functions marked as `#[unstable]` available.
|
|
250
|
+
*
|
|
251
|
+
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
|
|
252
|
+
* this is set to `true`. This is only meant for testnets and dev nodes in order to
|
|
253
|
+
* experiment with new features.
|
|
254
|
+
*
|
|
255
|
+
* # Warning
|
|
256
|
+
*
|
|
257
|
+
* Do **not** set to `true` on productions chains.
|
|
258
|
+
**/
|
|
259
|
+
unsafeUnstableInterface: bool & AugmentedConst<ApiType>;
|
|
238
260
|
/**
|
|
239
261
|
* Generic const
|
|
240
262
|
**/
|
package/substrate/query.d.ts
CHANGED
|
@@ -263,6 +263,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
263
263
|
* NOTE: This is only used in the case that this pallet is used to store balances.
|
|
264
264
|
**/
|
|
265
265
|
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
266
|
+
/**
|
|
267
|
+
* The total units of outstanding deactivated balance in the system.
|
|
268
|
+
**/
|
|
269
|
+
inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
266
270
|
/**
|
|
267
271
|
* Any liquidity locks on some account balances.
|
|
268
272
|
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
@@ -1703,6 +1707,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1703
1707
|
* Proposal indices that have been approved but not yet awarded.
|
|
1704
1708
|
**/
|
|
1705
1709
|
approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1710
|
+
/**
|
|
1711
|
+
* The amount which has been reported as inactive to Currency.
|
|
1712
|
+
**/
|
|
1713
|
+
inactive: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1706
1714
|
/**
|
|
1707
1715
|
* Number of proposals that have been made.
|
|
1708
1716
|
**/
|
package/substrate/tx.d.ts
CHANGED
|
@@ -494,36 +494,37 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
494
494
|
} | string | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, u128]>;
|
|
495
495
|
/**
|
|
496
496
|
* Destroy all accounts associated with a given asset.
|
|
497
|
+
*
|
|
497
498
|
* `destroy_accounts` should only be called after `start_destroy` has been called, and the
|
|
498
|
-
* asset is in a `Destroying` state
|
|
499
|
+
* asset is in a `Destroying` state.
|
|
499
500
|
*
|
|
500
|
-
* Due to weight restrictions, this function may need to be called multiple
|
|
501
|
-
*
|
|
502
|
-
* time.
|
|
501
|
+
* Due to weight restrictions, this function may need to be called multiple times to fully
|
|
502
|
+
* destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time.
|
|
503
503
|
*
|
|
504
504
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
505
505
|
* asset.
|
|
506
506
|
*
|
|
507
|
-
* Each call
|
|
507
|
+
* Each call emits the `Event::DestroyedAccounts` event.
|
|
508
508
|
**/
|
|
509
509
|
destroyAccounts: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
510
510
|
/**
|
|
511
|
-
* Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit)
|
|
511
|
+
* Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit).
|
|
512
|
+
*
|
|
512
513
|
* `destroy_approvals` should only be called after `start_destroy` has been called, and the
|
|
513
|
-
* asset is in a `Destroying` state
|
|
514
|
+
* asset is in a `Destroying` state.
|
|
514
515
|
*
|
|
515
|
-
* Due to weight restrictions, this function may need to be called multiple
|
|
516
|
-
*
|
|
517
|
-
* time.
|
|
516
|
+
* Due to weight restrictions, this function may need to be called multiple times to fully
|
|
517
|
+
* destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time.
|
|
518
518
|
*
|
|
519
519
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
520
520
|
* asset.
|
|
521
521
|
*
|
|
522
|
-
* Each call
|
|
522
|
+
* Each call emits the `Event::DestroyedApprovals` event.
|
|
523
523
|
**/
|
|
524
524
|
destroyApprovals: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
525
525
|
/**
|
|
526
526
|
* Complete destroying asset and unreserve currency.
|
|
527
|
+
*
|
|
527
528
|
* `finish_destroy` should only be called after `start_destroy` has been called, and the
|
|
528
529
|
* asset is in a `Destroying` state. All accounts or approvals should be destroyed before
|
|
529
530
|
* hand.
|
|
@@ -531,7 +532,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
531
532
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
532
533
|
* asset.
|
|
533
534
|
*
|
|
534
|
-
* Each successful call
|
|
535
|
+
* Each successful call emits the `Event::Destroyed` event.
|
|
535
536
|
**/
|
|
536
537
|
finishDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
537
538
|
/**
|
|
@@ -876,17 +877,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
876
877
|
Address20: any;
|
|
877
878
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, MultiAddress, MultiAddress]>;
|
|
878
879
|
/**
|
|
879
|
-
* Start the process of destroying a
|
|
880
|
-
*
|
|
881
|
-
*
|
|
880
|
+
* Start the process of destroying a fungible asset class.
|
|
881
|
+
*
|
|
882
|
+
* `start_destroy` is the first in a series of extrinsics that should be called, to allow
|
|
883
|
+
* destruction of an asset class.
|
|
882
884
|
*
|
|
883
|
-
* The origin must conform to `ForceOrigin` or must be Signed
|
|
884
|
-
* owner of the asset `id`.
|
|
885
|
+
* The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`.
|
|
885
886
|
*
|
|
886
887
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
887
888
|
* asset.
|
|
888
889
|
*
|
|
889
|
-
*
|
|
890
|
+
* The asset class must be frozen before calling `start_destroy`.
|
|
890
891
|
**/
|
|
891
892
|
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
892
893
|
/**
|