@dedot/chaintypes 0.102.0 → 0.103.0

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/astar/consts.d.ts CHANGED
@@ -8,7 +8,7 @@ import type {
8
8
  SpWeightsRuntimeDbWeight,
9
9
  SpWeightsWeightV2Weight,
10
10
  PolkadotParachainPrimitivesPrimitivesId,
11
- StagingXcmV4Location,
11
+ StagingXcmV5Location,
12
12
  PalletContractsSchedule,
13
13
  PalletContractsEnvironment,
14
14
  PalletContractsApiVersion,
@@ -87,6 +87,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
87
87
  **/
88
88
  byteDeposit: bigint;
89
89
 
90
+ /**
91
+ * The amount held on deposit per registered username. This value should change only in
92
+ * runtime upgrades with proper migration of existing deposits.
93
+ **/
94
+ usernameDeposit: bigint;
95
+
90
96
  /**
91
97
  * The amount held on deposit for a registered subaccount. This should account for the fact
92
98
  * that one storage item's value will increase by the size of an account ID, and there will
@@ -110,6 +116,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
110
116
  **/
111
117
  pendingUsernameExpiration: number;
112
118
 
119
+ /**
120
+ * The number of blocks that must pass to enable the permanent deletion of a username by
121
+ * its respective authority.
122
+ **/
123
+ usernameGracePeriod: number;
124
+
113
125
  /**
114
126
  * The maximum length of a suffix.
115
127
  **/
@@ -684,7 +696,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
684
696
  /**
685
697
  * Self chain location.
686
698
  **/
687
- selfLocation: StagingXcmV4Location;
699
+ selfLocation: StagingXcmV5Location;
688
700
 
689
701
  /**
690
702
  * Base XCM weight.
package/astar/errors.d.ts CHANGED
@@ -209,6 +209,27 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
209
209
  **/
210
210
  NotExpired: GenericPalletError<Rv>;
211
211
 
212
+ /**
213
+ * The username cannot be removed because it's still in the grace period.
214
+ **/
215
+ TooEarly: GenericPalletError<Rv>;
216
+
217
+ /**
218
+ * The username cannot be removed because it is not unbinding.
219
+ **/
220
+ NotUnbinding: GenericPalletError<Rv>;
221
+
222
+ /**
223
+ * The username cannot be unbound because it is already unbinding.
224
+ **/
225
+ AlreadyUnbinding: GenericPalletError<Rv>;
226
+
227
+ /**
228
+ * The action cannot be performed because of insufficient privileges (e.g. authority
229
+ * trying to unbind a username provided by the system).
230
+ **/
231
+ InsufficientPrivileges: GenericPalletError<Rv>;
232
+
212
233
  /**
213
234
  * Generic pallet error
214
235
  **/
@@ -1731,11 +1752,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1731
1752
  **/
1732
1753
  TooFew: GenericPalletError<Rv>;
1733
1754
 
1734
- /**
1735
- * No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
1736
- **/
1737
- NoCost: GenericPalletError<Rv>;
1738
-
1739
1755
  /**
1740
1756
  * Generic pallet error
1741
1757
  **/
@@ -1886,6 +1902,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1886
1902
  **/
1887
1903
  PrimeAccountNotMember: GenericPalletError<Rv>;
1888
1904
 
1905
+ /**
1906
+ * Proposal is still active.
1907
+ **/
1908
+ ProposalActive: GenericPalletError<Rv>;
1909
+
1889
1910
  /**
1890
1911
  * Generic pallet error
1891
1912
  **/
@@ -1950,6 +1971,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1950
1971
  **/
1951
1972
  PrimeAccountNotMember: GenericPalletError<Rv>;
1952
1973
 
1974
+ /**
1975
+ * Proposal is still active.
1976
+ **/
1977
+ ProposalActive: GenericPalletError<Rv>;
1978
+
1953
1979
  /**
1954
1980
  * Generic pallet error
1955
1981
  **/
@@ -2014,6 +2040,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2014
2040
  **/
2015
2041
  PrimeAccountNotMember: GenericPalletError<Rv>;
2016
2042
 
2043
+ /**
2044
+ * Proposal is still active.
2045
+ **/
2046
+ ProposalActive: GenericPalletError<Rv>;
2047
+
2017
2048
  /**
2018
2049
  * Generic pallet error
2019
2050
  **/
package/astar/events.d.ts CHANGED
@@ -1,19 +1,9 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types';
4
+ import type { DispatchError, AccountId32, H256, Result, Bytes, FixedBytes, FixedU128, H160, U256 } from 'dedot/codecs';
4
5
  import type {
5
- DispatchInfo,
6
- DispatchError,
7
- AccountId32,
8
- H256,
9
- Result,
10
- Bytes,
11
- FixedBytes,
12
- FixedU128,
13
- H160,
14
- U256,
15
- } from 'dedot/codecs';
16
- import type {
6
+ FrameSystemDispatchEventInfo,
17
7
  PalletMultisigTimepoint,
18
8
  AstarRuntimeProxyType,
19
9
  SpWeightsWeightV2Weight,
@@ -24,15 +14,15 @@ import type {
24
14
  PalletDappStakingForcingType,
25
15
  PalletDappStakingTierParameters,
26
16
  AstarPrimitivesOracleCurrencyId,
27
- StagingXcmV4TraitsOutcome,
28
- StagingXcmV4Location,
29
- StagingXcmV4Xcm,
30
- StagingXcmV4Response,
17
+ StagingXcmV5TraitsOutcome,
18
+ StagingXcmV5Location,
19
+ StagingXcmV5Xcm,
20
+ StagingXcmV5Response,
31
21
  XcmVersionedAssets,
32
- StagingXcmV4AssetAssets,
33
- XcmV3TraitsError,
22
+ StagingXcmV5AssetAssets,
23
+ XcmV5TraitsError,
34
24
  XcmVersionedLocation,
35
- StagingXcmV4Asset,
25
+ StagingXcmV5Asset,
36
26
  CumulusPrimitivesCoreAggregateMessageOrigin,
37
27
  FrameSupportMessagesProcessMessageError,
38
28
  EthereumLog,
@@ -51,7 +41,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
51
41
  /**
52
42
  * An extrinsic completed successfully.
53
43
  **/
54
- ExtrinsicSuccess: GenericPalletEvent<Rv, 'System', 'ExtrinsicSuccess', { dispatchInfo: DispatchInfo }>;
44
+ ExtrinsicSuccess: GenericPalletEvent<
45
+ Rv,
46
+ 'System',
47
+ 'ExtrinsicSuccess',
48
+ { dispatchInfo: FrameSystemDispatchEventInfo }
49
+ >;
55
50
 
56
51
  /**
57
52
  * An extrinsic failed.
@@ -60,7 +55,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
60
55
  Rv,
61
56
  'System',
62
57
  'ExtrinsicFailed',
63
- { dispatchError: DispatchError; dispatchInfo: DispatchInfo }
58
+ { dispatchError: DispatchError; dispatchInfo: FrameSystemDispatchEventInfo }
64
59
  >;
65
60
 
66
61
  /**
@@ -197,6 +192,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
197
192
  { sub: AccountId32; main: AccountId32; deposit: bigint }
198
193
  >;
199
194
 
195
+ /**
196
+ * An account's sub-identities were set (in bulk).
197
+ **/
198
+ SubIdentitiesSet: GenericPalletEvent<
199
+ Rv,
200
+ 'Identity',
201
+ 'SubIdentitiesSet',
202
+ { main: AccountId32; numberOfSubs: number; newDeposit: bigint }
203
+ >;
204
+
205
+ /**
206
+ * A given sub-account's associated name was changed by its super-identity.
207
+ **/
208
+ SubIdentityRenamed: GenericPalletEvent<
209
+ Rv,
210
+ 'Identity',
211
+ 'SubIdentityRenamed',
212
+ { sub: AccountId32; main: AccountId32 }
213
+ >;
214
+
200
215
  /**
201
216
  * A sub-identity was removed from an identity and the deposit freed.
202
217
  **/
@@ -264,6 +279,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
264
279
  { who: AccountId32; username: Bytes }
265
280
  >;
266
281
 
282
+ /**
283
+ * A username has been unbound.
284
+ **/
285
+ UsernameUnbound: GenericPalletEvent<Rv, 'Identity', 'UsernameUnbound', { username: Bytes }>;
286
+
287
+ /**
288
+ * A username has been removed.
289
+ **/
290
+ UsernameRemoved: GenericPalletEvent<Rv, 'Identity', 'UsernameRemoved', { username: Bytes }>;
291
+
292
+ /**
293
+ * A username has been killed.
294
+ **/
295
+ UsernameKilled: GenericPalletEvent<Rv, 'Identity', 'UsernameKilled', { username: Bytes }>;
296
+
267
297
  /**
268
298
  * Generic pallet event
269
299
  **/
@@ -1241,7 +1271,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1241
1271
  /**
1242
1272
  * Execution of an XCM message was attempted.
1243
1273
  **/
1244
- Attempted: GenericPalletEvent<Rv, 'PolkadotXcm', 'Attempted', { outcome: StagingXcmV4TraitsOutcome }>;
1274
+ Attempted: GenericPalletEvent<Rv, 'PolkadotXcm', 'Attempted', { outcome: StagingXcmV5TraitsOutcome }>;
1245
1275
 
1246
1276
  /**
1247
1277
  * A XCM message was sent.
@@ -1251,9 +1281,9 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1251
1281
  'PolkadotXcm',
1252
1282
  'Sent',
1253
1283
  {
1254
- origin: StagingXcmV4Location;
1255
- destination: StagingXcmV4Location;
1256
- message: StagingXcmV4Xcm;
1284
+ origin: StagingXcmV5Location;
1285
+ destination: StagingXcmV5Location;
1286
+ message: StagingXcmV5Xcm;
1257
1287
  messageId: FixedBytes<32>;
1258
1288
  }
1259
1289
  >;
@@ -1267,7 +1297,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1267
1297
  Rv,
1268
1298
  'PolkadotXcm',
1269
1299
  'UnexpectedResponse',
1270
- { origin: StagingXcmV4Location; queryId: bigint }
1300
+ { origin: StagingXcmV5Location; queryId: bigint }
1271
1301
  >;
1272
1302
 
1273
1303
  /**
@@ -1278,7 +1308,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1278
1308
  Rv,
1279
1309
  'PolkadotXcm',
1280
1310
  'ResponseReady',
1281
- { queryId: bigint; response: StagingXcmV4Response }
1311
+ { queryId: bigint; response: StagingXcmV5Response }
1282
1312
  >;
1283
1313
 
1284
1314
  /**
@@ -1342,7 +1372,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1342
1372
  Rv,
1343
1373
  'PolkadotXcm',
1344
1374
  'InvalidResponder',
1345
- { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined }
1375
+ { origin: StagingXcmV5Location; queryId: bigint; expectedLocation?: StagingXcmV5Location | undefined }
1346
1376
  >;
1347
1377
 
1348
1378
  /**
@@ -1358,7 +1388,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1358
1388
  Rv,
1359
1389
  'PolkadotXcm',
1360
1390
  'InvalidResponderVersion',
1361
- { origin: StagingXcmV4Location; queryId: bigint }
1391
+ { origin: StagingXcmV5Location; queryId: bigint }
1362
1392
  >;
1363
1393
 
1364
1394
  /**
@@ -1373,7 +1403,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1373
1403
  Rv,
1374
1404
  'PolkadotXcm',
1375
1405
  'AssetsTrapped',
1376
- { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets }
1406
+ { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
1377
1407
  >;
1378
1408
 
1379
1409
  /**
@@ -1385,7 +1415,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1385
1415
  Rv,
1386
1416
  'PolkadotXcm',
1387
1417
  'VersionChangeNotified',
1388
- { destination: StagingXcmV4Location; result: number; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
1418
+ { destination: StagingXcmV5Location; result: number; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
1389
1419
  >;
1390
1420
 
1391
1421
  /**
@@ -1396,7 +1426,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1396
1426
  Rv,
1397
1427
  'PolkadotXcm',
1398
1428
  'SupportedVersionChanged',
1399
- { location: StagingXcmV4Location; version: number }
1429
+ { location: StagingXcmV5Location; version: number }
1400
1430
  >;
1401
1431
 
1402
1432
  /**
@@ -1407,7 +1437,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1407
1437
  Rv,
1408
1438
  'PolkadotXcm',
1409
1439
  'NotifyTargetSendFail',
1410
- { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError }
1440
+ { location: StagingXcmV5Location; queryId: bigint; error: XcmV5TraitsError }
1411
1441
  >;
1412
1442
 
1413
1443
  /**
@@ -1434,7 +1464,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1434
1464
  Rv,
1435
1465
  'PolkadotXcm',
1436
1466
  'InvalidQuerierVersion',
1437
- { origin: StagingXcmV4Location; queryId: bigint }
1467
+ { origin: StagingXcmV5Location; queryId: bigint }
1438
1468
  >;
1439
1469
 
1440
1470
  /**
@@ -1447,10 +1477,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1447
1477
  'PolkadotXcm',
1448
1478
  'InvalidQuerier',
1449
1479
  {
1450
- origin: StagingXcmV4Location;
1480
+ origin: StagingXcmV5Location;
1451
1481
  queryId: bigint;
1452
- expectedQuerier: StagingXcmV4Location;
1453
- maybeActualQuerier?: StagingXcmV4Location | undefined;
1482
+ expectedQuerier: StagingXcmV5Location;
1483
+ maybeActualQuerier?: StagingXcmV5Location | undefined;
1454
1484
  }
1455
1485
  >;
1456
1486
 
@@ -1462,7 +1492,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1462
1492
  Rv,
1463
1493
  'PolkadotXcm',
1464
1494
  'VersionNotifyStarted',
1465
- { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
1495
+ { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
1466
1496
  >;
1467
1497
 
1468
1498
  /**
@@ -1472,7 +1502,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1472
1502
  Rv,
1473
1503
  'PolkadotXcm',
1474
1504
  'VersionNotifyRequested',
1475
- { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
1505
+ { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
1476
1506
  >;
1477
1507
 
1478
1508
  /**
@@ -1483,7 +1513,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1483
1513
  Rv,
1484
1514
  'PolkadotXcm',
1485
1515
  'VersionNotifyUnrequested',
1486
- { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
1516
+ { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
1487
1517
  >;
1488
1518
 
1489
1519
  /**
@@ -1493,7 +1523,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1493
1523
  Rv,
1494
1524
  'PolkadotXcm',
1495
1525
  'FeesPaid',
1496
- { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets }
1526
+ { paying: StagingXcmV5Location; fees: StagingXcmV5AssetAssets }
1497
1527
  >;
1498
1528
 
1499
1529
  /**
@@ -1503,7 +1533,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1503
1533
  Rv,
1504
1534
  'PolkadotXcm',
1505
1535
  'AssetsClaimed',
1506
- { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets }
1536
+ { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
1507
1537
  >;
1508
1538
 
1509
1539
  /**
@@ -1540,7 +1570,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1540
1570
  Rv,
1541
1571
  'CumulusXcm',
1542
1572
  'ExecutedDownward',
1543
- [FixedBytes<32>, StagingXcmV4TraitsOutcome]
1573
+ [FixedBytes<32>, StagingXcmV5TraitsOutcome]
1544
1574
  >;
1545
1575
 
1546
1576
  /**
@@ -1618,7 +1648,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1618
1648
  Rv,
1619
1649
  'XTokens',
1620
1650
  'TransferredAssets',
1621
- { sender: AccountId32; assets: StagingXcmV4AssetAssets; fee: StagingXcmV4Asset; dest: StagingXcmV4Location }
1651
+ { sender: AccountId32; assets: StagingXcmV5AssetAssets; fee: StagingXcmV5Asset; dest: StagingXcmV5Location }
1622
1652
  >;
1623
1653
 
1624
1654
  /**
@@ -2254,6 +2284,31 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2254
2284
  **/
2255
2285
  Closed: GenericPalletEvent<Rv, 'Council', 'Closed', { proposalHash: H256; yes: number; no: number }>;
2256
2286
 
2287
+ /**
2288
+ * A proposal was killed.
2289
+ **/
2290
+ Killed: GenericPalletEvent<Rv, 'Council', 'Killed', { proposalHash: H256 }>;
2291
+
2292
+ /**
2293
+ * Some cost for storing a proposal was burned.
2294
+ **/
2295
+ ProposalCostBurned: GenericPalletEvent<
2296
+ Rv,
2297
+ 'Council',
2298
+ 'ProposalCostBurned',
2299
+ { proposalHash: H256; who: AccountId32 }
2300
+ >;
2301
+
2302
+ /**
2303
+ * Some cost for storing a proposal was released.
2304
+ **/
2305
+ ProposalCostReleased: GenericPalletEvent<
2306
+ Rv,
2307
+ 'Council',
2308
+ 'ProposalCostReleased',
2309
+ { proposalHash: H256; who: AccountId32 }
2310
+ >;
2311
+
2257
2312
  /**
2258
2313
  * Generic pallet event
2259
2314
  **/
@@ -2320,6 +2375,31 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2320
2375
  **/
2321
2376
  Closed: GenericPalletEvent<Rv, 'TechnicalCommittee', 'Closed', { proposalHash: H256; yes: number; no: number }>;
2322
2377
 
2378
+ /**
2379
+ * A proposal was killed.
2380
+ **/
2381
+ Killed: GenericPalletEvent<Rv, 'TechnicalCommittee', 'Killed', { proposalHash: H256 }>;
2382
+
2383
+ /**
2384
+ * Some cost for storing a proposal was burned.
2385
+ **/
2386
+ ProposalCostBurned: GenericPalletEvent<
2387
+ Rv,
2388
+ 'TechnicalCommittee',
2389
+ 'ProposalCostBurned',
2390
+ { proposalHash: H256; who: AccountId32 }
2391
+ >;
2392
+
2393
+ /**
2394
+ * Some cost for storing a proposal was released.
2395
+ **/
2396
+ ProposalCostReleased: GenericPalletEvent<
2397
+ Rv,
2398
+ 'TechnicalCommittee',
2399
+ 'ProposalCostReleased',
2400
+ { proposalHash: H256; who: AccountId32 }
2401
+ >;
2402
+
2323
2403
  /**
2324
2404
  * Generic pallet event
2325
2405
  **/
@@ -2386,6 +2466,31 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2386
2466
  **/
2387
2467
  Closed: GenericPalletEvent<Rv, 'CommunityCouncil', 'Closed', { proposalHash: H256; yes: number; no: number }>;
2388
2468
 
2469
+ /**
2470
+ * A proposal was killed.
2471
+ **/
2472
+ Killed: GenericPalletEvent<Rv, 'CommunityCouncil', 'Killed', { proposalHash: H256 }>;
2473
+
2474
+ /**
2475
+ * Some cost for storing a proposal was burned.
2476
+ **/
2477
+ ProposalCostBurned: GenericPalletEvent<
2478
+ Rv,
2479
+ 'CommunityCouncil',
2480
+ 'ProposalCostBurned',
2481
+ { proposalHash: H256; who: AccountId32 }
2482
+ >;
2483
+
2484
+ /**
2485
+ * Some cost for storing a proposal was released.
2486
+ **/
2487
+ ProposalCostReleased: GenericPalletEvent<
2488
+ Rv,
2489
+ 'CommunityCouncil',
2490
+ 'ProposalCostReleased',
2491
+ { proposalHash: H256; who: AccountId32 }
2492
+ >;
2493
+
2389
2494
  /**
2390
2495
  * Generic pallet event
2391
2496
  **/
package/astar/index.d.ts CHANGED
@@ -23,7 +23,7 @@ export interface VersionedAstarApi<Rv extends RpcVersion> extends GenericSubstra
23
23
 
24
24
  /**
25
25
  * @name: AstarApi
26
- * @specVersion: 1401
26
+ * @specVersion: 1501
27
27
  **/
28
28
  export interface AstarApi {
29
29
  legacy: VersionedAstarApi<RpcLegacy>;