@dedot/chaintypes 0.230.0 → 0.231.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 +9 -0
- package/paseo/events.d.ts +37 -0
- package/paseo/index.d.ts +1 -1
- package/paseo/query.d.ts +22 -0
- package/paseo/runtime.d.ts +20 -0
- package/paseo/tx.d.ts +31 -0
- package/paseo/types.d.ts +99 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.231.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": "7fa6b996f1da48a77f67519dd9793e5ebb2ba637",
|
|
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
|
**/
|
package/paseo/events.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ import type {
|
|
|
25
25
|
PalletConvictionVotingTally,
|
|
26
26
|
FrameSupportDispatchPostDispatchInfo,
|
|
27
27
|
SpRuntimeDispatchErrorWithPostInfo,
|
|
28
|
+
PaseoRuntimeRuntimeParametersKey,
|
|
29
|
+
PaseoRuntimeRuntimeParametersValue,
|
|
28
30
|
PaseoRuntimeProxyType,
|
|
29
31
|
PalletMultisigTimepoint,
|
|
30
32
|
PalletElectionProviderMultiPhaseElectionCompute,
|
|
@@ -999,6 +1001,41 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
999
1001
|
**/
|
|
1000
1002
|
[prop: string]: GenericPalletEvent;
|
|
1001
1003
|
};
|
|
1004
|
+
/**
|
|
1005
|
+
* Pallet `Parameters`'s events
|
|
1006
|
+
**/
|
|
1007
|
+
parameters: {
|
|
1008
|
+
/**
|
|
1009
|
+
* A Parameter was set.
|
|
1010
|
+
*
|
|
1011
|
+
* Is also emitted when the value was not changed.
|
|
1012
|
+
**/
|
|
1013
|
+
Updated: GenericPalletEvent<
|
|
1014
|
+
'Parameters',
|
|
1015
|
+
'Updated',
|
|
1016
|
+
{
|
|
1017
|
+
/**
|
|
1018
|
+
* The key that was updated.
|
|
1019
|
+
**/
|
|
1020
|
+
key: PaseoRuntimeRuntimeParametersKey;
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* The old value before this call.
|
|
1024
|
+
**/
|
|
1025
|
+
oldValue?: PaseoRuntimeRuntimeParametersValue | undefined;
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* The new value after this call.
|
|
1029
|
+
**/
|
|
1030
|
+
newValue?: PaseoRuntimeRuntimeParametersValue | undefined;
|
|
1031
|
+
}
|
|
1032
|
+
>;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* Generic pallet event
|
|
1036
|
+
**/
|
|
1037
|
+
[prop: string]: GenericPalletEvent;
|
|
1038
|
+
};
|
|
1002
1039
|
/**
|
|
1003
1040
|
* Pallet `Claims`'s events
|
|
1004
1041
|
**/
|
package/paseo/index.d.ts
CHANGED
package/paseo/query.d.ts
CHANGED
|
@@ -62,6 +62,8 @@ import type {
|
|
|
62
62
|
PalletTreasurySpendStatus,
|
|
63
63
|
PalletConvictionVotingVoteVoting,
|
|
64
64
|
PalletReferendaReferendumInfo,
|
|
65
|
+
PaseoRuntimeRuntimeParametersValue,
|
|
66
|
+
PaseoRuntimeRuntimeParametersKey,
|
|
65
67
|
PolkadotRuntimeCommonClaimsStatementKind,
|
|
66
68
|
PalletVestingVestingInfo,
|
|
67
69
|
PalletVestingReleases,
|
|
@@ -1555,6 +1557,26 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1555
1557
|
**/
|
|
1556
1558
|
[storage: string]: GenericStorageQuery;
|
|
1557
1559
|
};
|
|
1560
|
+
/**
|
|
1561
|
+
* Pallet `Parameters`'s storage queries
|
|
1562
|
+
**/
|
|
1563
|
+
parameters: {
|
|
1564
|
+
/**
|
|
1565
|
+
* Stored parameters.
|
|
1566
|
+
*
|
|
1567
|
+
* @param {PaseoRuntimeRuntimeParametersKey} arg
|
|
1568
|
+
* @param {Callback<PaseoRuntimeRuntimeParametersValue | undefined> =} callback
|
|
1569
|
+
**/
|
|
1570
|
+
parameters: GenericStorageQuery<
|
|
1571
|
+
(arg: PaseoRuntimeRuntimeParametersKey) => PaseoRuntimeRuntimeParametersValue | undefined,
|
|
1572
|
+
PaseoRuntimeRuntimeParametersKey
|
|
1573
|
+
>;
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* Generic pallet storage query
|
|
1577
|
+
**/
|
|
1578
|
+
[storage: string]: GenericStorageQuery;
|
|
1579
|
+
};
|
|
1558
1580
|
/**
|
|
1559
1581
|
* Pallet `Claims`'s storage queries
|
|
1560
1582
|
**/
|
package/paseo/runtime.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import type {
|
|
|
16
16
|
AccountId32,
|
|
17
17
|
} from 'dedot/codecs';
|
|
18
18
|
import type {
|
|
19
|
+
RelayCommonApisInflationInfo,
|
|
19
20
|
SpRuntimeBlock,
|
|
20
21
|
SpRuntimeExtrinsicInclusionMode,
|
|
21
22
|
SpCoreOpaqueMetadata,
|
|
@@ -87,6 +88,25 @@ import type {
|
|
|
87
88
|
} from './types.js';
|
|
88
89
|
|
|
89
90
|
export interface RuntimeApis extends GenericRuntimeApis {
|
|
91
|
+
/**
|
|
92
|
+
* @runtimeapi: Inflation - 0xc51ff1fa3f5d0cca
|
|
93
|
+
**/
|
|
94
|
+
inflation: {
|
|
95
|
+
/**
|
|
96
|
+
* Return the current estimates of the inflation amount.
|
|
97
|
+
*
|
|
98
|
+
* This is marked as experimental in light of RFC#89. Nonetheless, its usage is highly
|
|
99
|
+
* recommended over trying to read-storage, or re-create the onchain logic.
|
|
100
|
+
*
|
|
101
|
+
* @callname: Inflation_experimental_inflation_prediction_info
|
|
102
|
+
**/
|
|
103
|
+
experimentalInflationPredictionInfo: GenericRuntimeApiMethod<() => Promise<RelayCommonApisInflationInfo>>;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Generic runtime api call
|
|
107
|
+
**/
|
|
108
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
109
|
+
};
|
|
90
110
|
/**
|
|
91
111
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
92
112
|
**/
|
package/paseo/tx.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ import type {
|
|
|
45
45
|
FrameSupportPreimagesBounded,
|
|
46
46
|
FrameSupportScheduleDispatchTime,
|
|
47
47
|
SpWeightsWeightV2Weight,
|
|
48
|
+
PaseoRuntimeRuntimeParameters,
|
|
48
49
|
PolkadotRuntimeCommonClaimsEcdsaSignature,
|
|
49
50
|
PolkadotRuntimeCommonClaimsStatementKind,
|
|
50
51
|
PalletVestingVestingInfo,
|
|
@@ -3166,6 +3167,36 @@ export interface ChainTx<
|
|
|
3166
3167
|
**/
|
|
3167
3168
|
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
3168
3169
|
};
|
|
3170
|
+
/**
|
|
3171
|
+
* Pallet `Parameters`'s transaction calls
|
|
3172
|
+
**/
|
|
3173
|
+
parameters: {
|
|
3174
|
+
/**
|
|
3175
|
+
* Set the value of a parameter.
|
|
3176
|
+
*
|
|
3177
|
+
* The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
|
|
3178
|
+
* deleted by setting them to `None`.
|
|
3179
|
+
*
|
|
3180
|
+
* @param {PaseoRuntimeRuntimeParameters} keyValue
|
|
3181
|
+
**/
|
|
3182
|
+
setParameter: GenericTxCall<
|
|
3183
|
+
(keyValue: PaseoRuntimeRuntimeParameters) => ChainSubmittableExtrinsic<
|
|
3184
|
+
{
|
|
3185
|
+
pallet: 'Parameters';
|
|
3186
|
+
palletCall: {
|
|
3187
|
+
name: 'SetParameter';
|
|
3188
|
+
params: { keyValue: PaseoRuntimeRuntimeParameters };
|
|
3189
|
+
};
|
|
3190
|
+
},
|
|
3191
|
+
ChainKnownTypes
|
|
3192
|
+
>
|
|
3193
|
+
>;
|
|
3194
|
+
|
|
3195
|
+
/**
|
|
3196
|
+
* Generic pallet tx call
|
|
3197
|
+
**/
|
|
3198
|
+
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
3199
|
+
};
|
|
3169
3200
|
/**
|
|
3170
3201
|
* Pallet `Claims`'s transaction calls
|
|
3171
3202
|
**/
|
package/paseo/types.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import type {
|
|
|
17
17
|
MultiAddressLike,
|
|
18
18
|
AccountId32Like,
|
|
19
19
|
Percent,
|
|
20
|
+
Perquintill,
|
|
20
21
|
EthereumAddress,
|
|
21
22
|
EthereumAddressLike,
|
|
22
23
|
PerU16,
|
|
@@ -69,6 +70,7 @@ export type PaseoRuntimeRuntimeEvent =
|
|
|
69
70
|
| { pallet: 'ConvictionVoting'; palletEvent: PalletConvictionVotingEvent }
|
|
70
71
|
| { pallet: 'Referenda'; palletEvent: PalletReferendaEvent }
|
|
71
72
|
| { pallet: 'Whitelist'; palletEvent: PalletWhitelistEvent }
|
|
73
|
+
| { pallet: 'Parameters'; palletEvent: PalletParametersEvent }
|
|
72
74
|
| { pallet: 'Claims'; palletEvent: PolkadotRuntimeCommonClaimsPalletEvent }
|
|
73
75
|
| { pallet: 'Vesting'; palletEvent: PalletVestingEvent }
|
|
74
76
|
| { pallet: 'Utility'; palletEvent: PalletUtilityEvent }
|
|
@@ -1037,6 +1039,7 @@ export type PaseoRuntimeRuntimeCall =
|
|
|
1037
1039
|
| { pallet: 'ConvictionVoting'; palletCall: PalletConvictionVotingCall }
|
|
1038
1040
|
| { pallet: 'Referenda'; palletCall: PalletReferendaCall }
|
|
1039
1041
|
| { pallet: 'Whitelist'; palletCall: PalletWhitelistCall }
|
|
1042
|
+
| { pallet: 'Parameters'; palletCall: PalletParametersCall }
|
|
1040
1043
|
| { pallet: 'Claims'; palletCall: PolkadotRuntimeCommonClaimsPalletCall }
|
|
1041
1044
|
| { pallet: 'Vesting'; palletCall: PalletVestingCall }
|
|
1042
1045
|
| { pallet: 'Utility'; palletCall: PalletUtilityCall }
|
|
@@ -1086,6 +1089,7 @@ export type PaseoRuntimeRuntimeCallLike =
|
|
|
1086
1089
|
| { pallet: 'ConvictionVoting'; palletCall: PalletConvictionVotingCallLike }
|
|
1087
1090
|
| { pallet: 'Referenda'; palletCall: PalletReferendaCallLike }
|
|
1088
1091
|
| { pallet: 'Whitelist'; palletCall: PalletWhitelistCallLike }
|
|
1092
|
+
| { pallet: 'Parameters'; palletCall: PalletParametersCallLike }
|
|
1089
1093
|
| { pallet: 'Claims'; palletCall: PolkadotRuntimeCommonClaimsPalletCallLike }
|
|
1090
1094
|
| { pallet: 'Vesting'; palletCall: PalletVestingCallLike }
|
|
1091
1095
|
| { pallet: 'Utility'; palletCall: PalletUtilityCallLike }
|
|
@@ -3948,6 +3952,46 @@ export type PalletWhitelistCallLike =
|
|
|
3948
3952
|
}
|
|
3949
3953
|
| { name: 'DispatchWhitelistedCallWithPreimage'; params: { call: PaseoRuntimeRuntimeCallLike } };
|
|
3950
3954
|
|
|
3955
|
+
/**
|
|
3956
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
3957
|
+
**/
|
|
3958
|
+
export type PalletParametersCall =
|
|
3959
|
+
/**
|
|
3960
|
+
* Set the value of a parameter.
|
|
3961
|
+
*
|
|
3962
|
+
* The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
|
|
3963
|
+
* deleted by setting them to `None`.
|
|
3964
|
+
**/
|
|
3965
|
+
{ name: 'SetParameter'; params: { keyValue: PaseoRuntimeRuntimeParameters } };
|
|
3966
|
+
|
|
3967
|
+
export type PalletParametersCallLike =
|
|
3968
|
+
/**
|
|
3969
|
+
* Set the value of a parameter.
|
|
3970
|
+
*
|
|
3971
|
+
* The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
|
|
3972
|
+
* deleted by setting them to `None`.
|
|
3973
|
+
**/
|
|
3974
|
+
{ name: 'SetParameter'; params: { keyValue: PaseoRuntimeRuntimeParameters } };
|
|
3975
|
+
|
|
3976
|
+
export type PaseoRuntimeRuntimeParameters = { type: 'Inflation'; value: PaseoRuntimeDynamicParamsInflationParameters };
|
|
3977
|
+
|
|
3978
|
+
export type PaseoRuntimeDynamicParamsInflationParameters =
|
|
3979
|
+
| { type: 'MinInflation'; value: [PaseoRuntimeDynamicParamsInflationMinInflation, Perquintill | undefined] }
|
|
3980
|
+
| { type: 'MaxInflation'; value: [PaseoRuntimeDynamicParamsInflationMaxInflation, Perquintill | undefined] }
|
|
3981
|
+
| { type: 'IdealStake'; value: [PaseoRuntimeDynamicParamsInflationIdealStake, Perquintill | undefined] }
|
|
3982
|
+
| { type: 'Falloff'; value: [PaseoRuntimeDynamicParamsInflationFalloff, Perquintill | undefined] }
|
|
3983
|
+
| { type: 'UseAuctionSlots'; value: [PaseoRuntimeDynamicParamsInflationUseAuctionSlots, boolean | undefined] };
|
|
3984
|
+
|
|
3985
|
+
export type PaseoRuntimeDynamicParamsInflationMinInflation = {};
|
|
3986
|
+
|
|
3987
|
+
export type PaseoRuntimeDynamicParamsInflationMaxInflation = {};
|
|
3988
|
+
|
|
3989
|
+
export type PaseoRuntimeDynamicParamsInflationIdealStake = {};
|
|
3990
|
+
|
|
3991
|
+
export type PaseoRuntimeDynamicParamsInflationFalloff = {};
|
|
3992
|
+
|
|
3993
|
+
export type PaseoRuntimeDynamicParamsInflationUseAuctionSlots = {};
|
|
3994
|
+
|
|
3951
3995
|
/**
|
|
3952
3996
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
3953
3997
|
**/
|
|
@@ -10550,6 +10594,59 @@ export type SpRuntimeDispatchErrorWithPostInfo = {
|
|
|
10550
10594
|
error: DispatchError;
|
|
10551
10595
|
};
|
|
10552
10596
|
|
|
10597
|
+
/**
|
|
10598
|
+
* The `Event` enum of this pallet
|
|
10599
|
+
**/
|
|
10600
|
+
export type PalletParametersEvent =
|
|
10601
|
+
/**
|
|
10602
|
+
* A Parameter was set.
|
|
10603
|
+
*
|
|
10604
|
+
* Is also emitted when the value was not changed.
|
|
10605
|
+
**/
|
|
10606
|
+
{
|
|
10607
|
+
name: 'Updated';
|
|
10608
|
+
data: {
|
|
10609
|
+
/**
|
|
10610
|
+
* The key that was updated.
|
|
10611
|
+
**/
|
|
10612
|
+
key: PaseoRuntimeRuntimeParametersKey;
|
|
10613
|
+
|
|
10614
|
+
/**
|
|
10615
|
+
* The old value before this call.
|
|
10616
|
+
**/
|
|
10617
|
+
oldValue?: PaseoRuntimeRuntimeParametersValue | undefined;
|
|
10618
|
+
|
|
10619
|
+
/**
|
|
10620
|
+
* The new value after this call.
|
|
10621
|
+
**/
|
|
10622
|
+
newValue?: PaseoRuntimeRuntimeParametersValue | undefined;
|
|
10623
|
+
};
|
|
10624
|
+
};
|
|
10625
|
+
|
|
10626
|
+
export type PaseoRuntimeRuntimeParametersKey = {
|
|
10627
|
+
type: 'Inflation';
|
|
10628
|
+
value: PaseoRuntimeDynamicParamsInflationParametersKey;
|
|
10629
|
+
};
|
|
10630
|
+
|
|
10631
|
+
export type PaseoRuntimeDynamicParamsInflationParametersKey =
|
|
10632
|
+
| { type: 'MinInflation'; value: PaseoRuntimeDynamicParamsInflationMinInflation }
|
|
10633
|
+
| { type: 'MaxInflation'; value: PaseoRuntimeDynamicParamsInflationMaxInflation }
|
|
10634
|
+
| { type: 'IdealStake'; value: PaseoRuntimeDynamicParamsInflationIdealStake }
|
|
10635
|
+
| { type: 'Falloff'; value: PaseoRuntimeDynamicParamsInflationFalloff }
|
|
10636
|
+
| { type: 'UseAuctionSlots'; value: PaseoRuntimeDynamicParamsInflationUseAuctionSlots };
|
|
10637
|
+
|
|
10638
|
+
export type PaseoRuntimeRuntimeParametersValue = {
|
|
10639
|
+
type: 'Inflation';
|
|
10640
|
+
value: PaseoRuntimeDynamicParamsInflationParametersValue;
|
|
10641
|
+
};
|
|
10642
|
+
|
|
10643
|
+
export type PaseoRuntimeDynamicParamsInflationParametersValue =
|
|
10644
|
+
| { type: 'MinInflation'; value: Perquintill }
|
|
10645
|
+
| { type: 'MaxInflation'; value: Perquintill }
|
|
10646
|
+
| { type: 'IdealStake'; value: Perquintill }
|
|
10647
|
+
| { type: 'Falloff'; value: Perquintill }
|
|
10648
|
+
| { type: 'UseAuctionSlots'; value: boolean };
|
|
10649
|
+
|
|
10553
10650
|
/**
|
|
10554
10651
|
* The `Event` enum of this pallet
|
|
10555
10652
|
**/
|
|
@@ -14399,6 +14496,8 @@ export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
|
|
|
14399
14496
|
|
|
14400
14497
|
export type PaseoRuntimeRuntime = {};
|
|
14401
14498
|
|
|
14499
|
+
export type RelayCommonApisInflationInfo = { inflation: Perquintill; nextMint: [bigint, bigint] };
|
|
14500
|
+
|
|
14402
14501
|
export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrinsic> };
|
|
14403
14502
|
|
|
14404
14503
|
export type SpRuntimeExtrinsicInclusionMode = 'AllExtrinsics' | 'OnlyInherents';
|