@dedot/chaintypes 0.230.0 → 0.232.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.230.0",
3
+ "version": "0.232.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -25,7 +25,7 @@
25
25
  "directory": "dist"
26
26
  },
27
27
  "license": "Apache-2.0",
28
- "gitHead": "00647f03866267a6f7fe8e8590d45b74b9d42797",
28
+ "gitHead": "20a73cc288be66dbe682f111c40797ce2c9c289b",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
package/paseo/consts.d.ts CHANGED
@@ -501,6 +501,15 @@ export interface ChainConsts extends GenericChainConsts {
501
501
  **/
502
502
  [name: string]: any;
503
503
  };
504
+ /**
505
+ * Pallet `Parameters`'s constants
506
+ **/
507
+ parameters: {
508
+ /**
509
+ * Generic pallet constant
510
+ **/
511
+ [name: string]: any;
512
+ };
504
513
  /**
505
514
  * Pallet `Claims`'s constants
506
515
  **/
@@ -888,6 +897,25 @@ export interface ChainConsts extends GenericChainConsts {
888
897
  **/
889
898
  [name: string]: any;
890
899
  };
900
+ /**
901
+ * Pallet `DelegatedStaking`'s constants
902
+ **/
903
+ delegatedStaking: {
904
+ /**
905
+ * Injected identifier for the pallet.
906
+ **/
907
+ palletId: FrameSupportPalletId;
908
+
909
+ /**
910
+ * Fraction of the slash that is rewarded to the caller of pending slash to the agent.
911
+ **/
912
+ slashRewardFraction: Perbill;
913
+
914
+ /**
915
+ * Generic pallet constant
916
+ **/
917
+ [name: string]: any;
918
+ };
891
919
  /**
892
920
  * Pallet `ParachainsOrigin`'s constants
893
921
  **/
