@dedot/chaintypes 0.57.0 → 0.59.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/kusama/consts.d.ts +19 -0
- package/kusama/errors.d.ts +95 -12
- package/kusama/events.d.ts +90 -13
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +104 -52
- package/kusama/runtime.d.ts +141 -63
- package/kusama/tx.d.ts +165 -40
- package/kusama/types.d.ts +474 -214
- package/kusama-asset-hub/events.d.ts +50 -1
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/query.d.ts +12 -12
- package/kusama-asset-hub/runtime.d.ts +1 -1
- package/kusama-asset-hub/tx.d.ts +121 -64
- package/kusama-asset-hub/types.d.ts +167 -81
- package/package.json +4 -4
package/kusama/consts.d.ts
CHANGED
|
@@ -1163,6 +1163,25 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1163
1163
|
**/
|
|
1164
1164
|
[name: string]: any;
|
|
1165
1165
|
};
|
|
1166
|
+
/**
|
|
1167
|
+
* Pallet `DelegatedStaking`'s constants
|
|
1168
|
+
**/
|
|
1169
|
+
delegatedStaking: {
|
|
1170
|
+
/**
|
|
1171
|
+
* Injected identifier for the pallet.
|
|
1172
|
+
**/
|
|
1173
|
+
palletId: FrameSupportPalletId;
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* Fraction of the slash that is rewarded to the caller of pending slash to the agent.
|
|
1177
|
+
**/
|
|
1178
|
+
slashRewardFraction: Perbill;
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* Generic pallet constant
|
|
1182
|
+
**/
|
|
1183
|
+
[name: string]: any;
|
|
1184
|
+
};
|
|
1166
1185
|
/**
|
|
1167
1186
|
* Pallet `ParachainsOrigin`'s constants
|
|
1168
1187
|
**/
|
package/kusama/errors.d.ts
CHANGED
|
@@ -1385,11 +1385,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1385
1385
|
**/
|
|
1386
1386
|
TooFew: GenericPalletError<Rv>;
|
|
1387
1387
|
|
|
1388
|
-
/**
|
|
1389
|
-
* No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
|
|
1390
|
-
**/
|
|
1391
|
-
NoCost: GenericPalletError<Rv>;
|
|
1392
|
-
|
|
1393
1388
|
/**
|
|
1394
1389
|
* Generic pallet error
|
|
1395
1390
|
**/
|
|
@@ -1913,6 +1908,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1913
1908
|
**/
|
|
1914
1909
|
NothingToSlash: GenericPalletError<Rv>;
|
|
1915
1910
|
|
|
1911
|
+
/**
|
|
1912
|
+
* The slash amount is too low to be applied.
|
|
1913
|
+
**/
|
|
1914
|
+
SlashTooLow: GenericPalletError<Rv>;
|
|
1915
|
+
|
|
1916
1916
|
/**
|
|
1917
1917
|
* The pool or member delegation has already migrated to delegate stake.
|
|
1918
1918
|
**/
|
|
@@ -1974,6 +1974,79 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1974
1974
|
**/
|
|
1975
1975
|
[error: string]: GenericPalletError<Rv>;
|
|
1976
1976
|
};
|
|
1977
|
+
/**
|
|
1978
|
+
* Pallet `DelegatedStaking`'s errors
|
|
1979
|
+
**/
|
|
1980
|
+
delegatedStaking: {
|
|
1981
|
+
/**
|
|
1982
|
+
* The account cannot perform this operation.
|
|
1983
|
+
**/
|
|
1984
|
+
NotAllowed: GenericPalletError<Rv>;
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* An existing staker cannot perform this action.
|
|
1988
|
+
**/
|
|
1989
|
+
AlreadyStaking: GenericPalletError<Rv>;
|
|
1990
|
+
|
|
1991
|
+
/**
|
|
1992
|
+
* Reward Destination cannot be same as `Agent` account.
|
|
1993
|
+
**/
|
|
1994
|
+
InvalidRewardDestination: GenericPalletError<Rv>;
|
|
1995
|
+
|
|
1996
|
+
/**
|
|
1997
|
+
* Delegation conditions are not met.
|
|
1998
|
+
*
|
|
1999
|
+
* Possible issues are
|
|
2000
|
+
* 1) Cannot delegate to self,
|
|
2001
|
+
* 2) Cannot delegate to multiple delegates.
|
|
2002
|
+
**/
|
|
2003
|
+
InvalidDelegation: GenericPalletError<Rv>;
|
|
2004
|
+
|
|
2005
|
+
/**
|
|
2006
|
+
* The account does not have enough funds to perform the operation.
|
|
2007
|
+
**/
|
|
2008
|
+
NotEnoughFunds: GenericPalletError<Rv>;
|
|
2009
|
+
|
|
2010
|
+
/**
|
|
2011
|
+
* Not an existing `Agent` account.
|
|
2012
|
+
**/
|
|
2013
|
+
NotAgent: GenericPalletError<Rv>;
|
|
2014
|
+
|
|
2015
|
+
/**
|
|
2016
|
+
* Not a Delegator account.
|
|
2017
|
+
**/
|
|
2018
|
+
NotDelegator: GenericPalletError<Rv>;
|
|
2019
|
+
|
|
2020
|
+
/**
|
|
2021
|
+
* Some corruption in internal state.
|
|
2022
|
+
**/
|
|
2023
|
+
BadState: GenericPalletError<Rv>;
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* Unapplied pending slash restricts operation on `Agent`.
|
|
2027
|
+
**/
|
|
2028
|
+
UnappliedSlash: GenericPalletError<Rv>;
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* `Agent` has no pending slash to be applied.
|
|
2032
|
+
**/
|
|
2033
|
+
NothingToSlash: GenericPalletError<Rv>;
|
|
2034
|
+
|
|
2035
|
+
/**
|
|
2036
|
+
* Failed to withdraw amount from Core Staking.
|
|
2037
|
+
**/
|
|
2038
|
+
WithdrawFailed: GenericPalletError<Rv>;
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* Operation not supported by this pallet.
|
|
2042
|
+
**/
|
|
2043
|
+
NotSupported: GenericPalletError<Rv>;
|
|
2044
|
+
|
|
2045
|
+
/**
|
|
2046
|
+
* Generic pallet error
|
|
2047
|
+
**/
|
|
2048
|
+
[error: string]: GenericPalletError<Rv>;
|
|
2049
|
+
};
|
|
1977
2050
|
/**
|
|
1978
2051
|
* Pallet `Configuration`'s errors
|
|
1979
2052
|
**/
|
|
@@ -2044,11 +2117,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2044
2117
|
**/
|
|
2045
2118
|
InvalidBacking: GenericPalletError<Rv>;
|
|
2046
2119
|
|
|
2047
|
-
/**
|
|
2048
|
-
* Collator did not sign PoV.
|
|
2049
|
-
**/
|
|
2050
|
-
NotCollatorSigned: GenericPalletError<Rv>;
|
|
2051
|
-
|
|
2052
2120
|
/**
|
|
2053
2121
|
* The validation data hash does not match expected.
|
|
2054
2122
|
**/
|
|
@@ -2980,9 +3048,24 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2980
3048
|
InvalidKeyOwnershipProof: GenericPalletError<Rv>;
|
|
2981
3049
|
|
|
2982
3050
|
/**
|
|
2983
|
-
*
|
|
3051
|
+
* A double voting proof provided as part of an equivocation report is invalid.
|
|
2984
3052
|
**/
|
|
2985
|
-
|
|
3053
|
+
InvalidDoubleVotingProof: GenericPalletError<Rv>;
|
|
3054
|
+
|
|
3055
|
+
/**
|
|
3056
|
+
* A fork voting proof provided as part of an equivocation report is invalid.
|
|
3057
|
+
**/
|
|
3058
|
+
InvalidForkVotingProof: GenericPalletError<Rv>;
|
|
3059
|
+
|
|
3060
|
+
/**
|
|
3061
|
+
* A future block voting proof provided as part of an equivocation report is invalid.
|
|
3062
|
+
**/
|
|
3063
|
+
InvalidFutureBlockVotingProof: GenericPalletError<Rv>;
|
|
3064
|
+
|
|
3065
|
+
/**
|
|
3066
|
+
* The session of the equivocation proof is invalid
|
|
3067
|
+
**/
|
|
3068
|
+
InvalidEquivocationProofSession: GenericPalletError<Rv>;
|
|
2986
3069
|
|
|
2987
3070
|
/**
|
|
2988
3071
|
* A given equivocation report is valid but already previously reported.
|
package/kusama/events.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import type {
|
|
|
22
22
|
SpConsensusGrandpaAppPublic,
|
|
23
23
|
PolkadotRuntimeCommonImplsVersionedLocatableAsset,
|
|
24
24
|
XcmVersionedLocation,
|
|
25
|
+
PalletConvictionVotingVoteAccountVote,
|
|
25
26
|
FrameSupportPreimagesBounded,
|
|
26
27
|
PalletConvictionVotingTally,
|
|
27
28
|
PalletRankedCollectiveVoteRecord,
|
|
@@ -39,10 +40,10 @@ import type {
|
|
|
39
40
|
PalletNominationPoolsPoolState,
|
|
40
41
|
PalletNominationPoolsCommissionChangeRate,
|
|
41
42
|
PalletNominationPoolsCommissionClaimPermission,
|
|
42
|
-
|
|
43
|
+
PolkadotPrimitivesV8CandidateReceipt,
|
|
43
44
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
46
|
+
PolkadotPrimitivesV8GroupIndex,
|
|
46
47
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
47
48
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
48
49
|
PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
@@ -588,6 +589,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
588
589
|
**/
|
|
589
590
|
Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', AccountId32>;
|
|
590
591
|
|
|
592
|
+
/**
|
|
593
|
+
* An account that has voted
|
|
594
|
+
**/
|
|
595
|
+
Voted: GenericPalletEvent<
|
|
596
|
+
Rv,
|
|
597
|
+
'ConvictionVoting',
|
|
598
|
+
'Voted',
|
|
599
|
+
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
600
|
+
>;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* A vote that been removed
|
|
604
|
+
**/
|
|
605
|
+
VoteRemoved: GenericPalletEvent<
|
|
606
|
+
Rv,
|
|
607
|
+
'ConvictionVoting',
|
|
608
|
+
'VoteRemoved',
|
|
609
|
+
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
610
|
+
>;
|
|
611
|
+
|
|
591
612
|
/**
|
|
592
613
|
* Generic pallet event
|
|
593
614
|
**/
|
|
@@ -2344,8 +2365,15 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2344
2365
|
* A member has been removed from a pool.
|
|
2345
2366
|
*
|
|
2346
2367
|
* The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
|
|
2368
|
+
* Any funds that are still delegated (i.e. dangling delegation) are released and are
|
|
2369
|
+
* represented by `released_balance`.
|
|
2347
2370
|
**/
|
|
2348
|
-
MemberRemoved: GenericPalletEvent<
|
|
2371
|
+
MemberRemoved: GenericPalletEvent<
|
|
2372
|
+
Rv,
|
|
2373
|
+
'NominationPools',
|
|
2374
|
+
'MemberRemoved',
|
|
2375
|
+
{ poolId: number; member: AccountId32; releasedBalance: bigint }
|
|
2376
|
+
>;
|
|
2349
2377
|
|
|
2350
2378
|
/**
|
|
2351
2379
|
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
|
@@ -2490,6 +2518,55 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2490
2518
|
**/
|
|
2491
2519
|
[prop: string]: GenericPalletEvent<Rv>;
|
|
2492
2520
|
};
|
|
2521
|
+
/**
|
|
2522
|
+
* Pallet `DelegatedStaking`'s events
|
|
2523
|
+
**/
|
|
2524
|
+
delegatedStaking: {
|
|
2525
|
+
/**
|
|
2526
|
+
* Funds delegated by a delegator.
|
|
2527
|
+
**/
|
|
2528
|
+
Delegated: GenericPalletEvent<
|
|
2529
|
+
Rv,
|
|
2530
|
+
'DelegatedStaking',
|
|
2531
|
+
'Delegated',
|
|
2532
|
+
{ agent: AccountId32; delegator: AccountId32; amount: bigint }
|
|
2533
|
+
>;
|
|
2534
|
+
|
|
2535
|
+
/**
|
|
2536
|
+
* Funds released to a delegator.
|
|
2537
|
+
**/
|
|
2538
|
+
Released: GenericPalletEvent<
|
|
2539
|
+
Rv,
|
|
2540
|
+
'DelegatedStaking',
|
|
2541
|
+
'Released',
|
|
2542
|
+
{ agent: AccountId32; delegator: AccountId32; amount: bigint }
|
|
2543
|
+
>;
|
|
2544
|
+
|
|
2545
|
+
/**
|
|
2546
|
+
* Funds slashed from a delegator.
|
|
2547
|
+
**/
|
|
2548
|
+
Slashed: GenericPalletEvent<
|
|
2549
|
+
Rv,
|
|
2550
|
+
'DelegatedStaking',
|
|
2551
|
+
'Slashed',
|
|
2552
|
+
{ agent: AccountId32; delegator: AccountId32; amount: bigint }
|
|
2553
|
+
>;
|
|
2554
|
+
|
|
2555
|
+
/**
|
|
2556
|
+
* Unclaimed delegation funds migrated to delegator.
|
|
2557
|
+
**/
|
|
2558
|
+
MigratedDelegation: GenericPalletEvent<
|
|
2559
|
+
Rv,
|
|
2560
|
+
'DelegatedStaking',
|
|
2561
|
+
'MigratedDelegation',
|
|
2562
|
+
{ agent: AccountId32; delegator: AccountId32; amount: bigint }
|
|
2563
|
+
>;
|
|
2564
|
+
|
|
2565
|
+
/**
|
|
2566
|
+
* Generic pallet event
|
|
2567
|
+
**/
|
|
2568
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
2569
|
+
};
|
|
2493
2570
|
/**
|
|
2494
2571
|
* Pallet `ParaInclusion`'s events
|
|
2495
2572
|
**/
|
|
@@ -2502,10 +2579,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2502
2579
|
'ParaInclusion',
|
|
2503
2580
|
'CandidateBacked',
|
|
2504
2581
|
[
|
|
2505
|
-
|
|
2582
|
+
PolkadotPrimitivesV8CandidateReceipt,
|
|
2506
2583
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
2507
|
-
|
|
2508
|
-
|
|
2584
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
2585
|
+
PolkadotPrimitivesV8GroupIndex,
|
|
2509
2586
|
]
|
|
2510
2587
|
>;
|
|
2511
2588
|
|
|
@@ -2517,10 +2594,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2517
2594
|
'ParaInclusion',
|
|
2518
2595
|
'CandidateIncluded',
|
|
2519
2596
|
[
|
|
2520
|
-
|
|
2597
|
+
PolkadotPrimitivesV8CandidateReceipt,
|
|
2521
2598
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
2522
|
-
|
|
2523
|
-
|
|
2599
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
2600
|
+
PolkadotPrimitivesV8GroupIndex,
|
|
2524
2601
|
]
|
|
2525
2602
|
>;
|
|
2526
2603
|
|
|
@@ -2532,9 +2609,9 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2532
2609
|
'ParaInclusion',
|
|
2533
2610
|
'CandidateTimedOut',
|
|
2534
2611
|
[
|
|
2535
|
-
|
|
2612
|
+
PolkadotPrimitivesV8CandidateReceipt,
|
|
2536
2613
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
2537
|
-
|
|
2614
|
+
PolkadotPrimitivesV8CoreIndex,
|
|
2538
2615
|
]
|
|
2539
2616
|
>;
|
|
2540
2617
|
|
|
@@ -3035,7 +3112,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
3035
3112
|
/**
|
|
3036
3113
|
* A core has received a new assignment from the broker chain.
|
|
3037
3114
|
**/
|
|
3038
|
-
CoreAssigned: GenericPalletEvent<Rv, 'Coretime', 'CoreAssigned', { core:
|
|
3115
|
+
CoreAssigned: GenericPalletEvent<Rv, 'Coretime', 'CoreAssigned', { core: PolkadotPrimitivesV8CoreIndex }>;
|
|
3039
3116
|
|
|
3040
3117
|
/**
|
|
3041
3118
|
* Generic pallet event
|
package/kusama/index.d.ts
CHANGED