@dedot/chaintypes 0.59.0 → 0.60.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.59.0",
3
+ "version": "0.60.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -19,7 +19,7 @@
19
19
  "directory": "dist"
20
20
  },
21
21
  "license": "Apache-2.0",
22
- "gitHead": "528c5bd34ea313357553c6983281a559dfd69fbf",
22
+ "gitHead": "d916eaf23ec3efd20071801017b42b9fd5e50d3c",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts"
25
25
  }
@@ -501,15 +501,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
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
- };
513
504
  /**
514
505
  * Pallet `Claims`'s constants
515
506
  **/
@@ -897,6 +888,25 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
897
888
  **/
898
889
  [name: string]: any;
899
890
  };
891
+ /**
892
+ * Pallet `DelegatedStaking`'s constants
893
+ **/
894
+ delegatedStaking: {
895
+ /**
896
+ * Injected identifier for the pallet.
897
+ **/
898
+ palletId: FrameSupportPalletId;
899
+
900
+ /**
901
+ * Fraction of the slash that is rewarded to the caller of pending slash to the agent.
902
+ **/
903
+ slashRewardFraction: Perbill;
904
+
905
+ /**
906
+ * Generic pallet constant
907
+ **/
908
+ [name: string]: any;
909
+ };
900
910
  /**
901
911
  * Pallet `ParachainsOrigin`'s constants
902
912
  **/
@@ -139,11 +139,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
139
139
  **/
140
140
  TooFew: GenericPalletError<Rv>;
141
141
 
142
- /**
143
- * No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
144
- **/
145
- NoCost: GenericPalletError<Rv>;
146
-
147
142
  /**
148
143
  * Generic pallet error
149
144
  **/
@@ -1358,6 +1353,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1358
1353
  **/
1359
1354
  NothingToSlash: GenericPalletError<Rv>;
1360
1355
 
1356
+ /**
1357
+ * The slash amount is too low to be applied.
1358
+ **/
1359
+ SlashTooLow: GenericPalletError<Rv>;
1360
+
1361
1361
  /**
1362
1362
  * The pool or member delegation has already migrated to delegate stake.
1363
1363
  **/
@@ -1419,6 +1419,79 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1419
1419
  **/
1420
1420
  [error: string]: GenericPalletError<Rv>;
1421
1421
  };
1422
+ /**
1423
+ * Pallet `DelegatedStaking`'s errors
1424
+ **/
1425
+ delegatedStaking: {
1426
+ /**
1427
+ * The account cannot perform this operation.
1428
+ **/
1429
+ NotAllowed: GenericPalletError<Rv>;
1430
+
1431
+ /**
1432
+ * An existing staker cannot perform this action.
1433
+ **/
1434
+ AlreadyStaking: GenericPalletError<Rv>;
1435
+
1436
+ /**
1437
+ * Reward Destination cannot be same as `Agent` account.
1438
+ **/
1439
+ InvalidRewardDestination: GenericPalletError<Rv>;
1440
+
1441
+ /**
1442
+ * Delegation conditions are not met.
1443
+ *
1444
+ * Possible issues are
1445
+ * 1) Cannot delegate to self,
1446
+ * 2) Cannot delegate to multiple delegates.
1447
+ **/
1448
+ InvalidDelegation: GenericPalletError<Rv>;
1449
+
1450
+ /**
1451
+ * The account does not have enough funds to perform the operation.
1452
+ **/
1453
+ NotEnoughFunds: GenericPalletError<Rv>;
1454
+
1455
+ /**
1456
+ * Not an existing `Agent` account.
1457
+ **/
1458
+ NotAgent: GenericPalletError<Rv>;
1459
+
1460
+ /**
1461
+ * Not a Delegator account.
1462
+ **/
1463
+ NotDelegator: GenericPalletError<Rv>;
1464
+
1465
+ /**
1466
+ * Some corruption in internal state.
1467
+ **/
1468
+ BadState: GenericPalletError<Rv>;
1469
+
1470
+ /**
1471
+ * Unapplied pending slash restricts operation on `Agent`.
1472
+ **/
1473
+ UnappliedSlash: GenericPalletError<Rv>;
1474
+
1475
+ /**
1476
+ * `Agent` has no pending slash to be applied.
1477
+ **/
1478
+ NothingToSlash: GenericPalletError<Rv>;
1479
+
1480
+ /**
1481
+ * Failed to withdraw amount from Core Staking.
1482
+ **/
1483
+ WithdrawFailed: GenericPalletError<Rv>;
1484
+
1485
+ /**
1486
+ * Operation not supported by this pallet.
1487
+ **/
1488
+ NotSupported: GenericPalletError<Rv>;
1489
+
1490
+ /**
1491
+ * Generic pallet error
1492
+ **/
1493
+ [error: string]: GenericPalletError<Rv>;
1494
+ };
1422
1495
  /**
1423
1496
  * Pallet `Configuration`'s errors
1424
1497
  **/