package/paseo/errors.d.ts CHANGED
@@ -139,11 +139,6 @@ export interface ChainErrors extends GenericChainErrors {
139
139
  **/
140
140
  TooFew: GenericPalletError;
141
141
 
142
- /**
143
- * No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
144
- **/
145
- NoCost: GenericPalletError;
146
-
147
142
  /**
148
143
  * Generic pallet error
149
144
  **/
@@ -444,6 +439,12 @@ export interface ChainErrors extends GenericChainErrors {
444
439
  **/
445
440
  VirtualStakerNotAllowed: GenericPalletError;
446
441
 
442
+ /**
443
+ * Account is restricted from participation in staking. This may happen if the account is
444
+ * staking in another way already, such as via pool.
445
+ **/
446
+ Restricted: GenericPalletError;
447
+
447
448
  /**
448
449
  * Generic pallet error
449
450
  **/
@@ -1358,6 +1359,11 @@ export interface ChainErrors extends GenericChainErrors {
1358
1359
  **/
1359
1360
  NothingToSlash: GenericPalletError;
1360
1361
 
1362
+ /**
1363
+ * The slash amount is too low to be applied.
1364
+ **/
1365
+ SlashTooLow: GenericPalletError;
1366
+
1361
1367
  /**
1362
1368
  * The pool or member delegation has already migrated to delegate stake.
1363
1369
  **/
@@ -1373,6 +1379,12 @@ export interface ChainErrors extends GenericChainErrors {
1373
1379
  **/
1374
1380
  NotSupported: GenericPalletError;
1375
1381
 
1382
+ /**
1383
+ * Account is restricted from participation in pools. This may happen if the account is
1384
+ * staking in another way already.
1385
+ **/
1386
+ Restricted: GenericPalletError;
1387
+
1376
1388
  /**
1377
1389
  * Generic pallet error
1378
1390
  **/
@@ -1419,6 +1431,79 @@ export interface ChainErrors extends GenericChainErrors {
1419
1431
  **/
1420
1432
  [error: string]: GenericPalletError;
1421
1433
  };
1434
+ /**
1435
+ * Pallet `DelegatedStaking`'s errors
1436
+ **/
1437
+ delegatedStaking: {
1438
+ /**
1439
+ * The account cannot perform this operation.
1440
+ **/
1441
+ NotAllowed: GenericPalletError;
1442
+
1443
+ /**
1444
+ * An existing staker cannot perform this action.
1445
+ **/
1446
+ AlreadyStaking: GenericPalletError;
1447
+
1448
+ /**
1449
+ * Reward Destination cannot be same as `Agent` account.
1450
+ **/
1451
+ InvalidRewardDestination: GenericPalletError;
1452
+
1453
+ /**
1454
+ * Delegation conditions are not met.
1455
+ *
1456
+ * Possible issues are
1457
+ * 1) Cannot delegate to self,
1458
+ * 2) Cannot delegate to multiple delegates.
1459
+ **/
1460
+ InvalidDelegation: GenericPalletError;
1461
+
1462
+ /**
1463
+ * The account does not have enough funds to perform the operation.
1464
+ **/
1465
+ NotEnoughFunds: GenericPalletError;
1466
+
1467
+ /**
1468
+ * Not an existing `Agent` account.
1469
+ **/
1470
+ NotAgent: GenericPalletError;
1471
+
1472
+ /**
1473
+ * Not a Delegator account.
1474
+ **/
1475
+ NotDelegator: GenericPalletError;
1476
+
1477
+ /**
1478
+ * Some corruption in internal state.
1479
+ **/
1480
+ BadState: GenericPalletError;
1481
+
1482
+ /**
1483
+ * Unapplied pending slash restricts operation on `Agent`.
1484
+ **/
1485
+ UnappliedSlash: GenericPalletError;
1486
+
1487
+ /**
1488
+ * `Agent` has no pending slash to be applied.
1489
+ **/
1490
+ NothingToSlash: GenericPalletError;
1491
+
1492
+ /**
1493
+ * Failed to withdraw amount from Core Staking.
1494
+ **/
1495
+ WithdrawFailed: GenericPalletError;
1496
+
1497
+ /**
1498
+ * Operation not supported by this pallet.
1499
+ **/
1500
+ NotSupported: GenericPalletError;
1501
+
1502
+ /**
1503
+ * Generic pallet error
1504
+ **/
1505
+ [error: string]: GenericPalletError;
1506
+ };
1422
1507
  /**
1423
1508
  * Pallet `Configuration`'s errors
1424
1509
  **/
@@ -1489,11 +1574,6 @@ export interface ChainErrors extends GenericChainErrors {
1489
1574
  **/
1490
1575
  InvalidBacking: GenericPalletError;
1491
1576
 
1492
- /**
1493
- * Collator did not sign PoV.
1494
- **/
1495
- NotCollatorSigned: GenericPalletError;
1496
-
1497
1577
  /**
1498
1578
  * The validation data hash does not match expected.
1499
1579
  **/
@@ -2470,9 +2550,24 @@ export interface ChainErrors extends GenericChainErrors {
2470
2550
  InvalidKeyOwnershipProof: GenericPalletError;
2471
2551
 
2472
2552
  /**
2473
- * An equivocation proof provided as part of an equivocation report is invalid.
2553
+ * A double voting proof provided as part of an equivocation report is invalid.
2474
2554
  **/
2475
- InvalidEquivocationProof: GenericPalletError;
2555
+ InvalidDoubleVotingProof: GenericPalletError;
2556
+
2557
+ /**
2558
+ * A fork voting proof provided as part of an equivocation report is invalid.
2559
+ **/
2560
+ InvalidForkVotingProof: GenericPalletError;
2561
+
2562
+ /**
2563
+ * A future block voting proof provided as part of an equivocation report is invalid.
2564
+ **/
2565
+ InvalidFutureBlockVotingProof: GenericPalletError;
2566
+
2567
+ /**
2568
+ * The session of the equivocation proof is invalid
2569
+ **/
2570
+ InvalidEquivocationProofSession: GenericPalletError;
2476
2571
 
2477
2572
  /**
2478
2573
  * A given equivocation report is valid but already previously reported.
package/paseo/events.d.ts CHANGED
@@ -21,10 +21,13 @@ import type {
21
21
  SpConsensusGrandpaAppPublic,
22
22
  PolkadotRuntimeCommonImplsVersionedLocatableAsset,
23
23
  XcmVersionedLocation,
24
+ PalletConvictionVotingVoteAccountVote,
24
25
  FrameSupportPreimagesBounded,
25
26
  PalletConvictionVotingTally,
26
27
  FrameSupportDispatchPostDispatchInfo,
27
28
  SpRuntimeDispatchErrorWithPostInfo,
29
+ PaseoRuntimeRuntimeParametersKey,
30
+ PaseoRuntimeRuntimeParametersValue,
28
31
  PaseoRuntimeProxyType,
29
32
  PalletMultisigTimepoint,
30
33
  PalletElectionProviderMultiPhaseElectionCompute,
@@ -33,10 +36,10 @@ import type {
33
36
  PalletNominationPoolsPoolState,
34
37
  PalletNominationPoolsCommissionChangeRate,
35
38
  PalletNominationPoolsCommissionClaimPermission,
36
- PolkadotPrimitivesV7CandidateReceipt,
39
+ PolkadotPrimitivesV8CandidateReceipt,
37
40
  PolkadotParachainPrimitivesPrimitivesHeadData,
38
- PolkadotPrimitivesV7CoreIndex,
39
- PolkadotPrimitivesV7GroupIndex,
41
+ PolkadotPrimitivesV8CoreIndex,
42
+ PolkadotPrimitivesV8GroupIndex,
40
43
  PolkadotParachainPrimitivesPrimitivesId,
41
44
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
42
45
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
@@ -657,6 +660,24 @@ export interface ChainEvents extends GenericChainEvents {
657
660
  **/
658
661
  Undelegated: GenericPalletEvent<'ConvictionVoting', 'Undelegated', AccountId32>;
659
662
 
663
+ /**
664
+ * An account that has voted
665
+ **/
666
+ Voted: GenericPalletEvent<
667
+ 'ConvictionVoting',
668
+ 'Voted',
669
+ { who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
670
+ >;
671
+
672
+ /**
673
+ * A vote that been removed
674
+ **/
675
+ VoteRemoved: GenericPalletEvent<
676
+ 'ConvictionVoting',
677
+ 'VoteRemoved',
678
+ { who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
679
+ >;
680
+
660
681
  /**
661
682
  * Generic pallet event
662
683
  **/
@@ -999,6 +1020,41 @@ export interface ChainEvents extends GenericChainEvents {
999
1020
  **/
1000
1021
  [prop: string]: GenericPalletEvent;
1001
1022
  };
1023
+ /**
1024
+ * Pallet `Parameters`'s events
1025
+ **/
1026
+ parameters: {
1027
+ /**
1028
+ * A Parameter was set.
1029
+ *
1030
+ * Is also emitted when the value was not changed.
1031
+ **/
1032
+ Updated: GenericPalletEvent<
1033
+ 'Parameters',
1034
+ 'Updated',
1035
+ {
1036
+ /**
1037
+ * The key that was updated.
1038
+ **/
1039
+ key: PaseoRuntimeRuntimeParametersKey;
1040
+
1041
+ /**
1042
+ * The old value before this call.
1043
+ **/
1044
+ oldValue?: PaseoRuntimeRuntimeParametersValue | undefined;
1045
+
1046
+ /**
1047
+ * The new value after this call.
1048
+ **/
1049
+ newValue?: PaseoRuntimeRuntimeParametersValue | undefined;
1050
+ }
1051
+ >;
1052
+
1053
+ /**
1054
+ * Generic pallet event
1055
+ **/
1056
+ [prop: string]: GenericPalletEvent;
1057
+ };
1002
1058
  /**
1003
1059
  * Pallet `Claims`'s events
1004
1060
  **/
@@ -1436,8 +1492,14 @@ export interface ChainEvents extends GenericChainEvents {
1436
1492
  * A member has been removed from a pool.
1437
1493
  *
1438
1494
  * The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
1495
+ * Any funds that are still delegated (i.e. dangling delegation) are released and are
1496
+ * represented by `released_balance`.
1439
1497
  **/
1440
- MemberRemoved: GenericPalletEvent<'NominationPools', 'MemberRemoved', { poolId: number; member: AccountId32 }>;
1498
+ MemberRemoved: GenericPalletEvent<
1499
+ 'NominationPools',
1500
+ 'MemberRemoved',
1501
+ { poolId: number; member: AccountId32; releasedBalance: bigint }
1502
+ >;
1441
1503
 
1442
1504
  /**
1443
1505
  * The roles of a pool have been updated to the given new roles. Note that the depositor
@@ -1568,6 +1630,51 @@ export interface ChainEvents extends GenericChainEvents {
1568
1630
  **/
1569
1631
  [prop: string]: GenericPalletEvent;
1570
1632
  };
1633
+ /**
1634
+ * Pallet `DelegatedStaking`'s events
1635
+ **/
1636
+ delegatedStaking: {
1637
+ /**
1638
+ * Funds delegated by a delegator.
1639
+ **/
1640
+ Delegated: GenericPalletEvent<
1641
+ 'DelegatedStaking',
1642
+ 'Delegated',
1643
+ { agent: AccountId32; delegator: AccountId32; amount: bigint }
1644
+ >;
1645
+
1646
+ /**
1647
+ * Funds released to a delegator.
1648
+ **/
1649
+ Released: GenericPalletEvent<
1650
+ 'DelegatedStaking',
1651
+ 'Released',
1652
+ { agent: AccountId32; delegator: AccountId32; amount: bigint }
1653
+ >;
1654
+
1655
+ /**
1656
+ * Funds slashed from a delegator.
1657
+ **/
1658
+ Slashed: GenericPalletEvent<
1659
+ 'DelegatedStaking',
1660
+ 'Slashed',
1661
+ { agent: AccountId32; delegator: AccountId32; amount: bigint }
1662
+ >;
1663
+
1664
+ /**
1665
+ * Unclaimed delegation funds migrated to delegator.
1666
+ **/
1667
+ MigratedDelegation: GenericPalletEvent<
1668
+ 'DelegatedStaking',
1669
+ 'MigratedDelegation',
1670
+ { agent: AccountId32; delegator: AccountId32; amount: bigint }
1671
+ >;
1672
+
1673
+ /**
1674
+ * Generic pallet event
1675
+ **/
1676
+ [prop: string]: GenericPalletEvent;
1677
+ };
1571
1678
  /**
1572
1679
  * Pallet `ParaInclusion`'s events
1573
1680
  **/
@@ -1579,10 +1686,10 @@ export interface ChainEvents extends GenericChainEvents {
1579
1686
  'ParaInclusion',
1580
1687
  'CandidateBacked',
1581
1688
  [
1582
- PolkadotPrimitivesV7CandidateReceipt,
1689
+ PolkadotPrimitivesV8CandidateReceipt,
1583
1690
  PolkadotParachainPrimitivesPrimitivesHeadData,
1584
- PolkadotPrimitivesV7CoreIndex,
1585
- PolkadotPrimitivesV7GroupIndex,
1691
+ PolkadotPrimitivesV8CoreIndex,
1692
+ PolkadotPrimitivesV8GroupIndex,
1586
1693
  ]
1587
1694
  >;
1588
1695
 
@@ -1593,10 +1700,10 @@ export interface ChainEvents extends GenericChainEvents {
1593
1700
  'ParaInclusion',
1594
1701
  'CandidateIncluded',
1595
1702
  [
1596
- PolkadotPrimitivesV7CandidateReceipt,
1703
+ PolkadotPrimitivesV8CandidateReceipt,
1597
1704
  PolkadotParachainPrimitivesPrimitivesHeadData,
1598
- PolkadotPrimitivesV7CoreIndex,
1599
- PolkadotPrimitivesV7GroupIndex,
1705
+ PolkadotPrimitivesV8CoreIndex,
1706
+ PolkadotPrimitivesV8GroupIndex,
1600
1707
  ]
1601
1708
  >;
1602
1709
 
@@ -1607,9 +1714,9 @@ export interface ChainEvents extends GenericChainEvents {
1607
1714
  'ParaInclusion',
1608
1715
  'CandidateTimedOut',
1609
1716
  [
1610
- PolkadotPrimitivesV7CandidateReceipt,
1717
+ PolkadotPrimitivesV8CandidateReceipt,
1611
1718
  PolkadotParachainPrimitivesPrimitivesHeadData,
1612
- PolkadotPrimitivesV7CoreIndex,
1719
+ PolkadotPrimitivesV8CoreIndex,
1613
1720
  ]
1614
1721
  >;
1615
1722
 
@@ -2067,7 +2174,7 @@ export interface ChainEvents extends GenericChainEvents {
2067
2174
  /**
2068
2175
  * A core has received a new assignment from the broker chain.
2069
2176
  **/
2070
- CoreAssigned: GenericPalletEvent<'Coretime', 'CoreAssigned', { core: PolkadotPrimitivesV7CoreIndex }>;
2177
+ CoreAssigned: GenericPalletEvent<'Coretime', 'CoreAssigned', { core: PolkadotPrimitivesV8CoreIndex }>;
2071
2178
 
2072
2179
  /**
2073
2180
  * Generic pallet event
package/paseo/index.d.ts CHANGED
@@ -50,7 +50,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
50
50
 
51
51
  /**
52
52
  * @name: PaseoApi
53
- * @specVersion: 1003000
53
+ * @specVersion: 1004001
54
54
  **/
55
55
  export interface PaseoApi extends GenericSubstrateApi {
56
56
  rpc: ChainJsonRpcApis;