@dedot/chaintypes 0.62.0 → 0.63.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/westend/consts.d.ts +31 -12
- package/westend/errors.d.ts +44 -7
- package/westend/events.d.ts +157 -18
- package/westend/index.d.ts +1 -1
- package/westend/json-rpc.d.ts +1 -0
- package/westend/query.d.ts +123 -63
- package/westend/runtime.d.ts +57 -4
- package/westend/tx.d.ts +270 -31
- package/westend/types.d.ts +498 -102
- package/westend-asset-hub/json-rpc.d.ts +1 -0
- package/westend-people/consts.d.ts +41 -1
- package/westend-people/events.d.ts +20 -0
- package/westend-people/index.d.ts +1 -1
- package/westend-people/query.d.ts +21 -6
- package/westend-people/runtime.d.ts +4 -2
- package/westend-people/tx.d.ts +72 -0
- package/westend-people/types.d.ts +114 -10
|
@@ -48,6 +48,7 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
|
|
|
48
48
|
| 'childstate_getStorageHash'
|
|
49
49
|
| 'childstate_getStorageSize'
|
|
50
50
|
| 'dev_getBlockStats'
|
|
51
|
+
| 'offchain_localStorageClear'
|
|
51
52
|
| 'offchain_localStorageGet'
|
|
52
53
|
| 'offchain_localStorageSet'
|
|
53
54
|
| 'payment_queryFeeDetails'
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainConsts, RpcVersion } from 'dedot/types';
|
|
4
|
-
import type { RuntimeVersion } from 'dedot/codecs';
|
|
4
|
+
import type { RuntimeVersion, AccountId32 } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
8
8
|
SpWeightsRuntimeDbWeight,
|
|
9
9
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
10
|
+
FrameSupportPalletId,
|
|
10
11
|
SpWeightsWeightV2Weight,
|
|
11
12
|
} from './types';
|
|
12
13
|
|
|
@@ -96,6 +97,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
96
97
|
**/
|
|
97
98
|
[name: string]: any;
|
|
98
99
|
};
|
|
100
|
+
/**
|
|
101
|
+
* Pallet `WeightReclaim`'s constants
|
|
102
|
+
**/
|
|
103
|
+
weightReclaim: {
|
|
104
|
+
/**
|
|
105
|
+
* Generic pallet constant
|
|
106
|
+
**/
|
|
107
|
+
[name: string]: any;
|
|
108
|
+
};
|
|
99
109
|
/**
|
|
100
110
|
* Pallet `Balances`'s constants
|
|
101
111
|
**/
|
|
@@ -184,6 +194,36 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
184
194
|
* Pallet `CollatorSelection`'s constants
|
|
185
195
|
**/
|
|
186
196
|
collatorSelection: {
|
|
197
|
+
/**
|
|
198
|
+
* Account Identifier from which the internal Pot is generated.
|
|
199
|
+
**/
|
|
200
|
+
potId: FrameSupportPalletId;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Maximum number of candidates that we should have.
|
|
204
|
+
*
|
|
205
|
+
* This does not take into account the invulnerables.
|
|
206
|
+
**/
|
|
207
|
+
maxCandidates: number;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Minimum number eligible collators. Should always be greater than zero. This includes
|
|
211
|
+
* Invulnerable collators. This ensures that there will always be one collator who can
|
|
212
|
+
* produce a block.
|
|
213
|
+
**/
|
|
214
|
+
minEligibleCollators: number;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Maximum number of invulnerables.
|
|
218
|
+
**/
|
|
219
|
+
maxInvulnerables: number;
|
|
220
|
+
kickThreshold: number;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Gets this pallet's derived pot account.
|
|
224
|
+
**/
|
|
225
|
+
potAccount: AccountId32;
|
|
226
|
+
|
|
187
227
|
/**
|
|
188
228
|
* Generic pallet constant
|
|
189
229
|
**/
|
|
@@ -375,6 +375,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
375
375
|
**/
|
|
376
376
|
NewSession: GenericPalletEvent<Rv, 'Session', 'NewSession', { sessionIndex: number }>;
|
|
377
377
|
|
|
378
|
+
/**
|
|
379
|
+
* Validator has been disabled.
|
|
380
|
+
**/
|
|
381
|
+
ValidatorDisabled: GenericPalletEvent<Rv, 'Session', 'ValidatorDisabled', { validator: AccountId32 }>;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Validator has been re-enabled.
|
|
385
|
+
**/
|
|
386
|
+
ValidatorReenabled: GenericPalletEvent<Rv, 'Session', 'ValidatorReenabled', { validator: AccountId32 }>;
|
|
387
|
+
|
|
378
388
|
/**
|
|
379
389
|
* Generic pallet event
|
|
380
390
|
**/
|
|
@@ -865,6 +875,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
865
875
|
**/
|
|
866
876
|
DispatchedAs: GenericPalletEvent<Rv, 'Utility', 'DispatchedAs', { result: Result<[], DispatchError> }>;
|
|
867
877
|
|
|
878
|
+
/**
|
|
879
|
+
* Main call was dispatched.
|
|
880
|
+
**/
|
|
881
|
+
IfElseMainSuccess: GenericPalletEvent<Rv, 'Utility', 'IfElseMainSuccess', null>;
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* The fallback call was dispatched.
|
|
885
|
+
**/
|
|
886
|
+
IfElseFallbackCalled: GenericPalletEvent<Rv, 'Utility', 'IfElseFallbackCalled', { mainError: DispatchError }>;
|
|
887
|
+
|
|
868
888
|
/**
|
|
869
889
|
* Generic pallet event
|
|
870
890
|
**/
|
|
@@ -23,7 +23,7 @@ export interface VersionedWestendPeopleApi<Rv extends RpcVersion> extends Generi
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @name: WestendPeopleApi
|
|
26
|
-
* @specVersion:
|
|
26
|
+
* @specVersion: 1018000
|
|
27
27
|
**/
|
|
28
28
|
export interface WestendPeopleApi {
|
|
29
29
|
legacy: VersionedWestendPeopleApi<RpcLegacy>;
|
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
FrameSystemEventRecord,
|
|
20
20
|
FrameSystemLastRuntimeUpgradeInfo,
|
|
21
21
|
FrameSystemCodeUpgradeAuthorization,
|
|
22
|
+
SpWeightsWeightV2Weight,
|
|
22
23
|
CumulusPalletParachainSystemUnincludedSegmentAncestor,
|
|
23
24
|
CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
|
|
24
25
|
PolkadotPrimitivesV8PersistedValidationData,
|
|
@@ -30,7 +31,6 @@ import type {
|
|
|
30
31
|
CumulusPrimitivesParachainInherentMessageQueueChain,
|
|
31
32
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
32
33
|
PolkadotCorePrimitivesOutboundHrmpMessage,
|
|
33
|
-
SpWeightsWeightV2Weight,
|
|
34
34
|
PalletBalancesAccountData,
|
|
35
35
|
PalletBalancesBalanceLock,
|
|
36
36
|
PalletBalancesReserveData,
|
|
@@ -39,6 +39,7 @@ import type {
|
|
|
39
39
|
PalletTransactionPaymentReleases,
|
|
40
40
|
PalletCollatorSelectionCandidateInfo,
|
|
41
41
|
PeopleWestendRuntimeSessionKeys,
|
|
42
|
+
SpStakingOffenceOffenceSeverity,
|
|
42
43
|
SpCoreCryptoKeyTypeId,
|
|
43
44
|
SpConsensusAuraSr25519AppSr25519Public,
|
|
44
45
|
SpConsensusSlotsSlot,
|
|
@@ -215,6 +216,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
215
216
|
**/
|
|
216
217
|
authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
|
|
217
218
|
|
|
219
|
+
/**
|
|
220
|
+
* The weight reclaimed for the extrinsic.
|
|
221
|
+
*
|
|
222
|
+
* This information is available until the end of the extrinsic execution.
|
|
223
|
+
* More precisely this information is removed in `note_applied_extrinsic`.
|
|
224
|
+
*
|
|
225
|
+
* Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
|
|
226
|
+
* reduction.
|
|
227
|
+
*
|
|
228
|
+
* @param {Callback<SpWeightsWeightV2Weight> =} callback
|
|
229
|
+
**/
|
|
230
|
+
extrinsicWeightReclaimed: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight>;
|
|
231
|
+
|
|
218
232
|
/**
|
|
219
233
|
* Generic pallet storage query
|
|
220
234
|
**/
|
|
@@ -734,9 +748,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
734
748
|
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
|
735
749
|
* a new set of identities.
|
|
736
750
|
*
|
|
737
|
-
* @param {Callback<Array<number>> =} callback
|
|
751
|
+
* @param {Callback<Array<[number, SpStakingOffenceOffenceSeverity]>> =} callback
|
|
738
752
|
**/
|
|
739
|
-
disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
|
|
753
|
+
disabledValidators: GenericStorageQuery<Rv, () => Array<[number, SpStakingOffenceOffenceSeverity]>>;
|
|
740
754
|
|
|
741
755
|
/**
|
|
742
756
|
* The next session keys for a validator.
|
|
@@ -808,13 +822,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
808
822
|
authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
|
|
809
823
|
|
|
810
824
|
/**
|
|
811
|
-
* Current slot paired with a number of authored blocks.
|
|
825
|
+
* Current relay chain slot paired with a number of authored blocks.
|
|
812
826
|
*
|
|
813
|
-
*
|
|
827
|
+
* This is updated in [`FixedVelocityConsensusHook::on_state_proof`] with the current relay
|
|
828
|
+
* chain slot as provided by the relay chain state proof.
|
|
814
829
|
*
|
|
815
830
|
* @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback
|
|
816
831
|
**/
|
|
817
|
-
|
|
832
|
+
relaySlotInfo: GenericStorageQuery<Rv, () => [SpConsensusSlotsSlot, number] | undefined>;
|
|
818
833
|
|
|
819
834
|
/**
|
|
820
835
|
* Generic pallet storage query
|
|
@@ -81,7 +81,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
81
81
|
/**
|
|
82
82
|
* Whether it is legal to extend the chain, assuming the given block is the most
|
|
83
83
|
* recently included one as-of the relay parent that will be built against, and
|
|
84
|
-
* the given slot.
|
|
84
|
+
* the given relay chain slot.
|
|
85
85
|
*
|
|
86
86
|
* This should be consistent with the logic the runtime uses when validating blocks to
|
|
87
87
|
* avoid issues.
|
|
@@ -507,17 +507,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
507
507
|
**/
|
|
508
508
|
dryRunApi: {
|
|
509
509
|
/**
|
|
510
|
-
* Dry run call.
|
|
510
|
+
* Dry run call V2.
|
|
511
511
|
*
|
|
512
512
|
* @callname: DryRunApi_dry_run_call
|
|
513
513
|
* @param {PeopleWestendRuntimeOriginCaller} origin
|
|
514
514
|
* @param {PeopleWestendRuntimeRuntimeCallLike} call
|
|
515
|
+
* @param {number} result_xcms_version
|
|
515
516
|
**/
|
|
516
517
|
dryRunCall: GenericRuntimeApiMethod<
|
|
517
518
|
Rv,
|
|
518
519
|
(
|
|
519
520
|
origin: PeopleWestendRuntimeOriginCaller,
|
|
520
521
|
call: PeopleWestendRuntimeRuntimeCallLike,
|
|
522
|
+
resultXcmsVersion: number,
|
|
521
523
|
) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
|
|
522
524
|
>;
|
|
523
525
|
|
package/westend-people/tx.d.ts
CHANGED
|
@@ -1945,6 +1945,78 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1945
1945
|
>
|
|
1946
1946
|
>;
|
|
1947
1947
|
|
|
1948
|
+
/**
|
|
1949
|
+
* Dispatch a fallback call in the event the main call fails to execute.
|
|
1950
|
+
* May be called from any origin except `None`.
|
|
1951
|
+
*
|
|
1952
|
+
* This function first attempts to dispatch the `main` call.
|
|
1953
|
+
* If the `main` call fails, the `fallback` is attemted.
|
|
1954
|
+
* if the fallback is successfully dispatched, the weights of both calls
|
|
1955
|
+
* are accumulated and an event containing the main call error is deposited.
|
|
1956
|
+
*
|
|
1957
|
+
* In the event of a fallback failure the whole call fails
|
|
1958
|
+
* with the weights returned.
|
|
1959
|
+
*
|
|
1960
|
+
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
|
1961
|
+
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
|
1962
|
+
*
|
|
1963
|
+
* ## Dispatch Logic
|
|
1964
|
+
* - If the origin is `root`, both the main and fallback calls are executed without
|
|
1965
|
+
* applying any origin filters.
|
|
1966
|
+
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
|
1967
|
+
* `fallback` calls.
|
|
1968
|
+
*
|
|
1969
|
+
* ## Use Case
|
|
1970
|
+
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
|
1971
|
+
* or both.
|
|
1972
|
+
*
|
|
1973
|
+
* @param {PeopleWestendRuntimeRuntimeCallLike} main
|
|
1974
|
+
* @param {PeopleWestendRuntimeRuntimeCallLike} fallback
|
|
1975
|
+
**/
|
|
1976
|
+
ifElse: GenericTxCall<
|
|
1977
|
+
Rv,
|
|
1978
|
+
(
|
|
1979
|
+
main: PeopleWestendRuntimeRuntimeCallLike,
|
|
1980
|
+
fallback: PeopleWestendRuntimeRuntimeCallLike,
|
|
1981
|
+
) => ChainSubmittableExtrinsic<
|
|
1982
|
+
Rv,
|
|
1983
|
+
{
|
|
1984
|
+
pallet: 'Utility';
|
|
1985
|
+
palletCall: {
|
|
1986
|
+
name: 'IfElse';
|
|
1987
|
+
params: { main: PeopleWestendRuntimeRuntimeCallLike; fallback: PeopleWestendRuntimeRuntimeCallLike };
|
|
1988
|
+
};
|
|
1989
|
+
}
|
|
1990
|
+
>
|
|
1991
|
+
>;
|
|
1992
|
+
|
|
1993
|
+
/**
|
|
1994
|
+
* Dispatches a function call with a provided origin.
|
|
1995
|
+
*
|
|
1996
|
+
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
|
1997
|
+
*
|
|
1998
|
+
* The dispatch origin for this call must be _Root_.
|
|
1999
|
+
*
|
|
2000
|
+
* @param {PeopleWestendRuntimeOriginCaller} asOrigin
|
|
2001
|
+
* @param {PeopleWestendRuntimeRuntimeCallLike} call
|
|
2002
|
+
**/
|
|
2003
|
+
dispatchAsFallible: GenericTxCall<
|
|
2004
|
+
Rv,
|
|
2005
|
+
(
|
|
2006
|
+
asOrigin: PeopleWestendRuntimeOriginCaller,
|
|
2007
|
+
call: PeopleWestendRuntimeRuntimeCallLike,
|
|
2008
|
+
) => ChainSubmittableExtrinsic<
|
|
2009
|
+
Rv,
|
|
2010
|
+
{
|
|
2011
|
+
pallet: 'Utility';
|
|
2012
|
+
palletCall: {
|
|
2013
|
+
name: 'DispatchAsFallible';
|
|
2014
|
+
params: { asOrigin: PeopleWestendRuntimeOriginCaller; call: PeopleWestendRuntimeRuntimeCallLike };
|
|
2015
|
+
};
|
|
2016
|
+
}
|
|
2017
|
+
>
|
|
2018
|
+
>;
|
|
2019
|
+
|
|
1948
2020
|
/**
|
|
1949
2021
|
* Generic pallet tx call
|
|
1950
2022
|
**/
|
|
@@ -13,6 +13,7 @@ import type {
|
|
|
13
13
|
MultiAddress,
|
|
14
14
|
MultiAddressLike,
|
|
15
15
|
AccountId32Like,
|
|
16
|
+
Perbill,
|
|
16
17
|
Data,
|
|
17
18
|
Era,
|
|
18
19
|
Header,
|
|
@@ -321,7 +322,15 @@ export type PalletSessionEvent =
|
|
|
321
322
|
* New session has happened. Note that the argument is the session index, not the
|
|
322
323
|
* block number as the type might suggest.
|
|
323
324
|
**/
|
|
324
|
-
{ name: 'NewSession'; data: { sessionIndex: number } }
|
|
325
|
+
| { name: 'NewSession'; data: { sessionIndex: number } }
|
|
326
|
+
/**
|
|
327
|
+
* Validator has been disabled.
|
|
328
|
+
**/
|
|
329
|
+
| { name: 'ValidatorDisabled'; data: { validator: AccountId32 } }
|
|
330
|
+
/**
|
|
331
|
+
* Validator has been re-enabled.
|
|
332
|
+
**/
|
|
333
|
+
| { name: 'ValidatorReenabled'; data: { validator: AccountId32 } };
|
|
325
334
|
|
|
326
335
|
/**
|
|
327
336
|
* The `Event` enum of this pallet
|
|
@@ -1101,7 +1110,15 @@ export type PalletUtilityEvent =
|
|
|
1101
1110
|
/**
|
|
1102
1111
|
* A call was dispatched.
|
|
1103
1112
|
**/
|
|
1104
|
-
| { name: 'DispatchedAs'; data: { result: Result<[], DispatchError> } }
|
|
1113
|
+
| { name: 'DispatchedAs'; data: { result: Result<[], DispatchError> } }
|
|
1114
|
+
/**
|
|
1115
|
+
* Main call was dispatched.
|
|
1116
|
+
**/
|
|
1117
|
+
| { name: 'IfElseMainSuccess' }
|
|
1118
|
+
/**
|
|
1119
|
+
* The fallback call was dispatched.
|
|
1120
|
+
**/
|
|
1121
|
+
| { name: 'IfElseFallbackCalled'; data: { mainError: DispatchError } };
|
|
1105
1122
|
|
|
1106
1123
|
/**
|
|
1107
1124
|
* The `Event` enum of this pallet
|
|
@@ -2280,6 +2297,8 @@ export type PalletCollatorSelectionCallLike =
|
|
|
2280
2297
|
**/
|
|
2281
2298
|
| { name: 'TakeCandidateSlot'; params: { deposit: bigint; target: AccountId32Like } };
|
|
2282
2299
|
|
|
2300
|
+
export type FrameSupportPalletId = FixedBytes<8>;
|
|
2301
|
+
|
|
2283
2302
|
/**
|
|
2284
2303
|
* The `Error` enum of this pallet.
|
|
2285
2304
|
**/
|
|
@@ -2357,6 +2376,8 @@ export type PeopleWestendRuntimeSessionKeys = { aura: SpConsensusAuraSr25519AppS
|
|
|
2357
2376
|
|
|
2358
2377
|
export type SpConsensusAuraSr25519AppSr25519Public = FixedBytes<32>;
|
|
2359
2378
|
|
|
2379
|
+
export type SpStakingOffenceOffenceSeverity = Perbill;
|
|
2380
|
+
|
|
2360
2381
|
export type SpCoreCryptoKeyTypeId = FixedBytes<4>;
|
|
2361
2382
|
|
|
2362
2383
|
/**
|
|
@@ -3890,7 +3911,44 @@ export type PalletUtilityCall =
|
|
|
3890
3911
|
*
|
|
3891
3912
|
* The dispatch origin for this call must be _Root_.
|
|
3892
3913
|
**/
|
|
3893
|
-
| { name: 'WithWeight'; params: { call: PeopleWestendRuntimeRuntimeCall; weight: SpWeightsWeightV2Weight } }
|
|
3914
|
+
| { name: 'WithWeight'; params: { call: PeopleWestendRuntimeRuntimeCall; weight: SpWeightsWeightV2Weight } }
|
|
3915
|
+
/**
|
|
3916
|
+
* Dispatch a fallback call in the event the main call fails to execute.
|
|
3917
|
+
* May be called from any origin except `None`.
|
|
3918
|
+
*
|
|
3919
|
+
* This function first attempts to dispatch the `main` call.
|
|
3920
|
+
* If the `main` call fails, the `fallback` is attemted.
|
|
3921
|
+
* if the fallback is successfully dispatched, the weights of both calls
|
|
3922
|
+
* are accumulated and an event containing the main call error is deposited.
|
|
3923
|
+
*
|
|
3924
|
+
* In the event of a fallback failure the whole call fails
|
|
3925
|
+
* with the weights returned.
|
|
3926
|
+
*
|
|
3927
|
+
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
|
3928
|
+
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
|
3929
|
+
*
|
|
3930
|
+
* ## Dispatch Logic
|
|
3931
|
+
* - If the origin is `root`, both the main and fallback calls are executed without
|
|
3932
|
+
* applying any origin filters.
|
|
3933
|
+
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
|
3934
|
+
* `fallback` calls.
|
|
3935
|
+
*
|
|
3936
|
+
* ## Use Case
|
|
3937
|
+
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
|
3938
|
+
* or both.
|
|
3939
|
+
**/
|
|
3940
|
+
| { name: 'IfElse'; params: { main: PeopleWestendRuntimeRuntimeCall; fallback: PeopleWestendRuntimeRuntimeCall } }
|
|
3941
|
+
/**
|
|
3942
|
+
* Dispatches a function call with a provided origin.
|
|
3943
|
+
*
|
|
3944
|
+
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
|
3945
|
+
*
|
|
3946
|
+
* The dispatch origin for this call must be _Root_.
|
|
3947
|
+
**/
|
|
3948
|
+
| {
|
|
3949
|
+
name: 'DispatchAsFallible';
|
|
3950
|
+
params: { asOrigin: PeopleWestendRuntimeOriginCaller; call: PeopleWestendRuntimeRuntimeCall };
|
|
3951
|
+
};
|
|
3894
3952
|
|
|
3895
3953
|
export type PalletUtilityCallLike =
|
|
3896
3954
|
/**
|
|
@@ -3982,7 +4040,47 @@ export type PalletUtilityCallLike =
|
|
|
3982
4040
|
*
|
|
3983
4041
|
* The dispatch origin for this call must be _Root_.
|
|
3984
4042
|
**/
|
|
3985
|
-
| { name: 'WithWeight'; params: { call: PeopleWestendRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight } }
|
|
4043
|
+
| { name: 'WithWeight'; params: { call: PeopleWestendRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight } }
|
|
4044
|
+
/**
|
|
4045
|
+
* Dispatch a fallback call in the event the main call fails to execute.
|
|
4046
|
+
* May be called from any origin except `None`.
|
|
4047
|
+
*
|
|
4048
|
+
* This function first attempts to dispatch the `main` call.
|
|
4049
|
+
* If the `main` call fails, the `fallback` is attemted.
|
|
4050
|
+
* if the fallback is successfully dispatched, the weights of both calls
|
|
4051
|
+
* are accumulated and an event containing the main call error is deposited.
|
|
4052
|
+
*
|
|
4053
|
+
* In the event of a fallback failure the whole call fails
|
|
4054
|
+
* with the weights returned.
|
|
4055
|
+
*
|
|
4056
|
+
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
|
4057
|
+
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
|
4058
|
+
*
|
|
4059
|
+
* ## Dispatch Logic
|
|
4060
|
+
* - If the origin is `root`, both the main and fallback calls are executed without
|
|
4061
|
+
* applying any origin filters.
|
|
4062
|
+
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
|
4063
|
+
* `fallback` calls.
|
|
4064
|
+
*
|
|
4065
|
+
* ## Use Case
|
|
4066
|
+
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
|
4067
|
+
* or both.
|
|
4068
|
+
**/
|
|
4069
|
+
| {
|
|
4070
|
+
name: 'IfElse';
|
|
4071
|
+
params: { main: PeopleWestendRuntimeRuntimeCallLike; fallback: PeopleWestendRuntimeRuntimeCallLike };
|
|
4072
|
+
}
|
|
4073
|
+
/**
|
|
4074
|
+
* Dispatches a function call with a provided origin.
|
|
4075
|
+
*
|
|
4076
|
+
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
|
4077
|
+
*
|
|
4078
|
+
* The dispatch origin for this call must be _Root_.
|
|
4079
|
+
**/
|
|
4080
|
+
| {
|
|
4081
|
+
name: 'DispatchAsFallible';
|
|
4082
|
+
params: { asOrigin: PeopleWestendRuntimeOriginCaller; call: PeopleWestendRuntimeRuntimeCallLike };
|
|
4083
|
+
};
|
|
3986
4084
|
|
|
3987
4085
|
export type PeopleWestendRuntimeRuntimeCall =
|
|
3988
4086
|
| { pallet: 'System'; palletCall: FrameSystemCall }
|
|
@@ -5311,8 +5409,7 @@ export type PolkadotRuntimeCommonIdentityMigratorPalletCallLike =
|
|
|
5311
5409
|
export type PeopleWestendRuntimeOriginCaller =
|
|
5312
5410
|
| { type: 'System'; value: FrameSupportDispatchRawOrigin }
|
|
5313
5411
|
| { type: 'PolkadotXcm'; value: PalletXcmOrigin }
|
|
5314
|
-
| { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin }
|
|
5315
|
-
| { type: 'Void'; value: SpCoreVoid };
|
|
5412
|
+
| { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin };
|
|
5316
5413
|
|
|
5317
5414
|
export type FrameSupportDispatchRawOrigin =
|
|
5318
5415
|
| { type: 'Root' }
|
|
@@ -5327,8 +5424,6 @@ export type CumulusPalletXcmOrigin =
|
|
|
5327
5424
|
| { type: 'Relay' }
|
|
5328
5425
|
| { type: 'SiblingParachain'; value: PolkadotParachainPrimitivesPrimitivesId };
|
|
5329
5426
|
|
|
5330
|
-
export type SpCoreVoid = null;
|
|
5331
|
-
|
|
5332
5427
|
/**
|
|
5333
5428
|
* The `Error` enum of this pallet.
|
|
5334
5429
|
**/
|
|
@@ -5603,6 +5698,17 @@ export type PalletMigrationsError =
|
|
|
5603
5698
|
**/
|
|
5604
5699
|
'Ongoing';
|
|
5605
5700
|
|
|
5701
|
+
export type CumulusPalletWeightReclaimStorageWeightReclaim = [
|
|
5702
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
5703
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
5704
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
5705
|
+
FrameSystemExtensionsCheckGenesis,
|
|
5706
|
+
FrameSystemExtensionsCheckMortality,
|
|
5707
|
+
FrameSystemExtensionsCheckNonce,
|
|
5708
|
+
FrameSystemExtensionsCheckWeight,
|
|
5709
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
5710
|
+
];
|
|
5711
|
+
|
|
5606
5712
|
export type FrameSystemExtensionsCheckNonZeroSender = {};
|
|
5607
5713
|
|
|
5608
5714
|
export type FrameSystemExtensionsCheckSpecVersion = {};
|
|
@@ -5619,8 +5725,6 @@ export type FrameSystemExtensionsCheckWeight = {};
|
|
|
5619
5725
|
|
|
5620
5726
|
export type PalletTransactionPaymentChargeTransactionPayment = bigint;
|
|
5621
5727
|
|
|
5622
|
-
export type CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim = {};
|
|
5623
|
-
|
|
5624
5728
|
export type PeopleWestendRuntimeRuntime = {};
|
|
5625
5729
|
|
|
5626
5730
|
export type SpConsensusSlotsSlotDuration = bigint;
|