@@ -1489,11 +1562,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1489
1562
  **/
1490
1563
  InvalidBacking: GenericPalletError<Rv>;
1491
1564
 
1492
- /**
1493
- * Collator did not sign PoV.
1494
- **/
1495
- NotCollatorSigned: GenericPalletError<Rv>;
1496
-
1497
1565
  /**
1498
1566
  * The validation data hash does not match expected.
1499
1567
  **/
@@ -2470,9 +2538,24 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2470
2538
  InvalidKeyOwnershipProof: GenericPalletError<Rv>;
2471
2539
 
2472
2540
  /**
2473
- * An equivocation proof provided as part of an equivocation report is invalid.
2541
+ * A double voting proof provided as part of an equivocation report is invalid.
2474
2542
  **/
2475
- InvalidEquivocationProof: GenericPalletError<Rv>;
2543
+ InvalidDoubleVotingProof: GenericPalletError<Rv>;
2544
+
2545
+ /**
2546
+ * A fork voting proof provided as part of an equivocation report is invalid.
2547
+ **/
2548
+ InvalidForkVotingProof: GenericPalletError<Rv>;
2549
+
2550
+ /**
2551
+ * A future block voting proof provided as part of an equivocation report is invalid.
2552
+ **/
2553
+ InvalidFutureBlockVotingProof: GenericPalletError<Rv>;
2554
+
2555
+ /**
2556
+ * The session of the equivocation proof is invalid
2557
+ **/
2558
+ InvalidEquivocationProofSession: GenericPalletError<Rv>;
2476
2559
 
2477
2560
  /**
2478
2561
  * A given equivocation report is valid but already previously reported.
@@ -21,12 +21,11 @@ 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,
28
- PolkadotRuntimeRuntimeParametersKey,
29
- PolkadotRuntimeRuntimeParametersValue,
30
29
  PolkadotRuntimeProxyType,
31
30
  PalletMultisigTimepoint,
32
31
  PalletElectionProviderMultiPhaseElectionCompute,
@@ -35,10 +34,10 @@ import type {
35
34
  PalletNominationPoolsPoolState,
36
35
  PalletNominationPoolsCommissionChangeRate,
37
36
  PalletNominationPoolsCommissionClaimPermission,
38
- PolkadotPrimitivesV7CandidateReceipt,
37
+ PolkadotPrimitivesV8CandidateReceipt,
39
38
  PolkadotParachainPrimitivesPrimitivesHeadData,
40
- PolkadotPrimitivesV7CoreIndex,
41
- PolkadotPrimitivesV7GroupIndex,
39
+ PolkadotPrimitivesV8CoreIndex,
40
+ PolkadotPrimitivesV8GroupIndex,
42
41
  PolkadotParachainPrimitivesPrimitivesId,
43
42
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
44
43
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
@@ -700,6 +699,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
700
699
  **/
