@dedot/chaintypes 0.231.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 +2 -2
- package/paseo/consts.d.ts +19 -0
- package/paseo/errors.d.ts +107 -12
- package/paseo/events.d.ts +83 -13
- package/paseo/index.d.ts +1 -1
- package/paseo/query.d.ts +99 -52
- package/paseo/runtime.d.ts +138 -63
- package/paseo/tx.d.ts +185 -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.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": "
|
|
28
|
+
"gitHead": "20a73cc288be66dbe682f111c40797ce2c9c289b",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
package/paseo/consts.d.ts
CHANGED
|
@@ -897,6 +897,25 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
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 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
|
-
*
|
|
2553
|
+
* A double voting proof provided as part of an equivocation report is invalid.
|
|
2474
2554
|
**/
|
|
2475
|
-
|
|
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,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,
|
|
@@ -659,6 +660,24 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
659
660
|
**/
|
|
660
661
|
Undelegated: GenericPalletEvent<'ConvictionVoting', 'Undelegated', AccountId32>;
|
|
661
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
|
+
|
|
662
681
|
/**
|
|
663
682
|
* Generic pallet event
|
|
664
683
|
**/
|
|
@@ -1473,8 +1492,14 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
1473
1492
|
* A member has been removed from a pool.
|
|
1474
1493
|
*
|
|
1475
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`.
|
|
1476
1497
|
**/
|
|
1477
|
-
MemberRemoved: GenericPalletEvent<
|
|
1498
|
+
MemberRemoved: GenericPalletEvent<
|
|
1499
|
+
'NominationPools',
|
|
1500
|
+
'MemberRemoved',
|
|
1501
|
+
{ poolId: number; member: AccountId32; releasedBalance: bigint }
|
|
1502
|
+
>;
|
|
1478
1503
|
|
|
1479
1504
|
/**
|
|
1480
1505
|
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
|
@@ -1605,6 +1630,51 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
1605
1630
|
**/
|
|
1606
1631
|
[prop: string]: GenericPalletEvent;
|
|
1607
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
|
+
};
|
|
1608
1678
|
/**
|
|
1609
1679
|
* Pallet `ParaInclusion`'s events
|
|
1610
1680
|
**/
|
|
@@ -1616,10 +1686,10 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
1616
1686
|
'ParaInclusion',
|
|
1617
1687
|
'CandidateBacked',
|
|
1618
1688
|
[
|
|
1619
|
-
|
|
1689
|
+
PolkadotPrimitivesV8CandidateReceipt,
|
|
1620
1690
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
1621
|
-
|
|
1622
|
-
|
|
1691
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
1692
|
+
PolkadotPrimitivesV8GroupIndex,
|
|
1623
1693
|
]
|
|
1624
1694
|
>;
|
|
1625
1695
|
|
|
@@ -1630,10 +1700,10 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
1630
1700
|
'ParaInclusion',
|
|
1631
1701
|
'CandidateIncluded',
|
|
1632
1702
|
[
|
|
1633
|
-
|
|
1703
|
+
PolkadotPrimitivesV8CandidateReceipt,
|
|
1634
1704
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
1635
|
-
|
|
1636
|
-
|
|
1705
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
1706
|
+
PolkadotPrimitivesV8GroupIndex,
|
|
1637
1707
|
]
|
|
1638
1708
|
>;
|
|
1639
1709
|
|
|
@@ -1644,9 +1714,9 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
1644
1714
|
'ParaInclusion',
|
|
1645
1715
|
'CandidateTimedOut',
|
|
1646
1716
|
[
|
|
1647
|
-
|
|
1717
|
+
PolkadotPrimitivesV8CandidateReceipt,
|
|
1648
1718
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
1649
|
-
|
|
1719
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
1650
1720
|
]
|
|
1651
1721
|
>;
|
|
1652
1722
|
|
|
@@ -2104,7 +2174,7 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
2104
2174
|
/**
|
|
2105
2175
|
* A core has received a new assignment from the broker chain.
|
|
2106
2176
|
**/
|
|
2107
|
-
CoreAssigned: GenericPalletEvent<'Coretime', 'CoreAssigned', { core:
|
|
2177
|
+
CoreAssigned: GenericPalletEvent<'Coretime', 'CoreAssigned', { core: PolkadotPrimitivesV8CoreIndex }>;
|
|
2108
2178
|
|
|
2109
2179
|
/**
|
|
2110
2180
|
* Generic pallet event
|
package/paseo/index.d.ts
CHANGED