@polkadot/api-augment 16.0.1 → 16.1.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/assetHubKusama/consts.d.ts +30 -0
- package/assetHubKusama/errors.d.ts +70 -0
- package/assetHubKusama/events.d.ts +83 -51
- package/assetHubKusama/query.d.ts +46 -8
- package/assetHubKusama/runtime.d.ts +18 -18
- package/assetHubKusama/tx.d.ts +240 -55
- package/cjs/assetHubKusama/consts.d.ts +30 -0
- package/cjs/assetHubKusama/errors.d.ts +70 -0
- package/cjs/assetHubKusama/events.d.ts +83 -51
- package/cjs/assetHubKusama/query.d.ts +46 -8
- package/cjs/assetHubKusama/runtime.d.ts +18 -18
- package/cjs/assetHubKusama/tx.d.ts +240 -55
- package/cjs/packageInfo.js +1 -1
- package/package.json +6 -6
- package/packageInfo.js +1 -1
|
@@ -407,6 +407,36 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
407
407
|
**/
|
|
408
408
|
[key: string]: Codec;
|
|
409
409
|
};
|
|
410
|
+
stateTrieMigration: {
|
|
411
|
+
/**
|
|
412
|
+
* Maximal number of bytes that a key can have.
|
|
413
|
+
*
|
|
414
|
+
* FRAME itself does not limit the key length.
|
|
415
|
+
* The concrete value must therefore depend on your storage usage.
|
|
416
|
+
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
|
|
417
|
+
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
|
|
418
|
+
*
|
|
419
|
+
* Use the *state migration RPC* to retrieve the length of the longest key in your
|
|
420
|
+
* storage: <https://github.com/paritytech/substrate/issues/11642>
|
|
421
|
+
*
|
|
422
|
+
* The migration will halt with a `Halted` event if this value is too small.
|
|
423
|
+
* Since there is no real penalty from over-estimating, it is advised to use a large
|
|
424
|
+
* value. The default is 512 byte.
|
|
425
|
+
*
|
|
426
|
+
* Some key lengths for reference:
|
|
427
|
+
* - [`frame_support::storage::StorageValue`]: 32 byte
|
|
428
|
+
* - [`frame_support::storage::StorageMap`]: 64 byte
|
|
429
|
+
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
|
|
430
|
+
*
|
|
431
|
+
* For more info see
|
|
432
|
+
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
|
|
433
|
+
**/
|
|
434
|
+
maxKeyLen: u32 & AugmentedConst<ApiType>;
|
|
435
|
+
/**
|
|
436
|
+
* Generic const
|
|
437
|
+
**/
|
|
438
|
+
[key: string]: Codec;
|
|
439
|
+
};
|
|
410
440
|
system: {
|
|
411
441
|
/**
|
|
412
442
|
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
@@ -1011,6 +1011,40 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1011
1011
|
**/
|
|
1012
1012
|
[key: string]: AugmentedError<ApiType>;
|
|
1013
1013
|
};
|
|
1014
|
+
remoteProxyRelayChain: {
|
|
1015
|
+
/**
|
|
1016
|
+
* The local account id could not converted to the remote account id.
|
|
1017
|
+
**/
|
|
1018
|
+
CouldNotConvertLocalToRemoteAccountId: AugmentedError<ApiType>;
|
|
1019
|
+
/**
|
|
1020
|
+
* Could not find any matching proxy definition in the proof.
|
|
1021
|
+
**/
|
|
1022
|
+
DidNotFindMatchingProxyDefinition: AugmentedError<ApiType>;
|
|
1023
|
+
/**
|
|
1024
|
+
* The proxy definition could not be found in the proof.
|
|
1025
|
+
**/
|
|
1026
|
+
InvalidProof: AugmentedError<ApiType>;
|
|
1027
|
+
/**
|
|
1028
|
+
* Failed to decode the remote proxy definition from the proof.
|
|
1029
|
+
**/
|
|
1030
|
+
ProxyDefinitionDecodingFailed: AugmentedError<ApiType>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Proxy proof not registered.
|
|
1033
|
+
**/
|
|
1034
|
+
ProxyProofNotRegistered: AugmentedError<ApiType>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Announcement, if made at all, was made too recently.
|
|
1037
|
+
**/
|
|
1038
|
+
Unannounced: AugmentedError<ApiType>;
|
|
1039
|
+
/**
|
|
1040
|
+
* The anchor block of the remote proof is unknown.
|
|
1041
|
+
**/
|
|
1042
|
+
UnknownProofAnchorBlock: AugmentedError<ApiType>;
|
|
1043
|
+
/**
|
|
1044
|
+
* Generic error
|
|
1045
|
+
**/
|
|
1046
|
+
[key: string]: AugmentedError<ApiType>;
|
|
1047
|
+
};
|
|
1014
1048
|
session: {
|
|
1015
1049
|
/**
|
|
1016
1050
|
* Registered duplicate key.
|
|
@@ -1037,6 +1071,42 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1037
1071
|
**/
|
|
1038
1072
|
[key: string]: AugmentedError<ApiType>;
|
|
1039
1073
|
};
|
|
1074
|
+
stateTrieMigration: {
|
|
1075
|
+
/**
|
|
1076
|
+
* Bad child root provided.
|
|
1077
|
+
**/
|
|
1078
|
+
BadChildRoot: AugmentedError<ApiType>;
|
|
1079
|
+
/**
|
|
1080
|
+
* Bad witness data provided.
|
|
1081
|
+
**/
|
|
1082
|
+
BadWitness: AugmentedError<ApiType>;
|
|
1083
|
+
/**
|
|
1084
|
+
* A key was longer than the configured maximum.
|
|
1085
|
+
*
|
|
1086
|
+
* This means that the migration halted at the current [`Progress`] and
|
|
1087
|
+
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
|
|
1088
|
+
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
|
|
1089
|
+
* The value should only be increased to avoid a storage migration for the currently
|
|
1090
|
+
* stored [`crate::Progress::LastKey`].
|
|
1091
|
+
**/
|
|
1092
|
+
KeyTooLong: AugmentedError<ApiType>;
|
|
1093
|
+
/**
|
|
1094
|
+
* Max signed limits not respected.
|
|
1095
|
+
**/
|
|
1096
|
+
MaxSignedLimits: AugmentedError<ApiType>;
|
|
1097
|
+
/**
|
|
1098
|
+
* submitter does not have enough funds.
|
|
1099
|
+
**/
|
|
1100
|
+
NotEnoughFunds: AugmentedError<ApiType>;
|
|
1101
|
+
/**
|
|
1102
|
+
* Signed migration is not allowed because the maximum limit is not set yet.
|
|
1103
|
+
**/
|
|
1104
|
+
SignedMigrationNotAllowed: AugmentedError<ApiType>;
|
|
1105
|
+
/**
|
|
1106
|
+
* Generic error
|
|
1107
|
+
**/
|
|
1108
|
+
[key: string]: AugmentedError<ApiType>;
|
|
1109
|
+
};
|
|
1040
1110
|
system: {
|
|
1041
1111
|
/**
|
|
1042
1112
|
* The origin filter prevent the call to be dispatched.
|
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
|
3
3
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, H256, Permill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { AssetHubKusamaRuntimeProxyType, CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
6
|
+
import type { AssetHubKusamaRuntimeProxyType, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV4Location, StagingXcmV5AssetAssets, StagingXcmV5Location, StagingXcmV5Response, StagingXcmV5TraitsOutcome, StagingXcmV5Xcm, XcmV5TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
|
|
7
7
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
8
8
|
declare module '@polkadot/api-base/types/events' {
|
|
9
9
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
@@ -537,7 +537,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
537
537
|
* Downward message executed with the given outcome.
|
|
538
538
|
* \[ id, outcome \]
|
|
539
539
|
**/
|
|
540
|
-
ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed,
|
|
540
|
+
ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, StagingXcmV5TraitsOutcome]>;
|
|
541
541
|
/**
|
|
542
542
|
* Downward message is invalid XCM.
|
|
543
543
|
* \[ id \]
|
|
@@ -1223,42 +1223,42 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1223
1223
|
/**
|
|
1224
1224
|
* Some assets have been claimed from an asset trap
|
|
1225
1225
|
**/
|
|
1226
|
-
AssetsClaimed: AugmentedEvent<ApiType, [hash_: H256, origin:
|
|
1226
|
+
AssetsClaimed: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV5Location, assets: XcmVersionedAssets], {
|
|
1227
1227
|
hash_: H256;
|
|
1228
|
-
origin:
|
|
1228
|
+
origin: StagingXcmV5Location;
|
|
1229
1229
|
assets: XcmVersionedAssets;
|
|
1230
1230
|
}>;
|
|
1231
1231
|
/**
|
|
1232
1232
|
* Some assets have been placed in an asset trap.
|
|
1233
1233
|
**/
|
|
1234
|
-
AssetsTrapped: AugmentedEvent<ApiType, [hash_: H256, origin:
|
|
1234
|
+
AssetsTrapped: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV5Location, assets: XcmVersionedAssets], {
|
|
1235
1235
|
hash_: H256;
|
|
1236
|
-
origin:
|
|
1236
|
+
origin: StagingXcmV5Location;
|
|
1237
1237
|
assets: XcmVersionedAssets;
|
|
1238
1238
|
}>;
|
|
1239
1239
|
/**
|
|
1240
1240
|
* Execution of an XCM message was attempted.
|
|
1241
1241
|
**/
|
|
1242
|
-
Attempted: AugmentedEvent<ApiType, [outcome:
|
|
1243
|
-
outcome:
|
|
1242
|
+
Attempted: AugmentedEvent<ApiType, [outcome: StagingXcmV5TraitsOutcome], {
|
|
1243
|
+
outcome: StagingXcmV5TraitsOutcome;
|
|
1244
1244
|
}>;
|
|
1245
1245
|
/**
|
|
1246
1246
|
* Fees were paid from a location for an operation (often for using `SendXcm`).
|
|
1247
1247
|
**/
|
|
1248
|
-
FeesPaid: AugmentedEvent<ApiType, [paying:
|
|
1249
|
-
paying:
|
|
1250
|
-
fees:
|
|
1248
|
+
FeesPaid: AugmentedEvent<ApiType, [paying: StagingXcmV5Location, fees: StagingXcmV5AssetAssets], {
|
|
1249
|
+
paying: StagingXcmV5Location;
|
|
1250
|
+
fees: StagingXcmV5AssetAssets;
|
|
1251
1251
|
}>;
|
|
1252
1252
|
/**
|
|
1253
1253
|
* Expected query response has been received but the querier location of the response does
|
|
1254
1254
|
* not match the expected. The query remains registered for a later, valid, response to
|
|
1255
1255
|
* be received and acted upon.
|
|
1256
1256
|
**/
|
|
1257
|
-
InvalidQuerier: AugmentedEvent<ApiType, [origin:
|
|
1258
|
-
origin:
|
|
1257
|
+
InvalidQuerier: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64, expectedQuerier: StagingXcmV5Location, maybeActualQuerier: Option<StagingXcmV5Location>], {
|
|
1258
|
+
origin: StagingXcmV5Location;
|
|
1259
1259
|
queryId: u64;
|
|
1260
|
-
expectedQuerier:
|
|
1261
|
-
maybeActualQuerier: Option<
|
|
1260
|
+
expectedQuerier: StagingXcmV5Location;
|
|
1261
|
+
maybeActualQuerier: Option<StagingXcmV5Location>;
|
|
1262
1262
|
}>;
|
|
1263
1263
|
/**
|
|
1264
1264
|
* Expected query response has been received but the expected querier location placed in
|
|
@@ -1269,8 +1269,8 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1269
1269
|
* valid response will be dropped. Manual governance intervention is probably going to be
|
|
1270
1270
|
* needed.
|
|
1271
1271
|
**/
|
|
1272
|
-
InvalidQuerierVersion: AugmentedEvent<ApiType, [origin:
|
|
1273
|
-
origin:
|
|
1272
|
+
InvalidQuerierVersion: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64], {
|
|
1273
|
+
origin: StagingXcmV5Location;
|
|
1274
1274
|
queryId: u64;
|
|
1275
1275
|
}>;
|
|
1276
1276
|
/**
|
|
@@ -1278,10 +1278,10 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1278
1278
|
* not match that expected. The query remains registered for a later, valid, response to
|
|
1279
1279
|
* be received and acted upon.
|
|
1280
1280
|
**/
|
|
1281
|
-
InvalidResponder: AugmentedEvent<ApiType, [origin:
|
|
1282
|
-
origin:
|
|
1281
|
+
InvalidResponder: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64, expectedLocation: Option<StagingXcmV5Location>], {
|
|
1282
|
+
origin: StagingXcmV5Location;
|
|
1283
1283
|
queryId: u64;
|
|
1284
|
-
expectedLocation: Option<
|
|
1284
|
+
expectedLocation: Option<StagingXcmV5Location>;
|
|
1285
1285
|
}>;
|
|
1286
1286
|
/**
|
|
1287
1287
|
* Expected query response has been received but the expected origin location placed in
|
|
@@ -1292,8 +1292,8 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1292
1292
|
* valid response will be dropped. Manual governance intervention is probably going to be
|
|
1293
1293
|
* needed.
|
|
1294
1294
|
**/
|
|
1295
|
-
InvalidResponderVersion: AugmentedEvent<ApiType, [origin:
|
|
1296
|
-
origin:
|
|
1295
|
+
InvalidResponderVersion: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64], {
|
|
1296
|
+
origin: StagingXcmV5Location;
|
|
1297
1297
|
queryId: u64;
|
|
1298
1298
|
}>;
|
|
1299
1299
|
/**
|
|
@@ -1348,18 +1348,18 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1348
1348
|
* A given location which had a version change subscription was dropped owing to an error
|
|
1349
1349
|
* sending the notification to it.
|
|
1350
1350
|
**/
|
|
1351
|
-
NotifyTargetSendFail: AugmentedEvent<ApiType, [location:
|
|
1352
|
-
location:
|
|
1351
|
+
NotifyTargetSendFail: AugmentedEvent<ApiType, [location: StagingXcmV5Location, queryId: u64, error: XcmV5TraitsError], {
|
|
1352
|
+
location: StagingXcmV5Location;
|
|
1353
1353
|
queryId: u64;
|
|
1354
|
-
error:
|
|
1354
|
+
error: XcmV5TraitsError;
|
|
1355
1355
|
}>;
|
|
1356
1356
|
/**
|
|
1357
1357
|
* Query response has been received and is ready for taking with `take_response`. There is
|
|
1358
1358
|
* no registered notification call.
|
|
1359
1359
|
**/
|
|
1360
|
-
ResponseReady: AugmentedEvent<ApiType, [queryId: u64, response:
|
|
1360
|
+
ResponseReady: AugmentedEvent<ApiType, [queryId: u64, response: StagingXcmV5Response], {
|
|
1361
1361
|
queryId: u64;
|
|
1362
|
-
response:
|
|
1362
|
+
response: StagingXcmV5Response;
|
|
1363
1363
|
}>;
|
|
1364
1364
|
/**
|
|
1365
1365
|
* Received query response has been read and removed.
|
|
@@ -1370,18 +1370,18 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1370
1370
|
/**
|
|
1371
1371
|
* A XCM message was sent.
|
|
1372
1372
|
**/
|
|
1373
|
-
Sent: AugmentedEvent<ApiType, [origin:
|
|
1374
|
-
origin:
|
|
1375
|
-
destination:
|
|
1376
|
-
message:
|
|
1373
|
+
Sent: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, destination: StagingXcmV5Location, message: StagingXcmV5Xcm, messageId: U8aFixed], {
|
|
1374
|
+
origin: StagingXcmV5Location;
|
|
1375
|
+
destination: StagingXcmV5Location;
|
|
1376
|
+
message: StagingXcmV5Xcm;
|
|
1377
1377
|
messageId: U8aFixed;
|
|
1378
1378
|
}>;
|
|
1379
1379
|
/**
|
|
1380
1380
|
* The supported version of a location has been changed. This might be through an
|
|
1381
1381
|
* automatic notification or a manual intervention.
|
|
1382
1382
|
**/
|
|
1383
|
-
SupportedVersionChanged: AugmentedEvent<ApiType, [location:
|
|
1384
|
-
location:
|
|
1383
|
+
SupportedVersionChanged: AugmentedEvent<ApiType, [location: StagingXcmV5Location, version: u32], {
|
|
1384
|
+
location: StagingXcmV5Location;
|
|
1385
1385
|
version: u32;
|
|
1386
1386
|
}>;
|
|
1387
1387
|
/**
|
|
@@ -1389,8 +1389,8 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1389
1389
|
* matching query was never registered, it may be because it is a duplicate response, or
|
|
1390
1390
|
* because the query timed out.
|
|
1391
1391
|
**/
|
|
1392
|
-
UnexpectedResponse: AugmentedEvent<ApiType, [origin:
|
|
1393
|
-
origin:
|
|
1392
|
+
UnexpectedResponse: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64], {
|
|
1393
|
+
origin: StagingXcmV5Location;
|
|
1394
1394
|
queryId: u64;
|
|
1395
1395
|
}>;
|
|
1396
1396
|
/**
|
|
@@ -1398,10 +1398,10 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1398
1398
|
*
|
|
1399
1399
|
* The cost of sending it (borne by the chain) is included.
|
|
1400
1400
|
**/
|
|
1401
|
-
VersionChangeNotified: AugmentedEvent<ApiType, [destination:
|
|
1402
|
-
destination:
|
|
1401
|
+
VersionChangeNotified: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, result: u32, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], {
|
|
1402
|
+
destination: StagingXcmV5Location;
|
|
1403
1403
|
result: u32;
|
|
1404
|
-
cost:
|
|
1404
|
+
cost: StagingXcmV5AssetAssets;
|
|
1405
1405
|
messageId: U8aFixed;
|
|
1406
1406
|
}>;
|
|
1407
1407
|
/**
|
|
@@ -1413,27 +1413,27 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1413
1413
|
/**
|
|
1414
1414
|
* We have requested that a remote chain send us XCM version change notifications.
|
|
1415
1415
|
**/
|
|
1416
|
-
VersionNotifyRequested: AugmentedEvent<ApiType, [destination:
|
|
1417
|
-
destination:
|
|
1418
|
-
cost:
|
|
1416
|
+
VersionNotifyRequested: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], {
|
|
1417
|
+
destination: StagingXcmV5Location;
|
|
1418
|
+
cost: StagingXcmV5AssetAssets;
|
|
1419
1419
|
messageId: U8aFixed;
|
|
1420
1420
|
}>;
|
|
1421
1421
|
/**
|
|
1422
1422
|
* A remote has requested XCM version change notification from us and we have honored it.
|
|
1423
1423
|
* A version information message is sent to them and its cost is included.
|
|
1424
1424
|
**/
|
|
1425
|
-
VersionNotifyStarted: AugmentedEvent<ApiType, [destination:
|
|
1426
|
-
destination:
|
|
1427
|
-
cost:
|
|
1425
|
+
VersionNotifyStarted: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], {
|
|
1426
|
+
destination: StagingXcmV5Location;
|
|
1427
|
+
cost: StagingXcmV5AssetAssets;
|
|
1428
1428
|
messageId: U8aFixed;
|
|
1429
1429
|
}>;
|
|
1430
1430
|
/**
|
|
1431
1431
|
* We have requested that a remote chain stops sending us XCM version change
|
|
1432
1432
|
* notifications.
|
|
1433
1433
|
**/
|
|
1434
|
-
VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination:
|
|
1435
|
-
destination:
|
|
1436
|
-
cost:
|
|
1434
|
+
VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], {
|
|
1435
|
+
destination: StagingXcmV5Location;
|
|
1436
|
+
cost: StagingXcmV5AssetAssets;
|
|
1437
1437
|
messageId: U8aFixed;
|
|
1438
1438
|
}>;
|
|
1439
1439
|
/**
|
|
@@ -1706,6 +1706,38 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1706
1706
|
**/
|
|
1707
1707
|
[key: string]: AugmentedEvent<ApiType>;
|
|
1708
1708
|
};
|
|
1709
|
+
stateTrieMigration: {
|
|
1710
|
+
/**
|
|
1711
|
+
* The auto migration task finished.
|
|
1712
|
+
**/
|
|
1713
|
+
AutoMigrationFinished: AugmentedEvent<ApiType, []>;
|
|
1714
|
+
/**
|
|
1715
|
+
* Migration got halted due to an error or miss-configuration.
|
|
1716
|
+
**/
|
|
1717
|
+
Halted: AugmentedEvent<ApiType, [error: PalletStateTrieMigrationError], {
|
|
1718
|
+
error: PalletStateTrieMigrationError;
|
|
1719
|
+
}>;
|
|
1720
|
+
/**
|
|
1721
|
+
* Given number of `(top, child)` keys were migrated respectively, with the given
|
|
1722
|
+
* `compute`.
|
|
1723
|
+
**/
|
|
1724
|
+
Migrated: AugmentedEvent<ApiType, [top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute], {
|
|
1725
|
+
top: u32;
|
|
1726
|
+
child: u32;
|
|
1727
|
+
compute: PalletStateTrieMigrationMigrationCompute;
|
|
1728
|
+
}>;
|
|
1729
|
+
/**
|
|
1730
|
+
* Some account got slashed by the given amount.
|
|
1731
|
+
**/
|
|
1732
|
+
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
1733
|
+
who: AccountId32;
|
|
1734
|
+
amount: u128;
|
|
1735
|
+
}>;
|
|
1736
|
+
/**
|
|
1737
|
+
* Generic event
|
|
1738
|
+
**/
|
|
1739
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
1740
|
+
};
|
|
1709
1741
|
system: {
|
|
1710
1742
|
/**
|
|
1711
1743
|
* `:code` was updated.
|
|
@@ -1714,15 +1746,15 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1714
1746
|
/**
|
|
1715
1747
|
* An extrinsic failed.
|
|
1716
1748
|
**/
|
|
1717
|
-
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo:
|
|
1749
|
+
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSystemDispatchEventInfo], {
|
|
1718
1750
|
dispatchError: SpRuntimeDispatchError;
|
|
1719
|
-
dispatchInfo:
|
|
1751
|
+
dispatchInfo: FrameSystemDispatchEventInfo;
|
|
1720
1752
|
}>;
|
|
1721
1753
|
/**
|
|
1722
1754
|
* An extrinsic completed successfully.
|
|
1723
1755
|
**/
|
|
1724
|
-
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo:
|
|
1725
|
-
dispatchInfo:
|
|
1756
|
+
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSystemDispatchEventInfo], {
|
|
1757
|
+
dispatchInfo: FrameSystemDispatchEventInfo;
|
|
1726
1758
|
}>;
|
|
1727
1759
|
/**
|
|
1728
1760
|
* An account was reaped.
|
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/
|
|
|
3
3
|
import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { AssetHubKusamaRuntimeRuntimeHoldReason, AssetHubKusamaRuntimeSessionKeys, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletTransactionPaymentReleases, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV8AbridgedHostConfiguration, PolkadotPrimitivesV8PersistedValidationData, PolkadotPrimitivesV8UpgradeGoAhead, PolkadotPrimitivesV8UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight,
|
|
6
|
+
import type { AssetHubKusamaRuntimeRuntimeHoldReason, AssetHubKusamaRuntimeSessionKeys, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV8AbridgedHostConfiguration, PolkadotPrimitivesV8PersistedValidationData, PolkadotPrimitivesV8UpgradeGoAhead, PolkadotPrimitivesV8UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV4Location, StagingXcmV5Instruction, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
|
|
7
7
|
import type { Observable } from '@polkadot/types/types';
|
|
8
8
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
9
9
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -606,7 +606,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
606
606
|
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
607
607
|
* implementation in the XCM executor configuration.
|
|
608
608
|
**/
|
|
609
|
-
recordedXcm: AugmentedQuery<ApiType, () => Observable<Option<Vec<
|
|
609
|
+
recordedXcm: AugmentedQuery<ApiType, () => Observable<Option<Vec<StagingXcmV5Instruction>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
610
610
|
/**
|
|
611
611
|
* Fungible assets which we know are locked on a remote chain.
|
|
612
612
|
**/
|
|
@@ -614,6 +614,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
614
614
|
V3: any;
|
|
615
615
|
} | {
|
|
616
616
|
V4: any;
|
|
617
|
+
} | {
|
|
618
|
+
V5: any;
|
|
617
619
|
} | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
|
|
618
620
|
/**
|
|
619
621
|
* Default version to encode XCM when latest version of destination is unknown. If `None`,
|
|
@@ -634,11 +636,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
634
636
|
* The Latest versions that we know various locations support.
|
|
635
637
|
**/
|
|
636
638
|
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | {
|
|
637
|
-
V2: any;
|
|
638
|
-
} | {
|
|
639
639
|
V3: any;
|
|
640
640
|
} | {
|
|
641
641
|
V4: any;
|
|
642
|
+
} | {
|
|
643
|
+
V5: any;
|
|
642
644
|
} | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
|
|
643
645
|
/**
|
|
644
646
|
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
|
|
@@ -650,22 +652,22 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
650
652
|
* All locations that we have requested version notifications from.
|
|
651
653
|
**/
|
|
652
654
|
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | {
|
|
653
|
-
V2: any;
|
|
654
|
-
} | {
|
|
655
655
|
V3: any;
|
|
656
656
|
} | {
|
|
657
657
|
V4: any;
|
|
658
|
+
} | {
|
|
659
|
+
V5: any;
|
|
658
660
|
} | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
|
|
659
661
|
/**
|
|
660
662
|
* The target locations that are subscribed to our version changes, as well as the most recent
|
|
661
663
|
* of our versions we informed them of.
|
|
662
664
|
**/
|
|
663
665
|
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | {
|
|
664
|
-
V2: any;
|
|
665
|
-
} | {
|
|
666
666
|
V3: any;
|
|
667
667
|
} | {
|
|
668
668
|
V4: any;
|
|
669
|
+
} | {
|
|
670
|
+
V5: any;
|
|
669
671
|
} | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
|
|
670
672
|
/**
|
|
671
673
|
* Global suspension state of the XCM executor.
|
|
@@ -727,6 +729,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
727
729
|
**/
|
|
728
730
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
729
731
|
};
|
|
732
|
+
remoteProxyRelayChain: {
|
|
733
|
+
/**
|
|
734
|
+
* Stores the last [`Config::MaxStorageRootsToKeep`] block to storage root mappings of the
|
|
735
|
+
* target chain.
|
|
736
|
+
**/
|
|
737
|
+
blockToRoot: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, H256]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
738
|
+
/**
|
|
739
|
+
* Generic query
|
|
740
|
+
**/
|
|
741
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
742
|
+
};
|
|
730
743
|
session: {
|
|
731
744
|
/**
|
|
732
745
|
* Current index of the session.
|
|
@@ -767,6 +780,31 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
767
780
|
**/
|
|
768
781
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
769
782
|
};
|
|
783
|
+
stateTrieMigration: {
|
|
784
|
+
/**
|
|
785
|
+
* The limits that are imposed on automatic migrations.
|
|
786
|
+
*
|
|
787
|
+
* If set to None, then no automatic migration happens.
|
|
788
|
+
**/
|
|
789
|
+
autoLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
790
|
+
/**
|
|
791
|
+
* Migration progress.
|
|
792
|
+
*
|
|
793
|
+
* This stores the snapshot of the last migrated keys. It can be set into motion and move
|
|
794
|
+
* forward by any of the means provided by this pallet.
|
|
795
|
+
**/
|
|
796
|
+
migrationProcess: AugmentedQuery<ApiType, () => Observable<PalletStateTrieMigrationMigrationTask>, []> & QueryableStorageEntry<ApiType, []>;
|
|
797
|
+
/**
|
|
798
|
+
* The maximum limits that the signed migration could use.
|
|
799
|
+
*
|
|
800
|
+
* If not set, no signed submission is allowed.
|
|
801
|
+
**/
|
|
802
|
+
signedMigrationMaxLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
803
|
+
/**
|
|
804
|
+
* Generic query
|
|
805
|
+
**/
|
|
806
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
807
|
+
};
|
|
770
808
|
system: {
|
|
771
809
|
/**
|
|
772
810
|
* The full account information for a particular account ID.
|
|
@@ -163,32 +163,30 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
163
163
|
/** 0x91b1c8b16328eb92/ */
|
|
164
164
|
dryRunApi: {
|
|
165
165
|
/**
|
|
166
|
-
* Dry run call.
|
|
166
|
+
* Dry run call V2.
|
|
167
167
|
**/
|
|
168
168
|
dryRunCall: AugmentedCall<ApiType, (origin: AssetHubKusamaRuntimeOriginCaller | {
|
|
169
169
|
system: any;
|
|
170
|
-
} | {
|
|
171
|
-
Void: any;
|
|
172
170
|
} | {
|
|
173
171
|
PolkadotXcm: any;
|
|
174
172
|
} | {
|
|
175
173
|
CumulusXcm: any;
|
|
176
|
-
} | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>>;
|
|
174
|
+
} | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array, result_xcms_version: u32 | AnyNumber | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>>;
|
|
177
175
|
/**
|
|
178
176
|
* Dry run XCM program
|
|
179
177
|
**/
|
|
180
178
|
dryRunXcm: AugmentedCall<ApiType, (origin_location: XcmVersionedLocation | {
|
|
181
|
-
V2: any;
|
|
182
|
-
} | {
|
|
183
179
|
V3: any;
|
|
184
180
|
} | {
|
|
185
181
|
V4: any;
|
|
186
|
-
} | string | Uint8Array, xcm: XcmVersionedXcm | {
|
|
187
|
-
V2: any;
|
|
188
182
|
} | {
|
|
183
|
+
V5: any;
|
|
184
|
+
} | string | Uint8Array, xcm: XcmVersionedXcm | {
|
|
189
185
|
V3: any;
|
|
190
186
|
} | {
|
|
191
187
|
V4: any;
|
|
188
|
+
} | {
|
|
189
|
+
V5: any;
|
|
192
190
|
} | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>>;
|
|
193
191
|
/**
|
|
194
192
|
* Generic call
|
|
@@ -209,11 +207,11 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
209
207
|
/** 0xfbc577b9d747efd6/ */
|
|
210
208
|
genesisBuilder: {
|
|
211
209
|
/**
|
|
212
|
-
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and
|
|
210
|
+
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full, `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the, provided JSON blob is incorrect or incomplete or the deserialization fails, an error, is returned.,, Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no, defaults will be used.
|
|
213
211
|
**/
|
|
214
212
|
buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
|
|
215
213
|
/**
|
|
216
|
-
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function
|
|
214
|
+
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function should return JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method.
|
|
217
215
|
**/
|
|
218
216
|
getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
|
|
219
217
|
/**
|
|
@@ -231,11 +229,11 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
231
229
|
* Converts `Location` to `AccountId`.
|
|
232
230
|
**/
|
|
233
231
|
convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | {
|
|
234
|
-
V2: any;
|
|
235
|
-
} | {
|
|
236
232
|
V3: any;
|
|
237
233
|
} | {
|
|
238
234
|
V4: any;
|
|
235
|
+
} | {
|
|
236
|
+
V5: any;
|
|
239
237
|
} | string | Uint8Array) => Observable<Result<AccountId32, XcmRuntimeApisConversionsError>>>;
|
|
240
238
|
/**
|
|
241
239
|
* Generic call
|
|
@@ -366,17 +364,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
366
364
|
* Get delivery fees for sending a specific `message` to a `destination`., These always come in a specific asset, defined by the chain.,, # Arguments, * `message`: The message that'll be sent, necessary because most delivery fees are based on the, size of the message., * `destination`: The destination to send the message to. Different destinations may use, different senders that charge different fees.
|
|
367
365
|
**/
|
|
368
366
|
queryDeliveryFees: AugmentedCall<ApiType, (destination: XcmVersionedLocation | {
|
|
369
|
-
V2: any;
|
|
370
|
-
} | {
|
|
371
367
|
V3: any;
|
|
372
368
|
} | {
|
|
373
369
|
V4: any;
|
|
374
|
-
} | string | Uint8Array, message: XcmVersionedXcm | {
|
|
375
|
-
V2: any;
|
|
376
370
|
} | {
|
|
371
|
+
V5: any;
|
|
372
|
+
} | string | Uint8Array, message: XcmVersionedXcm | {
|
|
377
373
|
V3: any;
|
|
378
374
|
} | {
|
|
379
375
|
V4: any;
|
|
376
|
+
} | {
|
|
377
|
+
V5: any;
|
|
380
378
|
} | string | Uint8Array) => Observable<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>>;
|
|
381
379
|
/**
|
|
382
380
|
* Converts a weight into a fee for the specified `AssetId`.,, # Arguments,, * `weight`: convertible `Weight`., * `asset`: `VersionedAssetId`.
|
|
@@ -388,16 +386,18 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
388
386
|
V3: any;
|
|
389
387
|
} | {
|
|
390
388
|
V4: any;
|
|
389
|
+
} | {
|
|
390
|
+
V5: any;
|
|
391
391
|
} | string | Uint8Array) => Observable<Result<u128, XcmRuntimeApisFeesError>>>;
|
|
392
392
|
/**
|
|
393
393
|
* Returns a weight needed to execute a XCM.,, # Arguments,, * `message`: `VersionedXcm`.
|
|
394
394
|
**/
|
|
395
395
|
queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | {
|
|
396
|
-
V2: any;
|
|
397
|
-
} | {
|
|
398
396
|
V3: any;
|
|
399
397
|
} | {
|
|
400
398
|
V4: any;
|
|
399
|
+
} | {
|
|
400
|
+
V5: any;
|
|
401
401
|
} | string | Uint8Array) => Observable<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>>;
|
|
402
402
|
/**
|
|
403
403
|
* Generic call
|