@dedot/chaintypes 0.134.0 → 0.135.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-asset-hub/index.d.ts +1 -1
- package/kusama-people/consts.d.ts +38 -1
- package/kusama-people/errors.d.ts +18 -12
- package/kusama-people/events.d.ts +110 -2
- package/kusama-people/index.d.ts +1 -1
- package/kusama-people/query.d.ts +36 -6
- package/kusama-people/runtime.d.ts +1 -1
- package/kusama-people/tx.d.ts +204 -0
- package/kusama-people/types.d.ts +315 -24
- package/moonbeam/consts.d.ts +125 -0
- package/moonbeam/errors.d.ts +219 -50
- package/moonbeam/events.d.ts +331 -0
- package/moonbeam/index.d.ts +1 -1
- package/moonbeam/query.d.ts +267 -17
- package/moonbeam/runtime.d.ts +117 -1
- package/moonbeam/tx.d.ts +564 -88
- package/moonbeam/types.d.ts +1376 -239
- package/package.json +2 -2
|
@@ -25,7 +25,7 @@ export interface VersionedKusamaAssetHubApi<Rv extends RpcVersion> extends Gener
|
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* @name: KusamaAssetHubApi
|
|
28
|
-
* @specVersion:
|
|
28
|
+
* @specVersion: 1006001
|
|
29
29
|
**/
|
|
30
30
|
export interface KusamaAssetHubApi {
|
|
31
31
|
legacy: VersionedKusamaAssetHubApi<RpcLegacy>;
|
|
@@ -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.js';
|
|
12
13
|
|
|
@@ -209,6 +210,36 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
209
210
|
* Pallet `CollatorSelection`'s constants
|
|
210
211
|
**/
|
|
211
212
|
collatorSelection: {
|
|
213
|
+
/**
|
|
214
|
+
* Account Identifier from which the internal Pot is generated.
|
|
215
|
+
**/
|
|
216
|
+
potId: FrameSupportPalletId;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Maximum number of candidates that we should have.
|
|
220
|
+
*
|
|
221
|
+
* This does not take into account the invulnerables.
|
|
222
|
+
**/
|
|
223
|
+
maxCandidates: number;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Minimum number eligible collators. Should always be greater than zero. This includes
|
|
227
|
+
* Invulnerable collators. This ensures that there will always be one collator who can
|
|
228
|
+
* produce a block.
|
|
229
|
+
**/
|
|
230
|
+
minEligibleCollators: number;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Maximum number of invulnerables.
|
|
234
|
+
**/
|
|
235
|
+
maxInvulnerables: number;
|
|
236
|
+
kickThreshold: number;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Gets this pallet's derived pot account.
|
|
240
|
+
**/
|
|
241
|
+
potAccount: AccountId32;
|
|
242
|
+
|
|
212
243
|
/**
|
|
213
244
|
* Generic pallet constant
|
|
214
245
|
**/
|
|
@@ -292,6 +323,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
292
323
|
* Pallet `PolkadotXcm`'s constants
|
|
293
324
|
**/
|
|
294
325
|
polkadotXcm: {
|
|
326
|
+
/**
|
|
327
|
+
* The latest supported version that we advertise. Generally just set it to
|
|
328
|
+
* `pallet_xcm::CurrentXcmVersion`.
|
|
329
|
+
**/
|
|
330
|
+
advertisedXcmVersion: number;
|
|
331
|
+
|
|
295
332
|
/**
|
|
296
333
|
* Generic pallet constant
|
|
297
334
|
**/
|
|
@@ -96,16 +96,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
96
96
|
**/
|
|
97
97
|
NotScheduled: GenericPalletError<Rv>;
|
|
98
98
|
|
|
99
|
-
/**
|
|
100
|
-
* No code upgrade has been authorized.
|
|
101
|
-
**/
|
|
102
|
-
NothingAuthorized: GenericPalletError<Rv>;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* The given code upgrade has not been authorized.
|
|
106
|
-
**/
|
|
107
|
-
Unauthorized: GenericPalletError<Rv>;
|
|
108
|
-
|
|
109
99
|
/**
|
|
110
100
|
* Generic pallet error
|
|
111
101
|
**/
|
|
@@ -483,6 +473,21 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
483
473
|
**/
|
|
484
474
|
LocalExecutionIncomplete: GenericPalletError<Rv>;
|
|
485
475
|
|
|
476
|
+
/**
|
|
477
|
+
* Too many locations authorized to alias origin.
|
|
478
|
+
**/
|
|
479
|
+
TooManyAuthorizedAliases: GenericPalletError<Rv>;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Expiry block number is in the past.
|
|
483
|
+
**/
|
|
484
|
+
ExpiresInPast: GenericPalletError<Rv>;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* The alias to remove authorization for was not found.
|
|
488
|
+
**/
|
|
489
|
+
AliasNotFound: GenericPalletError<Rv>;
|
|
490
|
+
|
|
486
491
|
/**
|
|
487
492
|
* Generic pallet error
|
|
488
493
|
**/
|
|
@@ -602,12 +607,13 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
602
607
|
SenderInSignatories: GenericPalletError<Rv>;
|
|
603
608
|
|
|
604
609
|
/**
|
|
605
|
-
* Multisig operation not found
|
|
610
|
+
* Multisig operation not found in storage.
|
|
606
611
|
**/
|
|
607
612
|
NotFound: GenericPalletError<Rv>;
|
|
608
613
|
|
|
609
614
|
/**
|
|
610
|
-
* Only the account that originally created the multisig is able to cancel it
|
|
615
|
+
* Only the account that originally created the multisig is able to cancel it or update
|
|
616
|
+
* its deposits.
|
|
611
617
|
**/
|
|
612
618
|
NotOwner: GenericPalletError<Rv>;
|
|
613
619
|
|
|
@@ -9,15 +9,17 @@ import type {
|
|
|
9
9
|
StagingXcmV5TraitsOutcome,
|
|
10
10
|
StagingXcmV5Location,
|
|
11
11
|
StagingXcmV5Xcm,
|
|
12
|
+
XcmV3TraitsSendError,
|
|
13
|
+
XcmV5TraitsError,
|
|
12
14
|
StagingXcmV5Response,
|
|
13
15
|
XcmVersionedAssets,
|
|
14
16
|
StagingXcmV5AssetAssets,
|
|
15
|
-
XcmV5TraitsError,
|
|
16
17
|
XcmVersionedLocation,
|
|
17
18
|
CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
18
19
|
FrameSupportMessagesProcessMessageError,
|
|
19
20
|
PalletMultisigTimepoint,
|
|
20
21
|
PeopleKusamaRuntimeProxyType,
|
|
22
|
+
PalletProxyDepositKind,
|
|
21
23
|
} from './types.js';
|
|
22
24
|
|
|
23
25
|
export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<Rv> {
|
|
@@ -70,6 +72,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
70
72
|
**/
|
|
71
73
|
UpgradeAuthorized: GenericPalletEvent<Rv, 'System', 'UpgradeAuthorized', { codeHash: H256; checkVersion: boolean }>;
|
|
72
74
|
|
|
75
|
+
/**
|
|
76
|
+
* An invalid authorized upgrade was rejected while trying to apply it.
|
|
77
|
+
**/
|
|
78
|
+
RejectedInvalidAuthorizedUpgrade: GenericPalletEvent<
|
|
79
|
+
Rv,
|
|
80
|
+
'System',
|
|
81
|
+
'RejectedInvalidAuthorizedUpgrade',
|
|
82
|
+
{ codeHash: H256; error: DispatchError }
|
|
83
|
+
>;
|
|
84
|
+
|
|
73
85
|
/**
|
|
74
86
|
* Generic pallet event
|
|
75
87
|
**/
|
|
@@ -510,6 +522,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
510
522
|
**/
|
|
511
523
|
NewSession: GenericPalletEvent<Rv, 'Session', 'NewSession', { sessionIndex: number }>;
|
|
512
524
|
|
|
525
|
+
/**
|
|
526
|
+
* Validator has been disabled.
|
|
527
|
+
**/
|
|
528
|
+
ValidatorDisabled: GenericPalletEvent<Rv, 'Session', 'ValidatorDisabled', { validator: AccountId32 }>;
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Validator has been re-enabled.
|
|
532
|
+
**/
|
|
533
|
+
ValidatorReenabled: GenericPalletEvent<Rv, 'Session', 'ValidatorReenabled', { validator: AccountId32 }>;
|
|
534
|
+
|
|
513
535
|
/**
|
|
514
536
|
* Generic pallet event
|
|
515
537
|
**/
|
|
@@ -539,7 +561,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
539
561
|
Attempted: GenericPalletEvent<Rv, 'PolkadotXcm', 'Attempted', { outcome: StagingXcmV5TraitsOutcome }>;
|
|
540
562
|
|
|
541
563
|
/**
|
|
542
|
-
*
|
|
564
|
+
* An XCM message was sent.
|
|
543
565
|
**/
|
|
544
566
|
Sent: GenericPalletEvent<
|
|
545
567
|
Rv,
|
|
@@ -553,6 +575,31 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
553
575
|
}
|
|
554
576
|
>;
|
|
555
577
|
|
|
578
|
+
/**
|
|
579
|
+
* An XCM message failed to send.
|
|
580
|
+
**/
|
|
581
|
+
SendFailed: GenericPalletEvent<
|
|
582
|
+
Rv,
|
|
583
|
+
'PolkadotXcm',
|
|
584
|
+
'SendFailed',
|
|
585
|
+
{
|
|
586
|
+
origin: StagingXcmV5Location;
|
|
587
|
+
destination: StagingXcmV5Location;
|
|
588
|
+
error: XcmV3TraitsSendError;
|
|
589
|
+
messageId: FixedBytes<32>;
|
|
590
|
+
}
|
|
591
|
+
>;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* An XCM message failed to process.
|
|
595
|
+
**/
|
|
596
|
+
ProcessXcmError: GenericPalletEvent<
|
|
597
|
+
Rv,
|
|
598
|
+
'PolkadotXcm',
|
|
599
|
+
'ProcessXcmError',
|
|
600
|
+
{ origin: StagingXcmV5Location; error: XcmV5TraitsError; messageId: FixedBytes<32> }
|
|
601
|
+
>;
|
|
602
|
+
|
|
556
603
|
/**
|
|
557
604
|
* Query response received which does not match a registered query. This may be because a
|
|
558
605
|
* matching query was never registered, it may be because it is a duplicate response, or
|
|
@@ -806,6 +853,37 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
806
853
|
**/
|
|
807
854
|
VersionMigrationFinished: GenericPalletEvent<Rv, 'PolkadotXcm', 'VersionMigrationFinished', { version: number }>;
|
|
808
855
|
|
|
856
|
+
/**
|
|
857
|
+
* An `aliaser` location was authorized by `target` to alias it, authorization valid until
|
|
858
|
+
* `expiry` block number.
|
|
859
|
+
**/
|
|
860
|
+
AliasAuthorized: GenericPalletEvent<
|
|
861
|
+
Rv,
|
|
862
|
+
'PolkadotXcm',
|
|
863
|
+
'AliasAuthorized',
|
|
864
|
+
{ aliaser: StagingXcmV5Location; target: StagingXcmV5Location; expiry?: bigint | undefined }
|
|
865
|
+
>;
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* `target` removed alias authorization for `aliaser`.
|
|
869
|
+
**/
|
|
870
|
+
AliasAuthorizationRemoved: GenericPalletEvent<
|
|
871
|
+
Rv,
|
|
872
|
+
'PolkadotXcm',
|
|
873
|
+
'AliasAuthorizationRemoved',
|
|
874
|
+
{ aliaser: StagingXcmV5Location; target: StagingXcmV5Location }
|
|
875
|
+
>;
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* `target` removed all alias authorizations.
|
|
879
|
+
**/
|
|
880
|
+
AliasesAuthorizationsRemoved: GenericPalletEvent<
|
|
881
|
+
Rv,
|
|
882
|
+
'PolkadotXcm',
|
|
883
|
+
'AliasesAuthorizationsRemoved',
|
|
884
|
+
{ target: StagingXcmV5Location }
|
|
885
|
+
>;
|
|
886
|
+
|
|
809
887
|
/**
|
|
810
888
|
* Generic pallet event
|
|
811
889
|
**/
|
|
@@ -1000,6 +1078,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1000
1078
|
**/
|
|
1001
1079
|
DispatchedAs: GenericPalletEvent<Rv, 'Utility', 'DispatchedAs', { result: Result<[], DispatchError> }>;
|
|
1002
1080
|
|
|
1081
|
+
/**
|
|
1082
|
+
* Main call was dispatched.
|
|
1083
|
+
**/
|
|
1084
|
+
IfElseMainSuccess: GenericPalletEvent<Rv, 'Utility', 'IfElseMainSuccess', null>;
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* The fallback call was dispatched.
|
|
1088
|
+
**/
|
|
1089
|
+
IfElseFallbackCalled: GenericPalletEvent<Rv, 'Utility', 'IfElseFallbackCalled', { mainError: DispatchError }>;
|
|
1090
|
+
|
|
1003
1091
|
/**
|
|
1004
1092
|
* Generic pallet event
|
|
1005
1093
|
**/
|
|
@@ -1055,6 +1143,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1055
1143
|
{ cancelling: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> }
|
|
1056
1144
|
>;
|
|
1057
1145
|
|
|
1146
|
+
/**
|
|
1147
|
+
* The deposit for a multisig operation has been updated/poked.
|
|
1148
|
+
**/
|
|
1149
|
+
DepositPoked: GenericPalletEvent<
|
|
1150
|
+
Rv,
|
|
1151
|
+
'Multisig',
|
|
1152
|
+
'DepositPoked',
|
|
1153
|
+
{ who: AccountId32; callHash: FixedBytes<32>; oldDeposit: bigint; newDeposit: bigint }
|
|
1154
|
+
>;
|
|
1155
|
+
|
|
1058
1156
|
/**
|
|
1059
1157
|
* Generic pallet event
|
|
1060
1158
|
**/
|
|
@@ -1105,6 +1203,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1105
1203
|
{ delegator: AccountId32; delegatee: AccountId32; proxyType: PeopleKusamaRuntimeProxyType; delay: number }
|
|
1106
1204
|
>;
|
|
1107
1205
|
|
|
1206
|
+
/**
|
|
1207
|
+
* A deposit stored for proxies or announcements was poked / updated.
|
|
1208
|
+
**/
|
|
1209
|
+
DepositPoked: GenericPalletEvent<
|
|
1210
|
+
Rv,
|
|
1211
|
+
'Proxy',
|
|
1212
|
+
'DepositPoked',
|
|
1213
|
+
{ who: AccountId32; kind: PalletProxyDepositKind; oldDeposit: bigint; newDeposit: bigint }
|
|
1214
|
+
>;
|
|
1215
|
+
|
|
1108
1216
|
/**
|
|
1109
1217
|
* Generic pallet event
|
|
1110
1218
|
**/
|
package/kusama-people/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface VersionedKusamaPeopleApi<Rv extends RpcVersion> extends Generic
|
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* @name: KusamaPeopleApi
|
|
28
|
-
* @specVersion:
|
|
28
|
+
* @specVersion: 1006001
|
|
29
29
|
**/
|
|
30
30
|
export interface KusamaPeopleApi {
|
|
31
31
|
legacy: VersionedKusamaPeopleApi<RpcLegacy>;
|
package/kusama-people/query.d.ts
CHANGED
|
@@ -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
|
PalletMigrationsMigrationCursor,
|
|
35
35
|
PalletBalancesAccountData,
|
|
36
36
|
PalletBalancesBalanceLock,
|
|
@@ -40,6 +40,7 @@ import type {
|
|
|
40
40
|
PalletTransactionPaymentReleases,
|
|
41
41
|
PalletCollatorSelectionCandidateInfo,
|
|
42
42
|
PeopleKusamaRuntimeSessionKeys,
|
|
43
|
+
SpStakingOffenceOffenceSeverity,
|
|
43
44
|
SpCoreCryptoKeyTypeId,
|
|
44
45
|
SpConsensusAuraSr25519AppSr25519Public,
|
|
45
46
|
SpConsensusSlotsSlot,
|
|
@@ -51,6 +52,7 @@ import type {
|
|
|
51
52
|
PalletXcmRemoteLockedFungibleRecord,
|
|
52
53
|
XcmVersionedAssetId,
|
|
53
54
|
StagingXcmV5Xcm,
|
|
55
|
+
PalletXcmAuthorizedAliasesEntry,
|
|
54
56
|
PalletMessageQueueBookState,
|
|
55
57
|
CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
56
58
|
PalletMessageQueuePage,
|
|
@@ -215,6 +217,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
215
217
|
**/
|
|
216
218
|
authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
|
|
217
219
|
|
|
220
|
+
/**
|
|
221
|
+
* The weight reclaimed for the extrinsic.
|
|
222
|
+
*
|
|
223
|
+
* This information is available until the end of the extrinsic execution.
|
|
224
|
+
* More precisely this information is removed in `note_applied_extrinsic`.
|
|
225
|
+
*
|
|
226
|
+
* Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
|
|
227
|
+
* reduction.
|
|
228
|
+
*
|
|
229
|
+
* @param {Callback<SpWeightsWeightV2Weight> =} callback
|
|
230
|
+
**/
|
|
231
|
+
extrinsicWeightReclaimed: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight>;
|
|
232
|
+
|
|
218
233
|
/**
|
|
219
234
|
* Generic pallet storage query
|
|
220
235
|
**/
|
|
@@ -763,9 +778,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
763
778
|
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
|
764
779
|
* a new set of identities.
|
|
765
780
|
*
|
|
766
|
-
* @param {Callback<Array<number>> =} callback
|
|
781
|
+
* @param {Callback<Array<[number, SpStakingOffenceOffenceSeverity]>> =} callback
|
|
767
782
|
**/
|
|
768
|
-
disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
|
|
783
|
+
disabledValidators: GenericStorageQuery<Rv, () => Array<[number, SpStakingOffenceOffenceSeverity]>>;
|
|
769
784
|
|
|
770
785
|
/**
|
|
771
786
|
* The next session keys for a validator.
|
|
@@ -837,13 +852,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
837
852
|
authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
|
|
838
853
|
|
|
839
854
|
/**
|
|
840
|
-
* Current slot paired with a number of authored blocks.
|
|
855
|
+
* Current relay chain slot paired with a number of authored blocks.
|
|
841
856
|
*
|
|
842
|
-
*
|
|
857
|
+
* This is updated in [`FixedVelocityConsensusHook::on_state_proof`] with the current relay
|
|
858
|
+
* chain slot as provided by the relay chain state proof.
|
|
843
859
|
*
|
|
844
860
|
* @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback
|
|
845
861
|
**/
|
|
846
|
-
|
|
862
|
+
relaySlotInfo: GenericStorageQuery<Rv, () => [SpConsensusSlotsSlot, number] | undefined>;
|
|
847
863
|
|
|
848
864
|
/**
|
|
849
865
|
* Generic pallet storage query
|
|
@@ -1082,6 +1098,20 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1082
1098
|
**/
|
|
1083
1099
|
recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV5Xcm | undefined>;
|
|
1084
1100
|
|
|
1101
|
+
/**
|
|
1102
|
+
* Map of authorized aliasers of local origins. Each local location can authorize a list of
|
|
1103
|
+
* other locations to alias into it. Each aliaser is only valid until its inner `expiry`
|
|
1104
|
+
* block number.
|
|
1105
|
+
*
|
|
1106
|
+
* @param {XcmVersionedLocation} arg
|
|
1107
|
+
* @param {Callback<PalletXcmAuthorizedAliasesEntry | undefined> =} callback
|
|
1108
|
+
**/
|
|
1109
|
+
authorizedAliases: GenericStorageQuery<
|
|
1110
|
+
Rv,
|
|
1111
|
+
(arg: XcmVersionedLocation) => PalletXcmAuthorizedAliasesEntry | undefined,
|
|
1112
|
+
XcmVersionedLocation
|
|
1113
|
+
>;
|
|
1114
|
+
|
|
1085
1115
|
/**
|
|
1086
1116
|
* Generic pallet storage query
|
|
1087
1117
|
**/
|
|
@@ -77,7 +77,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
77
77
|
/**
|
|
78
78
|
* Whether it is legal to extend the chain, assuming the given block is the most
|
|
79
79
|
* recently included one as-of the relay parent that will be built against, and
|
|
80
|
-
* the given slot.
|
|
80
|
+
* the given relay chain slot.
|
|
81
81
|
*
|
|
82
82
|
* This should be consistent with the logic the runtime uses when validating blocks to
|
|
83
83
|
* avoid issues.
|
package/kusama-people/tx.d.ts
CHANGED
|
@@ -1767,6 +1767,77 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1767
1767
|
>
|
|
1768
1768
|
>;
|
|
1769
1769
|
|
|
1770
|
+
/**
|
|
1771
|
+
* Authorize another `aliaser` location to alias into the local `origin` making this call.
|
|
1772
|
+
* The `aliaser` is only authorized until the provided `expiry` block number.
|
|
1773
|
+
* The call can also be used for a previously authorized alias in order to update its
|
|
1774
|
+
* `expiry` block number.
|
|
1775
|
+
*
|
|
1776
|
+
* Usually useful to allow your local account to be aliased into from a remote location
|
|
1777
|
+
* also under your control (like your account on another chain).
|
|
1778
|
+
*
|
|
1779
|
+
* WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
|
|
1780
|
+
* their/your name. Once authorized using this call, the `aliaser` can freely impersonate
|
|
1781
|
+
* `origin` in XCM programs executed on the local chain.
|
|
1782
|
+
*
|
|
1783
|
+
* @param {XcmVersionedLocation} aliaser
|
|
1784
|
+
* @param {bigint | undefined} expires
|
|
1785
|
+
**/
|
|
1786
|
+
addAuthorizedAlias: GenericTxCall<
|
|
1787
|
+
Rv,
|
|
1788
|
+
(
|
|
1789
|
+
aliaser: XcmVersionedLocation,
|
|
1790
|
+
expires: bigint | undefined,
|
|
1791
|
+
) => ChainSubmittableExtrinsic<
|
|
1792
|
+
Rv,
|
|
1793
|
+
{
|
|
1794
|
+
pallet: 'PolkadotXcm';
|
|
1795
|
+
palletCall: {
|
|
1796
|
+
name: 'AddAuthorizedAlias';
|
|
1797
|
+
params: { aliaser: XcmVersionedLocation; expires: bigint | undefined };
|
|
1798
|
+
};
|
|
1799
|
+
}
|
|
1800
|
+
>
|
|
1801
|
+
>;
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* Remove a previously authorized `aliaser` from the list of locations that can alias into
|
|
1805
|
+
* the local `origin` making this call.
|
|
1806
|
+
*
|
|
1807
|
+
* @param {XcmVersionedLocation} aliaser
|
|
1808
|
+
**/
|
|
1809
|
+
removeAuthorizedAlias: GenericTxCall<
|
|
1810
|
+
Rv,
|
|
1811
|
+
(aliaser: XcmVersionedLocation) => ChainSubmittableExtrinsic<
|
|
1812
|
+
Rv,
|
|
1813
|
+
{
|
|
1814
|
+
pallet: 'PolkadotXcm';
|
|
1815
|
+
palletCall: {
|
|
1816
|
+
name: 'RemoveAuthorizedAlias';
|
|
1817
|
+
params: { aliaser: XcmVersionedLocation };
|
|
1818
|
+
};
|
|
1819
|
+
}
|
|
1820
|
+
>
|
|
1821
|
+
>;
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* Remove all previously authorized `aliaser`s that can alias into the local `origin`
|
|
1825
|
+
* making this call.
|
|
1826
|
+
*
|
|
1827
|
+
**/
|
|
1828
|
+
removeAllAuthorizedAliases: GenericTxCall<
|
|
1829
|
+
Rv,
|
|
1830
|
+
() => ChainSubmittableExtrinsic<
|
|
1831
|
+
Rv,
|
|
1832
|
+
{
|
|
1833
|
+
pallet: 'PolkadotXcm';
|
|
1834
|
+
palletCall: {
|
|
1835
|
+
name: 'RemoveAllAuthorizedAliases';
|
|
1836
|
+
};
|
|
1837
|
+
}
|
|
1838
|
+
>
|
|
1839
|
+
>;
|
|
1840
|
+
|
|
1770
1841
|
/**
|
|
1771
1842
|
* Generic pallet tx call
|
|
1772
1843
|
**/
|
|
@@ -2050,6 +2121,78 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2050
2121
|
>
|
|
2051
2122
|
>;
|
|
2052
2123
|
|
|
2124
|
+
/**
|
|
2125
|
+
* Dispatch a fallback call in the event the main call fails to execute.
|
|
2126
|
+
* May be called from any origin except `None`.
|
|
2127
|
+
*
|
|
2128
|
+
* This function first attempts to dispatch the `main` call.
|
|
2129
|
+
* If the `main` call fails, the `fallback` is attemted.
|
|
2130
|
+
* if the fallback is successfully dispatched, the weights of both calls
|
|
2131
|
+
* are accumulated and an event containing the main call error is deposited.
|
|
2132
|
+
*
|
|
2133
|
+
* In the event of a fallback failure the whole call fails
|
|
2134
|
+
* with the weights returned.
|
|
2135
|
+
*
|
|
2136
|
+
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
|
2137
|
+
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
|
2138
|
+
*
|
|
2139
|
+
* ## Dispatch Logic
|
|
2140
|
+
* - If the origin is `root`, both the main and fallback calls are executed without
|
|
2141
|
+
* applying any origin filters.
|
|
2142
|
+
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
|
2143
|
+
* `fallback` calls.
|
|
2144
|
+
*
|
|
2145
|
+
* ## Use Case
|
|
2146
|
+
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
|
2147
|
+
* or both.
|
|
2148
|
+
*
|
|
2149
|
+
* @param {PeopleKusamaRuntimeRuntimeCallLike} main
|
|
2150
|
+
* @param {PeopleKusamaRuntimeRuntimeCallLike} fallback
|
|
2151
|
+
**/
|
|
2152
|
+
ifElse: GenericTxCall<
|
|
2153
|
+
Rv,
|
|
2154
|
+
(
|
|
2155
|
+
main: PeopleKusamaRuntimeRuntimeCallLike,
|
|
2156
|
+
fallback: PeopleKusamaRuntimeRuntimeCallLike,
|
|
2157
|
+
) => ChainSubmittableExtrinsic<
|
|
2158
|
+
Rv,
|
|
2159
|
+
{
|
|
2160
|
+
pallet: 'Utility';
|
|
2161
|
+
palletCall: {
|
|
2162
|
+
name: 'IfElse';
|
|
2163
|
+
params: { main: PeopleKusamaRuntimeRuntimeCallLike; fallback: PeopleKusamaRuntimeRuntimeCallLike };
|
|
2164
|
+
};
|
|
2165
|
+
}
|
|
2166
|
+
>
|
|
2167
|
+
>;
|
|
2168
|
+
|
|
2169
|
+
/**
|
|
2170
|
+
* Dispatches a function call with a provided origin.
|
|
2171
|
+
*
|
|
2172
|
+
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
|
2173
|
+
*
|
|
2174
|
+
* The dispatch origin for this call must be _Root_.
|
|
2175
|
+
*
|
|
2176
|
+
* @param {PeopleKusamaRuntimeOriginCaller} asOrigin
|
|
2177
|
+
* @param {PeopleKusamaRuntimeRuntimeCallLike} call
|
|
2178
|
+
**/
|
|
2179
|
+
dispatchAsFallible: GenericTxCall<
|
|
2180
|
+
Rv,
|
|
2181
|
+
(
|
|
2182
|
+
asOrigin: PeopleKusamaRuntimeOriginCaller,
|
|
2183
|
+
call: PeopleKusamaRuntimeRuntimeCallLike,
|
|
2184
|
+
) => ChainSubmittableExtrinsic<
|
|
2185
|
+
Rv,
|
|
2186
|
+
{
|
|
2187
|
+
pallet: 'Utility';
|
|
2188
|
+
palletCall: {
|
|
2189
|
+
name: 'DispatchAsFallible';
|
|
2190
|
+
params: { asOrigin: PeopleKusamaRuntimeOriginCaller; call: PeopleKusamaRuntimeRuntimeCallLike };
|
|
2191
|
+
};
|
|
2192
|
+
}
|
|
2193
|
+
>
|
|
2194
|
+
>;
|
|
2195
|
+
|
|
2053
2196
|
/**
|
|
2054
2197
|
* Generic pallet tx call
|
|
2055
2198
|
**/
|
|
@@ -2282,6 +2425,43 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2282
2425
|
>
|
|
2283
2426
|
>;
|
|
2284
2427
|
|
|
2428
|
+
/**
|
|
2429
|
+
* Poke the deposit reserved for an existing multisig operation.
|
|
2430
|
+
*
|
|
2431
|
+
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
|
2432
|
+
* the multisig operation.
|
|
2433
|
+
*
|
|
2434
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
2435
|
+
*
|
|
2436
|
+
* - `threshold`: The total number of approvals needed for this multisig.
|
|
2437
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
2438
|
+
* multisig.
|
|
2439
|
+
* - `call_hash`: The hash of the call this deposit is reserved for.
|
|
2440
|
+
*
|
|
2441
|
+
* Emits `DepositPoked` if successful.
|
|
2442
|
+
*
|
|
2443
|
+
* @param {number} threshold
|
|
2444
|
+
* @param {Array<AccountId32Like>} otherSignatories
|
|
2445
|
+
* @param {FixedBytes<32>} callHash
|
|
2446
|
+
**/
|
|
2447
|
+
pokeDeposit: GenericTxCall<
|
|
2448
|
+
Rv,
|
|
2449
|
+
(
|
|
2450
|
+
threshold: number,
|
|
2451
|
+
otherSignatories: Array<AccountId32Like>,
|
|
2452
|
+
callHash: FixedBytes<32>,
|
|
2453
|
+
) => ChainSubmittableExtrinsic<
|
|
2454
|
+
Rv,
|
|
2455
|
+
{
|
|
2456
|
+
pallet: 'Multisig';
|
|
2457
|
+
palletCall: {
|
|
2458
|
+
name: 'PokeDeposit';
|
|
2459
|
+
params: { threshold: number; otherSignatories: Array<AccountId32Like>; callHash: FixedBytes<32> };
|
|
2460
|
+
};
|
|
2461
|
+
}
|
|
2462
|
+
>
|
|
2463
|
+
>;
|
|
2464
|
+
|
|
2285
2465
|
/**
|
|
2286
2466
|
* Generic pallet tx call
|
|
2287
2467
|
**/
|
|
@@ -2649,6 +2829,30 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2649
2829
|
>
|
|
2650
2830
|
>;
|
|
2651
2831
|
|
|
2832
|
+
/**
|
|
2833
|
+
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
|
2834
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
2835
|
+
*
|
|
2836
|
+
* The dispatch origin for this call must be _Signed_.
|
|
2837
|
+
*
|
|
2838
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
2839
|
+
*
|
|
2840
|
+
* Emits `DepositPoked` if successful.
|
|
2841
|
+
*
|
|
2842
|
+
**/
|
|
2843
|
+
pokeDeposit: GenericTxCall<
|
|
2844
|
+
Rv,
|
|
2845
|
+
() => ChainSubmittableExtrinsic<
|
|
2846
|
+
Rv,
|
|
2847
|
+
{
|
|
2848
|
+
pallet: 'Proxy';
|
|
2849
|
+
palletCall: {
|
|
2850
|
+
name: 'PokeDeposit';
|
|
2851
|
+
};
|
|
2852
|
+
}
|
|
2853
|
+
>
|
|
2854
|
+
>;
|
|
2855
|
+
|
|
2652
2856
|
/**
|
|
2653
2857
|
* Generic pallet tx call
|
|
2654
2858
|
**/
|