@polkadot/api-augment 10.3.3 → 10.4.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.
@@ -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.3.3' };
4
+ exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.4.1' };
@@ -108,6 +108,13 @@ declare module '@polkadot/api-base/types/events' {
108
108
  account: AccountId32;
109
109
  freeBalance: u128;
110
110
  }>;
111
+ /**
112
+ * Some balance was frozen.
113
+ **/
114
+ Frozen: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
115
+ who: AccountId32;
116
+ amount: u128;
117
+ }>;
111
118
  /**
112
119
  * Total issuance was increased by `amount`, creating a credit to be balanced.
113
120
  **/
@@ -172,6 +179,13 @@ declare module '@polkadot/api-base/types/events' {
172
179
  who: AccountId32;
173
180
  amount: u128;
174
181
  }>;
182
+ /**
183
+ * Some balance was thawed.
184
+ **/
185
+ Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
186
+ who: AccountId32;
187
+ amount: u128;
188
+ }>;
175
189
  /**
176
190
  * Transfer succeeded.
177
191
  **/
@@ -966,6 +980,13 @@ declare module '@polkadot/api-base/types/events' {
966
980
  account: AccountId32;
967
981
  freeBalance: u128;
968
982
  }>;
983
+ /**
984
+ * Some balance was frozen.
985
+ **/
986
+ Frozen: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
987
+ who: AccountId32;
988
+ amount: u128;
989
+ }>;
969
990
  /**
970
991
  * Total issuance was increased by `amount`, creating a credit to be balanced.
971
992
  **/
@@ -1030,6 +1051,13 @@ declare module '@polkadot/api-base/types/events' {
1030
1051
  who: AccountId32;
1031
1052
  amount: u128;
1032
1053
  }>;
1054
+ /**
1055
+ * Some balance was thawed.
1056
+ **/
1057
+ Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
1058
+ who: AccountId32;
1059
+ amount: u128;
1060
+ }>;
1033
1061
  /**
1034
1062
  * Transfer succeeded.
1035
1063
  **/
package/kusama/query.d.ts CHANGED
@@ -362,6 +362,10 @@ declare module '@polkadot/api-base/types/storage' {
362
362
  [key: string]: QueryableStorageEntry<ApiType>;
363
363
  };
364
364
  dmp: {
365
+ /**
366
+ * The number to multiply the base delivery fee by.
367
+ **/
368
+ deliveryFeeFactor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
365
369
  /**
366
370
  * A mapping that stores the downward message queue MQC head for each para.
367
371
  *
package/kusama/tx.d.ts CHANGED
@@ -1163,12 +1163,6 @@ declare module '@polkadot/api-base/types/submittable' {
1163
1163
  **/
1164
1164
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
1165
1165
  };
1166
- dmp: {
1167
- /**
1168
- * Generic tx
1169
- **/
1170
- [key: string]: SubmittableExtrinsicFunction<ApiType>;
1171
- };
1172
1166
  electionProviderMultiPhase: {
1173
1167
  /**
1174
1168
  * Trigger the governance fallback.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "bugs": "https://github.com/polkadot-js/api/issues",
4
4
  "description": "API generated augmentation",
5
5
  "engines": {
6
- "node": ">=14"
6
+ "node": ">=16"
7
7
  },
8
8
  "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-augment#readme",
9
9
  "license": "Apache-2.0",
@@ -18,7 +18,7 @@
18
18
  "./cjs/detectPackage.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "10.3.3",
21
+ "version": "10.4.1",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -186,12 +186,12 @@
186
186
  }
187
187
  },
188
188
  "dependencies": {
189
- "@polkadot/api-base": "10.3.3",
190
- "@polkadot/rpc-augment": "10.3.3",
191
- "@polkadot/types": "10.3.3",
192
- "@polkadot/types-augment": "10.3.3",
193
- "@polkadot/types-codec": "10.3.3",
194
- "@polkadot/util": "^11.1.3",
189
+ "@polkadot/api-base": "10.4.1",
190
+ "@polkadot/rpc-augment": "10.4.1",
191
+ "@polkadot/types": "10.4.1",
192
+ "@polkadot/types-augment": "10.4.1",
193
+ "@polkadot/types-codec": "10.4.1",
194
+ "@polkadot/util": "^12.0.1",
195
195
  "tslib": "^2.5.0"
196
196
  }
197
197
  }
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.3.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.4.1' };
@@ -171,6 +171,16 @@ declare module '@polkadot/api-base/types/consts' {
171
171
  **/
172
172
  [key: string]: Codec;
173
173
  };