701
700
  Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', AccountId32>;
702
701
 
702
+ /**
703
+ * An account that has voted
704
+ **/
705
+ Voted: GenericPalletEvent<
706
+ Rv,
707
+ 'ConvictionVoting',
708
+ 'Voted',
709
+ { who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
710
+ >;
711
+
712
+ /**
713
+ * A vote that been removed
714
+ **/
715
+ VoteRemoved: GenericPalletEvent<
716
+ Rv,
717
+ 'ConvictionVoting',
718
+ 'VoteRemoved',
719
+ { who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
720
+ >;
721
+
703
722
  /**
704
723
  * Generic pallet event
705
724
  **/
@@ -1059,42 +1078,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1059
1078
  **/
1060
1079
  [prop: string]: GenericPalletEvent<Rv>;
1061
1080
  };
1062
- /**
1063
- * Pallet `Parameters`'s events
1064
- **/
1065
- parameters: {
1066
- /**
1067
- * A Parameter was set.
1068
- *
1069
- * Is also emitted when the value was not changed.
1070
- **/
1071
- Updated: GenericPalletEvent<
1072
- Rv,
1073
- 'Parameters',
1074
- 'Updated',
1075
- {
1076
- /**
1077
- * The key that was updated.
1078
- **/
1079
- key: PolkadotRuntimeRuntimeParametersKey;
1080
-
1081
- /**
1082
- * The old value before this call.
1083
- **/
1084
- oldValue?: PolkadotRuntimeRuntimeParametersValue | undefined;
1085
-
1086
- /**
1087
- * The new value after this call.
1088
- **/
1089
- newValue?: PolkadotRuntimeRuntimeParametersValue | undefined;
1090
- }
1091
- >;
1092
-
1093
- /**
1094
- * Generic pallet event
1095
- **/
1096
- [prop: string]: GenericPalletEvent<Rv>;
1097
- };
1098
1081
  /**
1099
1082
  * Pallet `Claims`'s events
1100
1083
  **/
@@ -1555,8 +1538,15 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1555
1538
  * A member has been removed from a pool.
1556
1539
  *
1557
1540
  * The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
1541
+ * Any funds that are still delegated (i.e. dangling delegation) are released and are
1542
+ * represented by `released_balance`.
1558
1543
  **/
1559
- MemberRemoved: GenericPalletEvent<Rv, 'NominationPools', 'MemberRemoved', { poolId: number; member: AccountId32 }>;
1544
+ MemberRemoved: GenericPalletEvent<
1545
+ Rv,
1546
+ 'NominationPools',
1547
+ 'MemberRemoved',
1548
+ { poolId: number; member: AccountId32; releasedBalance: bigint }
1549
+ >;
1560
1550
 
1561
1551
  /**
1562
1552
  * The roles of a pool have been updated to the given new roles. Note that the depositor
@@ -1701,6 +1691,55 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1701
1691
  **/
1702
1692
  [prop: string]: GenericPalletEvent<Rv>;
1703
1693
  };
