@dedot/chaintypes 0.67.0 → 0.68.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 +2 -2
- package/paseo/consts.d.ts +19 -0
- package/paseo/errors.d.ts +107 -12
- package/paseo/events.d.ts +90 -13
- package/paseo/index.d.ts +1 -1
- package/paseo/query.d.ts +104 -52
- package/paseo/runtime.d.ts +141 -63
- package/paseo/tx.d.ts +190 -40
- package/paseo/types.d.ts +473 -205
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.68.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": "
|
|
22
|
+
"gitHead": "cf9dcec83818b29146ebe0a3ee210c3dc63c0708",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
package/paseo/consts.d.ts
CHANGED
|
@@ -897,6 +897,25 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
897
897
|
**/
|
|
898
898
|
[name: string]: any;
|
|
899
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
|
+
};
|
|
900
919
|
/**
|
|
901
920
|
* Pallet `ParachainsOrigin`'s constants
|
|
902
921
|
**/
|
package/paseo/errors.d.ts
CHANGED
|
@@ -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
|
**/
|
|
@@ -444,6 +439,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
444
439
|
**/
|
|
445
440
|
VirtualStakerNotAllowed: GenericPalletError<Rv>;
|
|
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<Rv>;
|
|
447
|
+
|
|
447
448
|
/**
|
|
448
449
|
* Generic pallet error
|
|
449
450
|
**/
|
|
@@ -1358,6 +1359,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1358
1359
|
**/
|
|
1359
1360
|
NothingToSlash: GenericPalletError<Rv>;
|
|
1360
1361
|
|
|
1362
|
+
/**
|
|
1363
|
+
* The slash amount is too low to be applied.
|
|
1364
|
+
**/
|
|
1365
|
+
SlashTooLow: GenericPalletError<Rv>;
|
|
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<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1373
1379
|
**/
|
|
1374
1380
|
NotSupported: GenericPalletError<Rv>;
|
|
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<Rv>;
|
|
1387
|
+
|
|
1376
1388
|
/**
|
|
1377
1389
|
* Generic pallet error
|
|
1378
1390
|
**/
|
|
@@ -1419,6 +1431,79 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1419
1431
|
**/
|
|
1420
1432
|
[error: string]: GenericPalletError<Rv>;
|
|
1421
1433
|
};
|
|
1434
|
+
/**
|
|
1435
|
+
* Pallet `DelegatedStaking`'s errors
|
|
1436
|
+
**/
|
|
1437
|
+
delegatedStaking: {
|
|
1438
|
+
/**
|
|
1439
|
+
* The account cannot perform this operation.
|
|
1440
|
+
**/
|
|
1441
|
+
NotAllowed: GenericPalletError<Rv>;
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* An existing staker cannot perform this action.
|
|
1445
|
+
**/
|
|
1446
|
+
AlreadyStaking: GenericPalletError<Rv>;
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* Reward Destination cannot be same as `Agent` account.
|
|
1450
|
+
**/
|
|
1451
|
+
InvalidRewardDestination: GenericPalletError<Rv>;
|
|
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<Rv>;
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* The account does not have enough funds to perform the operation.
|
|
1464
|
+
**/
|
|
1465
|
+
NotEnoughFunds: GenericPalletError<Rv>;
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* Not an existing `Agent` account.
|
|
1469
|
+
**/
|
|
1470
|
+
NotAgent: GenericPalletError<Rv>;
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* Not a Delegator account.
|
|
1474
|
+
**/
|
|
1475
|
+
NotDelegator: GenericPalletError<Rv>;
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* Some corruption in internal state.
|
|
1479
|
+
**/
|
|
1480
|
+
BadState: GenericPalletError<Rv>;
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* Unapplied pending slash restricts operation on `Agent`.
|
|
1484
|
+
**/
|
|
1485
|
+
UnappliedSlash: GenericPalletError<Rv>;
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* `Agent` has no pending slash to be applied.
|
|
1489
|
+
**/
|
|
1490
|
+
NothingToSlash: GenericPalletError<Rv>;
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* Failed to withdraw amount from Core Staking.
|
|
1494
|
+
**/
|
|
1495
|
+
WithdrawFailed: GenericPalletError<Rv>;
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* Operation not supported by this pallet.
|
|
1499
|
+
**/
|
|
1500
|
+
NotSupported: GenericPalletError<Rv>;
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* Generic pallet error
|
|
1504
|
+
**/
|
|
1505
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1506
|
+
};
|
|
1422
1507
|
/**
|
|
1423
1508
|
* Pallet `Configuration`'s errors
|
|
1424
1509
|
**/
|
|
@@ -1489,11 +1574,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1489
1574
|
**/
|
|
1490
1575
|
InvalidBacking: GenericPalletError<Rv>;
|
|
1491
1576
|
|
|
1492
|
-
/**
|
|
1493
|
-
* Collator did not sign PoV.
|
|
1494
|
-
**/
|
|
1495
|
-
NotCollatorSigned: GenericPalletError<Rv>;
|
|
1496
|
-
|
|
1497
1577
|
/**
|
|
1498
1578
|
* The validation data hash does not match expected.
|
|
1499
1579
|
**/
|
|
@@ -2470,9 +2550,24 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2470
2550
|
InvalidKeyOwnershipProof: GenericPalletError<Rv>;
|
|
2471
2551
|
|
|
2472
2552
|
/**
|
|
2473
|
-
*
|
|
2553
|
+
* A double voting proof provided as part of an equivocation report is invalid.
|
|
2474
2554
|
**/
|
|
2475
|
-
|
|
2555
|
+
InvalidDoubleVotingProof: GenericPalletError<Rv>;
|
|
2556
|
+
|
|
2557
|
+
/**
|
|
2558
|
+
* A fork voting proof provided as part of an equivocation report is invalid.
|
|
2559
|
+
**/
|
|
2560
|
+
InvalidForkVotingProof: GenericPalletError<Rv>;
|
|
2561
|
+
|
|
2562
|
+
/**
|
|
2563
|
+
* A future block voting proof provided as part of an equivocation report is invalid.
|
|
2564
|
+
**/
|
|
2565
|
+
InvalidFutureBlockVotingProof: GenericPalletError<Rv>;
|
|
2566
|
+
|
|
2567
|
+
/**
|
|
2568
|
+
* The session of the equivocation proof is invalid
|
|
2569
|
+
**/
|
|
2570
|
+
InvalidEquivocationProofSession: GenericPalletError<Rv>;
|
|
2476
2571
|
|
|
2477
2572
|
/**
|
|
2478
2573
|
* A given equivocation report is valid but already previously reported.
|
package/paseo/events.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import type {
|
|
|
21
21
|
SpConsensusGrandpaAppPublic,
|
|
22
22
|
PolkadotRuntimeCommonImplsVersionedLocatableAsset,
|
|
23
23
|
XcmVersionedLocation,
|
|
24
|
+
PalletConvictionVotingVoteAccountVote,
|
|
24
25
|
FrameSupportPreimagesBounded,
|
|
25
26
|
PalletConvictionVotingTally,
|
|
26
27
|
FrameSupportDispatchPostDispatchInfo,
|
|
@@ -35,10 +36,10 @@ import type {
|
|
|
35
36
|
PalletNominationPoolsPoolState,
|
|
36
37
|
PalletNominationPoolsCommissionChangeRate,
|
|
37
38
|
PalletNominationPoolsCommissionClaimPermission,
|
|
38
|
-
|
|
39
|
+
PolkadotPrimitivesV8CandidateReceipt,
|
|
39
40
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
42
|
+
PolkadotPrimitivesV8GroupIndex,
|
|
42
43
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
43
44
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
44
45
|
PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
@@ -700,6 +701,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
700
701
|
**/
|
|
701
702
|
Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', AccountId32>;
|
|
702
703
|
|
|
704
|
+
/**
|
|
705
|
+
* An account that has voted
|
|
706
|
+
**/
|
|
707
|
+
Voted: GenericPalletEvent<
|
|
708
|
+
Rv,
|
|
709
|
+
'ConvictionVoting',
|
|
710
|
+
'Voted',
|
|
711
|
+
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
712
|
+
>;
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* A vote that been removed
|
|
716
|
+
**/
|
|
717
|
+
VoteRemoved: GenericPalletEvent<
|
|
718
|
+
Rv,
|
|
719
|
+
'ConvictionVoting',
|
|
720
|
+
'VoteRemoved',
|
|
721
|
+
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
722
|
+
>;
|
|
723
|
+
|
|
703
724
|
/**
|
|
704
725
|
* Generic pallet event
|
|
705
726
|
**/
|
|
@@ -1555,8 +1576,15 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1555
1576
|
* A member has been removed from a pool.
|
|
1556
1577
|
*
|
|
1557
1578
|
* The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
|
|
1579
|
+
* Any funds that are still delegated (i.e. dangling delegation) are released and are
|
|
1580
|
+
* represented by `released_balance`.
|
|
1558
1581
|
**/
|
|
1559
|
-
MemberRemoved: GenericPalletEvent<
|
|
1582
|
+
MemberRemoved: GenericPalletEvent<
|
|
1583
|
+
Rv,
|
|
1584
|
+
'NominationPools',
|
|
1585
|
+
'MemberRemoved',
|
|
1586
|
+
{ poolId: number; member: AccountId32; releasedBalance: bigint }
|
|
1587
|
+
>;
|
|
1560
1588
|
|
|
1561
1589
|
/**
|
|
1562
1590
|
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
|
@@ -1701,6 +1729,55 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1701
1729
|
**/
|
|
1702
1730
|
[prop: string]: GenericPalletEvent<Rv>;
|
|
1703
1731
|
};
|
|
1732
|
+
/**
|
|
1733
|
+
* Pallet `DelegatedStaking`'s events
|
|
1734
|
+
**/
|
|
1735
|
+
delegatedStaking: {
|
|
1736
|
+
/**
|
|
1737
|
+
* Funds delegated by a delegator.
|
|
1738
|
+
**/
|
|
1739
|
+
Delegated: GenericPalletEvent<
|
|
1740
|
+
Rv,
|
|
1741
|
+
'DelegatedStaking',
|
|
1742
|
+
'Delegated',
|
|
1743
|
+
{ agent: AccountId32; delegator: AccountId32; amount: bigint }
|
|
1744
|
+
>;
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* Funds released to a delegator.
|
|
1748
|
+
**/
|
|
1749
|
+
Released: GenericPalletEvent<
|
|
1750
|
+
Rv,
|
|
1751
|
+
'DelegatedStaking',
|
|
1752
|
+
'Released',
|
|
1753
|
+
{ agent: AccountId32; delegator: AccountId32; amount: bigint }
|
|
1754
|
+
>;
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* Funds slashed from a delegator.
|
|
1758
|
+
**/
|
|
1759
|
+
Slashed: GenericPalletEvent<
|
|
1760
|
+
Rv,
|
|
1761
|
+
'DelegatedStaking',
|
|
1762
|
+
'Slashed',
|
|
1763
|
+
{ agent: AccountId32; delegator: AccountId32; amount: bigint }
|
|
1764
|
+
>;
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* Unclaimed delegation funds migrated to delegator.
|
|
1768
|
+
**/
|
|
1769
|
+
MigratedDelegation: GenericPalletEvent<
|
|
1770
|
+
Rv,
|
|
1771
|
+
'DelegatedStaking',
|
|
1772
|
+
'MigratedDelegation',
|
|
1773
|
+
{ agent: AccountId32; delegator: AccountId32; amount: bigint }
|
|
1774
|
+
>;
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
* Generic pallet event
|
|
1778
|
+
**/
|
|
1779
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
1780
|
+
};
|
|
1704
1781
|
/**
|
|
1705
1782
|
* Pallet `ParaInclusion`'s events
|
|
1706
1783
|
**/
|
|
@@ -1713,10 +1790,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1713
1790
|
'ParaInclusion',
|
|
1714
1791
|
'CandidateBacked',
|
|
1715
1792
|
[
|
|
1716
|
-
|
|
1793
|
+
PolkadotPrimitivesV8CandidateReceipt,
|
|
1717
1794
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
1718
|
-
|
|
1719
|
-
|
|
1795
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
1796
|
+
PolkadotPrimitivesV8GroupIndex,
|
|
1720
1797
|
]
|
|
1721
1798
|
>;
|
|
1722
1799
|
|
|
@@ -1728,10 +1805,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1728
1805
|
'ParaInclusion',
|
|
1729
1806
|
'CandidateIncluded',
|
|
1730
1807
|
[
|
|
1731
|
-
|
|
1808
|
+
PolkadotPrimitivesV8CandidateReceipt,
|
|
1732
1809
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
1733
|
-
|
|
1734
|
-
|
|
1810
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
1811
|
+
PolkadotPrimitivesV8GroupIndex,
|
|
1735
1812
|
]
|
|
1736
1813
|
>;
|
|
1737
1814
|
|
|
@@ -1743,9 +1820,9 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1743
1820
|
'ParaInclusion',
|
|
1744
1821
|
'CandidateTimedOut',
|
|
1745
1822
|
[
|
|
1746
|
-
|
|
1823
|
+
PolkadotPrimitivesV8CandidateReceipt,
|
|
1747
1824
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
1748
|
-
|
|
1825
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
1749
1826
|
]
|
|
1750
1827
|
>;
|
|
1751
1828
|
|
|
@@ -2246,7 +2323,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2246
2323
|
/**
|
|
2247
2324
|
* A core has received a new assignment from the broker chain.
|
|
2248
2325
|
**/
|
|
2249
|
-
CoreAssigned: GenericPalletEvent<Rv, 'Coretime', 'CoreAssigned', { core:
|
|
2326
|
+
CoreAssigned: GenericPalletEvent<Rv, 'Coretime', 'CoreAssigned', { core: PolkadotPrimitivesV8CoreIndex }>;
|
|
2250
2327
|
|
|
2251
2328
|
/**
|
|
2252
2329
|
* Generic pallet event
|
package/paseo/index.d.ts
CHANGED