174
+ council: {
175
+ /**
176
+ * The maximum weight of a dispatch call that can be proposed and executed.
177
+ **/
178
+ maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
179
+ /**
180
+ * Generic const
181
+ **/
182
+ [key: string]: Codec;
183
+ };
174
184
  crowdloan: {
175
185
  /**
176
186
  * The minimum amount that may be contributed into a crowdloan. Should almost certainly be at
@@ -779,6 +789,16 @@ declare module '@polkadot/api-base/types/consts' {
779
789
  **/
780
790
  [key: string]: Codec;
781
791
  };
792
+ technicalCommittee: {
793
+ /**
794
+ * The maximum weight of a dispatch call that can be proposed and executed.
795
+ **/
796
+ maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
797
+ /**
798
+ * Generic const
799
+ **/
800
+ [key: string]: Codec;
801
+ };
782
802
  timestamp: {
783
803
  /**
784
804
  * The minimum period between blocks. Beware that this is different to the *expected*
@@ -108,6 +108,13 @@ declare module '@polkadot/api-base/types/events' {
108
108
  account: AccountId32;
109
109
  freeBalance: u128;
110
110
  }>;
111
+ /**
112
+ * Some balance was frozen.
113
+ **/
114
+ Frozen: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
115
+ who: AccountId32;
116
+ amount: u128;
117
+ }>;
111
118
  /**
112
119
  * Total issuance was increased by `amount`, creating a credit to be balanced.
113
120
  **/
@@ -172,6 +179,13 @@ declare module '@polkadot/api-base/types/events' {
172
179
  who: AccountId32;
173
180
  amount: u128;
174
181
  }>;
182
+ /**
183
+ * Some balance was thawed.
184
+ **/
185
+ Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
186
+ who: AccountId32;
187
+ amount: u128;
188
+ }>;
175
189
  /**
176
190
  * Transfer succeeded.
177
191
  **/
@@ -467,6 +467,10 @@ declare module '@polkadot/api-base/types/storage' {
467
467
  [key: string]: QueryableStorageEntry<ApiType>;
468
468
  };
469
469
  dmp: {
470
+ /**
471
+ * The number to multiply the base delivery fee by.
472
+ **/
473
+ deliveryFeeFactor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
470
474
  /**
471
475
  * A mapping that stores the downward message queue MQC head for each para.
472
476
  *
package/polkadot/tx.d.ts CHANGED
@@ -1620,12 +1620,6 @@ declare module '@polkadot/api-base/types/submittable' {
1620
1620
  **/
1621
1621
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
1622
1622
  };
1623
- dmp: {
1624
- /**
1625
- * Generic tx
1626
- **/
1627
- [key: string]: SubmittableExtrinsicFunction<ApiType>;
1628
- };
1629
1623
  electionProviderMultiPhase: {
1630
1624
  /**
1631
1625
  * Trigger the governance fallback.
@@ -33,6 +33,16 @@ declare module '@polkadot/api-base/types/consts' {
33
33
  **/
34
34
  [key: string]: Codec;
35
35
  };
36
+ allianceMotion: {
37
+ /**
38
+ * The maximum weight of a dispatch call that can be proposed and executed.
39
+ **/
40
+ maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
41
+ /**
42
+ * Generic const
43
+ **/
44
+ [key: string]: Codec;
45
+ };
36
46
  assets: {
37
47
  /**
38
48
  * The amount of funds that must be reserved when creating a new approval.
@@ -276,6 +286,16 @@ declare module '@polkadot/api-base/types/consts' {
276
286
  **/
277
287
  [key: string]: Codec;
278
288
  };
289
+ council: {
290
+ /**
291
+ * The maximum weight of a dispatch call that can be proposed and executed.
292
+ **/
293
+ maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
294
+ /**
295
+ * Generic const
296
+ **/
297
+ [key: string]: Codec;
298
+ };
279
299
  democracy: {
280
300
  /**
281
301
  * Period in blocks where an external proposal may not be re-submitted after being vetoed.
@@ -1177,6 +1197,16 @@ declare module '@polkadot/api-base/types/consts' {
1177
1197
  **/
1178
1198
  [key: string]: Codec;
1179
1199
  };
1200
+ technicalCommittee: {
1201
+ /**
1202
+ * The maximum weight of a dispatch call that can be proposed and executed.
1203
+ **/
1204
+ maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
1205
+ /**
1206
+ * Generic const
1207
+ **/
1208
+ [key: string]: Codec;
1209
+ };
1180
1210
  timestamp: {
1181
1211
  /**
1182
1212
  * The minimum period between blocks. Beware that this is different to the *expected*
@@ -152,6 +152,20 @@ declare module '@polkadot/api-base/types/errors' {
152
152
  **/
153
153
  [key: string]: AugmentedError<ApiType>;
154
154
  };
