@dedot/chaintypes 0.35.0 → 0.36.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 +38 -0
- package/paseo/index.d.ts +1 -1
- package/paseo/query.d.ts +23 -0
- package/paseo/runtime.d.ts +20 -0
- package/paseo/tx.d.ts +32 -0
- package/paseo/types.d.ts +99 -0
- package/westend-asset-hub/consts.d.ts +2 -2
- package/westend-asset-hub/events.d.ts +64 -64
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +26 -26
- package/westend-asset-hub/runtime.d.ts +12 -12
- package/westend-asset-hub/tx.d.ts +136 -136
- package/westend-asset-hub/types.d.ts +462 -426
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.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": "8650f6be6f7a4f6d27d3e51f1bccd226a9136b9e",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
package/paseo/consts.d.ts
CHANGED
|
@@ -501,6 +501,15 @@ 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
|
+
};
|
|
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,
|
|
@@ -1057,6 +1059,42 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1057
1059
|
**/
|
|
1058
1060
|
[prop: string]: GenericPalletEvent<Rv>;
|
|
1059
1061
|
};
|
|
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: PaseoRuntimeRuntimeParametersKey;
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* The old value before this call.
|
|
1083
|
+
**/
|
|
1084
|
+
oldValue?: PaseoRuntimeRuntimeParametersValue | undefined;
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* The new value after this call.
|
|
1088
|
+
**/
|
|
1089
|
+
newValue?: PaseoRuntimeRuntimeParametersValue | undefined;
|
|
1090
|
+
}
|
|
1091
|
+
>;
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* Generic pallet event
|
|
1095
|
+
**/
|
|
1096
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
1097
|
+
};
|
|
1060
1098
|
/**
|
|
1061
1099
|
* Pallet `Claims`'s events
|
|
1062
1100
|
**/
|
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,
|
|
@@ -1571,6 +1573,27 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1571
1573
|
**/
|
|
1572
1574
|
[storage: string]: GenericStorageQuery<Rv>;
|
|
1573
1575
|
};
|
|
1576
|
+
/**
|
|
1577
|
+
* Pallet `Parameters`'s storage queries
|
|
1578
|
+
**/
|
|
1579
|
+
parameters: {
|
|
1580
|
+
/**
|
|
1581
|
+
* Stored parameters.
|
|
1582
|
+
*
|
|
1583
|
+
* @param {PaseoRuntimeRuntimeParametersKey} arg
|
|
1584
|
+
* @param {Callback<PaseoRuntimeRuntimeParametersValue | undefined> =} callback
|
|
1585
|
+
**/
|
|
1586
|
+
parameters: GenericStorageQuery<
|
|
1587
|
+
Rv,
|
|
1588
|
+
(arg: PaseoRuntimeRuntimeParametersKey) => PaseoRuntimeRuntimeParametersValue | undefined,
|
|
1589
|
+
PaseoRuntimeRuntimeParametersKey
|
|
1590
|
+
>;
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* Generic pallet storage query
|
|
1594
|
+
**/
|
|
1595
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1596
|
+
};
|
|
1574
1597
|
/**
|
|
1575
1598
|
* Pallet `Claims`'s storage queries
|
|
1576
1599
|
**/
|
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';
|
|
88
89
|
|
|
89
90
|
export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
|
|
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<Rv, () => Promise<RelayCommonApisInflationInfo>>;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Generic runtime api call
|
|
107
|
+
**/
|
|
108
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
109
|
+
};
|
|
90
110
|
/**
|
|
91
111
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
92
112
|
**/
|
package/paseo/tx.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ import type {
|
|
|
47
47
|
FrameSupportPreimagesBounded,
|
|
48
48
|
FrameSupportScheduleDispatchTime,
|
|
49
49
|
SpWeightsWeightV2Weight,
|
|
50
|
+
PaseoRuntimeRuntimeParameters,
|
|
50
51
|
PolkadotRuntimeCommonClaimsEcdsaSignature,
|
|
51
52
|
PolkadotRuntimeCommonClaimsStatementKind,
|
|
52
53
|
PalletVestingVestingInfo,
|
|
@@ -3270,6 +3271,37 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
3270
3271
|
**/
|
|
3271
3272
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
3272
3273
|
};
|
|
3274
|
+
/**
|
|
3275
|
+
* Pallet `Parameters`'s transaction calls
|
|
3276
|
+
**/
|
|
3277
|
+
parameters: {
|
|
3278
|
+
/**
|
|
3279
|
+
* Set the value of a parameter.
|
|
3280
|
+
*
|
|
3281
|
+
* The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
|
|
3282
|
+
* deleted by setting them to `None`.
|
|
3283
|
+
*
|
|
3284
|
+
* @param {PaseoRuntimeRuntimeParameters} keyValue
|
|
3285
|
+
**/
|
|
3286
|
+
setParameter: GenericTxCall<
|
|
3287
|
+
Rv,
|
|
3288
|
+
(keyValue: PaseoRuntimeRuntimeParameters) => ChainSubmittableExtrinsic<
|
|
3289
|
+
Rv,
|
|
3290
|
+
{
|
|
3291
|
+
pallet: 'Parameters';
|
|
3292
|
+
palletCall: {
|
|
3293
|
+
name: 'SetParameter';
|
|
3294
|
+
params: { keyValue: PaseoRuntimeRuntimeParameters };
|
|
3295
|
+
};
|
|
3296
|
+
}
|
|
3297
|
+
>
|
|
3298
|
+
>;
|
|
3299
|
+
|
|
3300
|
+
/**
|
|
3301
|
+
* Generic pallet tx call
|
|
3302
|
+
**/
|
|
3303
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
3304
|
+
};
|
|
3273
3305
|
/**
|
|
3274
3306
|
* Pallet `Claims`'s transaction calls
|
|
3275
3307
|
**/
|
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';
|
|
@@ -10,7 +10,7 @@ import type {
|
|
|
10
10
|
SpWeightsWeightV2Weight,
|
|
11
11
|
PalletNftsBitFlagsPalletFeature,
|
|
12
12
|
FrameSupportPalletId,
|
|
13
|
-
|
|
13
|
+
StagingXcmV5Location,
|
|
14
14
|
} from './types';
|
|
15
15
|
|
|
16
16
|
export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
|
|
@@ -769,7 +769,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
769
769
|
/**
|
|
770
770
|
* Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`].
|
|
771
771
|
**/
|
|
772
|
-
poolSetupFeeAsset:
|
|
772
|
+
poolSetupFeeAsset: StagingXcmV5Location;
|
|
773
773
|
|
|
774
774
|
/**
|
|
775
775
|
* A fee to withdraw the liquidity.
|