Skip to content

Commit b248db6

Browse files
author
debot
committed
chore: regenerate chaintypes
1 parent 00647f0 commit b248db6

7 files changed

Lines changed: 219 additions & 1 deletion

File tree

packages/chaintypes/src/paseo/consts.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,15 @@ export interface ChainConsts extends GenericChainConsts {
501501
**/
502502
[name: string]: any;
503503
};
504+
/**
505+
* Pallet `Parameters`'s constants
506+
**/
507+
parameters: {
508+
/**
509+
* Generic pallet constant
510+
**/
511+
[name: string]: any;
512+
};
504513
/**
505514
* Pallet `Claims`'s constants
506515
**/

packages/chaintypes/src/paseo/events.d.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import type {
2525
PalletConvictionVotingTally,
2626
FrameSupportDispatchPostDispatchInfo,
2727
SpRuntimeDispatchErrorWithPostInfo,
28+
PaseoRuntimeRuntimeParametersKey,
29+
PaseoRuntimeRuntimeParametersValue,
2830
PaseoRuntimeProxyType,
2931
PalletMultisigTimepoint,
3032
PalletElectionProviderMultiPhaseElectionCompute,
@@ -999,6 +1001,41 @@ export interface ChainEvents extends GenericChainEvents {
9991001
**/
10001002
[prop: string]: GenericPalletEvent;
10011003
};
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+
};
10021039
/**
10031040
* Pallet `Claims`'s events
10041041
**/

packages/chaintypes/src/paseo/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
5050

5151
/**
5252
* @name: PaseoApi
53-
* @specVersion: 1003000
53+
* @specVersion: 1003004
5454
**/
5555
export interface PaseoApi extends GenericSubstrateApi {
5656
rpc: ChainJsonRpcApis;

packages/chaintypes/src/paseo/query.d.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ import type {
6262
PalletTreasurySpendStatus,
6363
PalletConvictionVotingVoteVoting,
6464
PalletReferendaReferendumInfo,
65+
PaseoRuntimeRuntimeParametersValue,
66+
PaseoRuntimeRuntimeParametersKey,
6567
PolkadotRuntimeCommonClaimsStatementKind,
6668
PalletVestingVestingInfo,
6769
PalletVestingReleases,
@@ -1555,6 +1557,26 @@ export interface ChainStorage extends GenericChainStorage {
15551557
**/
15561558
[storage: string]: GenericStorageQuery;
15571559
};
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+
};
15581580
/**
15591581
* Pallet `Claims`'s storage queries
15601582
**/

packages/chaintypes/src/paseo/runtime.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import type {
1616
AccountId32,
1717
} from 'dedot/codecs';
1818
import type {
19+
RelayCommonApisInflationInfo,
1920
SpRuntimeBlock,
2021
SpRuntimeExtrinsicInclusionMode,
2122
SpCoreOpaqueMetadata,
@@ -87,6 +88,25 @@ import type {
8788
} from './types.js';
8889

8990
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+
};
90110
/**
91111
* @runtimeapi: Core - 0xdf6acb689907609b
92112
**/

packages/chaintypes/src/paseo/tx.d.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import type {
4545
FrameSupportPreimagesBounded,
4646
FrameSupportScheduleDispatchTime,
4747
SpWeightsWeightV2Weight,
48+
PaseoRuntimeRuntimeParameters,
4849
PolkadotRuntimeCommonClaimsEcdsaSignature,
4950
PolkadotRuntimeCommonClaimsStatementKind,
5051
PalletVestingVestingInfo,
@@ -3166,6 +3167,36 @@ export interface ChainTx<
31663167
**/
31673168
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
31683169
};
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+
};
31693200
/**
31703201
* Pallet `Claims`'s transaction calls
31713202
**/

packages/chaintypes/src/paseo/types.d.ts

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import type {
1717
MultiAddressLike,
1818
AccountId32Like,
1919
Percent,
20+
Perquintill,
2021
EthereumAddress,
2122
EthereumAddressLike,
2223
PerU16,
@@ -69,6 +70,7 @@ export type PaseoRuntimeRuntimeEvent =
6970
| { pallet: 'ConvictionVoting'; palletEvent: PalletConvictionVotingEvent }
7071
| { pallet: 'Referenda'; palletEvent: PalletReferendaEvent }
7172
| { pallet: 'Whitelist'; palletEvent: PalletWhitelistEvent }
73+
| { pallet: 'Parameters'; palletEvent: PalletParametersEvent }
7274
| { pallet: 'Claims'; palletEvent: PolkadotRuntimeCommonClaimsPalletEvent }
7375
| { pallet: 'Vesting'; palletEvent: PalletVestingEvent }
7476
| { pallet: 'Utility'; palletEvent: PalletUtilityEvent }
@@ -1037,6 +1039,7 @@ export type PaseoRuntimeRuntimeCall =
10371039
| { pallet: 'ConvictionVoting'; palletCall: PalletConvictionVotingCall }
10381040
| { pallet: 'Referenda'; palletCall: PalletReferendaCall }
10391041
| { pallet: 'Whitelist'; palletCall: PalletWhitelistCall }
1042+
| { pallet: 'Parameters'; palletCall: PalletParametersCall }
10401043
| { pallet: 'Claims'; palletCall: PolkadotRuntimeCommonClaimsPalletCall }
10411044
| { pallet: 'Vesting'; palletCall: PalletVestingCall }
10421045
| { pallet: 'Utility'; palletCall: PalletUtilityCall }
@@ -1086,6 +1089,7 @@ export type PaseoRuntimeRuntimeCallLike =
10861089
| { pallet: 'ConvictionVoting'; palletCall: PalletConvictionVotingCallLike }
10871090
| { pallet: 'Referenda'; palletCall: PalletReferendaCallLike }
10881091
| { pallet: 'Whitelist'; palletCall: PalletWhitelistCallLike }
1092+
| { pallet: 'Parameters'; palletCall: PalletParametersCallLike }
10891093
| { pallet: 'Claims'; palletCall: PolkadotRuntimeCommonClaimsPalletCallLike }
10901094
| { pallet: 'Vesting'; palletCall: PalletVestingCallLike }
10911095
| { pallet: 'Utility'; palletCall: PalletUtilityCallLike }
@@ -3948,6 +3952,46 @@ export type PalletWhitelistCallLike =
39483952
}
39493953
| { name: 'DispatchWhitelistedCallWithPreimage'; params: { call: PaseoRuntimeRuntimeCallLike } };
39503954

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+
39513995
/**
39523996
* Contains a variant per dispatchable extrinsic that this pallet has.
39533997
**/
@@ -10550,6 +10594,59 @@ export type SpRuntimeDispatchErrorWithPostInfo = {
1055010594
error: DispatchError;
1055110595
};
1055210596

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+
1055310650
/**
1055410651
* The `Event` enum of this pallet
1055510652
**/
@@ -14399,6 +14496,8 @@ export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
1439914496

1440014497
export type PaseoRuntimeRuntime = {};
1440114498

14499+
export type RelayCommonApisInflationInfo = { inflation: Perquintill; nextMint: [bigint, bigint] };
14500+
1440214501
export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrinsic> };
1440314502

1440414503
export type SpRuntimeExtrinsicInclusionMode = 'AllExtrinsics' | 'OnlyInherents';

0 commit comments

Comments
 (0)