155
+ assetRate: {
156
+ /**
157
+ * The given asset ID already has an assigned conversion rate and cannot be re-created.
158
+ **/
159
+ AlreadyExists: AugmentedError<ApiType>;
160
+ /**
161
+ * The given asset ID is unknown.
162
+ **/
163
+ UnknownAssetId: AugmentedError<ApiType>;
164
+ /**
165
+ * Generic error
166
+ **/
167
+ [key: string]: AugmentedError<ApiType>;
168
+ };
155
169
  assets: {
156
170
  /**
157
171
  * The asset-account already exists.
@@ -159,6 +159,24 @@ declare module '@polkadot/api-base/types/events' {
159
159
  **/
160
160
  [key: string]: AugmentedEvent<ApiType>;
161
161
  };
162
+ assetRate: {
163
+ AssetRateCreated: AugmentedEvent<ApiType, [assetId: u32, rate: u128], {
164
+ assetId: u32;
165
+ rate: u128;
166
+ }>;
167
+ AssetRateRemoved: AugmentedEvent<ApiType, [assetId: u32], {
168
+ assetId: u32;
169
+ }>;
170
+ AssetRateUpdated: AugmentedEvent<ApiType, [assetId: u32, old: u128, new_: u128], {
171
+ assetId: u32;
172
+ old: u128;
173
+ new_: u128;
174
+ }>;
175
+ /**
176
+ * Generic event
177
+ **/
178
+ [key: string]: AugmentedEvent<ApiType>;
179
+ };
162
180
  assets: {
163
181
  /**
164
182
  * Accounts were destroyed for given asset.
@@ -385,6 +403,13 @@ declare module '@polkadot/api-base/types/events' {
385
403
  account: AccountId32;
386
404
  freeBalance: u128;
387
405
  }>;
406
+ /**
407
+ * Some balance was frozen.
408
+ **/
409
+ Frozen: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
410
+ who: AccountId32;
411
+ amount: u128;
412
+ }>;
388
413
  /**
389
414
  * Total issuance was increased by `amount`, creating a credit to be balanced.
390
415
  **/
@@ -449,6 +474,13 @@ declare module '@polkadot/api-base/types/events' {
449
474
  who: AccountId32;
450
475
  amount: u128;
451
476
  }>;
477
+ /**
478
+ * Some balance was thawed.
479
+ **/
480
+ Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
481
+ who: AccountId32;
482
+ amount: u128;
483
+ }>;
452
484
  /**
453
485
  * Transfer succeeded.
454
486
  **/
@@ -77,6 +77,18 @@ declare module '@polkadot/api-base/types/storage' {
77
77
  **/
78
78
  [key: string]: QueryableStorageEntry<ApiType>;
79
79
  };
80
+ assetRate: {
81
+ /**
82
+ * Maps an asset to its fixed point representation in the native balance.
83
+ *
84
+ * E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_id)`
85
+ **/
86
+ conversionRateToNative: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u128>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
87
+ /**
88
+ * Generic query
89
+ **/
90
+ [key: string]: QueryableStorageEntry<ApiType>;
91
+ };
80
92
  assets: {
81
93
  /**
82
94
  * The holdings of a specific account for a specific asset.
package/substrate/tx.d.ts CHANGED
@@ -276,6 +276,33 @@ declare module '@polkadot/api-base/types/submittable' {
276
276
  **/
277
277
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
278
278
  };
279
+ assetRate: {
280
+ /**
281
+ * Initialize a conversion rate to native balance for the given asset.
282
+ *
283
+ * ## Complexity
284
+ * - O(1)
285
+ **/
286
+ create: AugmentedSubmittable<(assetId: u32 | AnyNumber | Uint8Array, rate: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u128]>;
287
+ /**
288
+ * Remove an existing conversion rate to native balance for the given asset.
289
+ *
290
+ * ## Complexity
291
+ * - O(1)
292
+ **/
293
+ remove: AugmentedSubmittable<(assetId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
294
+ /**
295
+ * Update the conversion rate to native balance for the given asset.
296
+ *
297
+ * ## Complexity
298
+ * - O(1)
299
+ **/
300
+ update: AugmentedSubmittable<(assetId: u32 | AnyNumber | Uint8Array, rate: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u128]>;
301
+ /**
302
+ * Generic tx
303
+ **/
304
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
305
+ };
279
306
  assets: {
280
307
  /**
281
308
  * Approve an amount of asset for transfer by a delegated third-party account.