1694
+ /**
1695
+ * Pallet `DelegatedStaking`'s events
1696
+ **/
1697
+ delegatedStaking: {
1698
+ /**
1699
+ * Funds delegated by a delegator.
1700
+ **/
1701
+ Delegated: GenericPalletEvent<
1702
+ Rv,
1703
+ 'DelegatedStaking',
1704
+ 'Delegated',
1705
+ { agent: AccountId32; delegator: AccountId32; amount: bigint }
1706
+ >;
1707
+
1708
+ /**
1709
+ * Funds released to a delegator.
1710
+ **/
1711
+ Released: GenericPalletEvent<
1712
+ Rv,
1713
+ 'DelegatedStaking',
1714
+ 'Released',
1715
+ { agent: AccountId32; delegator: AccountId32; amount: bigint }
1716
+ >;
1717
+
1718
+ /**
1719
+ * Funds slashed from a delegator.
1720
+ **/
1721
+ Slashed: GenericPalletEvent<
1722
+ Rv,
1723
+ 'DelegatedStaking',
1724
+ 'Slashed',
1725
+ { agent: AccountId32; delegator: AccountId32; amount: bigint }
1726
+ >;
1727
+
1728
+ /**
1729
+ * Unclaimed delegation funds migrated to delegator.
1730
+ **/
1731
+ MigratedDelegation: GenericPalletEvent<
1732
+ Rv,
1733
+ 'DelegatedStaking',
1734
+ 'MigratedDelegation',
1735
+ { agent: AccountId32; delegator: AccountId32; amount: bigint }
1736
+ >;
1737
+
1738
+ /**
1739
+ * Generic pallet event
1740
+ **/
1741
+ [prop: string]: GenericPalletEvent<Rv>;
1742
+ };
1704
1743
  /**
1705
1744
  * Pallet `ParaInclusion`'s events
1706
1745
  **/
@@ -1713,10 +1752,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1713
1752
  'ParaInclusion',
1714
1753
  'CandidateBacked',
1715
1754
  [
1716
- PolkadotPrimitivesV7CandidateReceipt,
1755
+ PolkadotPrimitivesV8CandidateReceipt,
1717
1756
  PolkadotParachainPrimitivesPrimitivesHeadData,
1718
- PolkadotPrimitivesV7CoreIndex,
1719
- PolkadotPrimitivesV7GroupIndex,
1757
+ PolkadotPrimitivesV8CoreIndex,
1758
+ PolkadotPrimitivesV8GroupIndex,
1720
1759
  ]
1721
1760
  >;
1722
1761
 
@@ -1728,10 +1767,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1728
1767
  'ParaInclusion',
1729
1768
  'CandidateIncluded',
1730
1769
  [
1731
- PolkadotPrimitivesV7CandidateReceipt,
1770
+ PolkadotPrimitivesV8CandidateReceipt,
1732
1771
  PolkadotParachainPrimitivesPrimitivesHeadData,
1733
- PolkadotPrimitivesV7CoreIndex,
1734
- PolkadotPrimitivesV7GroupIndex,
1772
+ PolkadotPrimitivesV8CoreIndex,
1773
+ PolkadotPrimitivesV8GroupIndex,
1735
1774
  ]
1736
1775
  >;
1737
1776
 
@@ -1743,9 +1782,9 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1743
1782
  'ParaInclusion',
1744
1783
  'CandidateTimedOut',
1745
1784
  [
1746
- PolkadotPrimitivesV7CandidateReceipt,
1785
+ PolkadotPrimitivesV8CandidateReceipt,
1747
1786
  PolkadotParachainPrimitivesPrimitivesHeadData,
1748
- PolkadotPrimitivesV7CoreIndex,
1787
+ PolkadotPrimitivesV8CoreIndex,
1749
1788
  ]
1750
1789
  >;
1751
1790
 
@@ -2246,7 +2285,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2246
2285
  /**
2247
2286
  * A core has received a new assignment from the broker chain.
2248
2287
  **/
2249
- CoreAssigned: GenericPalletEvent<Rv, 'Coretime', 'CoreAssigned', { core: PolkadotPrimitivesV7CoreIndex }>;
2288
+ CoreAssigned: GenericPalletEvent<Rv, 'Coretime', 'CoreAssigned', { core: PolkadotPrimitivesV8CoreIndex }>;
2250
2289
 
2251
2290
  /**
2252
2291
  * Generic pallet event
@@ -23,7 +23,7 @@ export interface VersionedPolkadotApi<Rv extends RpcVersion> extends GenericSubs
23
23
 
24
24
  /**
25
25
  * @name: PolkadotApi
26
- * @specVersion: 1003004
26
+ * @specVersion: 1004000
27
27
  **/
28
28
  export interface PolkadotApi {
29
29
  legacy: VersionedPolkadotApi<RpcLegacy>;