@dedot/chaintypes 0.152.0 → 0.154.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/polkadot/index.d.ts +1 -1
- package/westend/events.d.ts +79 -5
- package/westend/index.d.ts +1 -1
- package/westend/types.d.ts +70 -23
- package/westend-asset-hub/consts.d.ts +14 -0
- package/westend-asset-hub/errors.d.ts +29 -9
- package/westend-asset-hub/events.d.ts +95 -12
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +27 -4
- package/westend-asset-hub/runtime.d.ts +17 -0
- package/westend-asset-hub/tx.d.ts +110 -26
- package/westend-asset-hub/types.d.ts +281 -102
- package/westend-people/consts.d.ts +27 -0
- package/westend-people/errors.d.ts +26 -12
- package/westend-people/events.d.ts +181 -3
- package/westend-people/index.d.ts +3 -1
- package/westend-people/query.d.ts +40 -2
- package/westend-people/runtime.d.ts +131 -31
- package/westend-people/tx.d.ts +156 -12
- package/westend-people/types.d.ts +1153 -783
- package/westend-people/view-functions.d.ts +34 -1
|
@@ -8,6 +8,7 @@ import type {
|
|
|
8
8
|
SpWeightsRuntimeDbWeight,
|
|
9
9
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
10
10
|
FrameSupportPalletId,
|
|
11
|
+
StagingXcmV5Junctions,
|
|
11
12
|
SpWeightsWeightV2Weight,
|
|
12
13
|
} from './types.js';
|
|
13
14
|
|
|
@@ -233,6 +234,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
233
234
|
* Pallet `Session`'s constants
|
|
234
235
|
**/
|
|
235
236
|
session: {
|
|
237
|
+
/**
|
|
238
|
+
* The amount to be held when setting keys.
|
|
239
|
+
**/
|
|
240
|
+
keyDeposit: bigint;
|
|
241
|
+
|
|
236
242
|
/**
|
|
237
243
|
* Generic pallet constant
|
|
238
244
|
**/
|
|
@@ -307,6 +313,27 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
307
313
|
* Pallet `PolkadotXcm`'s constants
|
|
308
314
|
**/
|
|
309
315
|
polkadotXcm: {
|
|
316
|
+
/**
|
|
317
|
+
* This chain's Universal Location.
|
|
318
|
+
**/
|
|
319
|
+
universalLocation: StagingXcmV5Junctions;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* The latest supported version that we advertise. Generally just set it to
|
|
323
|
+
* `pallet_xcm::CurrentXcmVersion`.
|
|
324
|
+
**/
|
|
325
|
+
advertisedXcmVersion: number;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* The maximum number of local XCM locks that a single account may have.
|
|
329
|
+
**/
|
|
330
|
+
maxLockers: number;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* The maximum number of consumers a single remote lock may have.
|
|
334
|
+
**/
|
|
335
|
+
maxRemoteLockConsumers: number;
|
|
336
|
+
|
|
310
337
|
/**
|
|
311
338
|
* Generic pallet constant
|
|
312
339
|
**/
|
|
@@ -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
|
**/
|
|
@@ -469,6 +459,29 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
469
459
|
**/
|
|
470
460
|
LocalExecutionIncomplete: GenericPalletError<Rv>;
|
|
471
461
|
|
|
462
|
+
/**
|
|
463
|
+
* Too many locations authorized to alias origin.
|
|
464
|
+
*
|
|
465
|
+
* @deprecated Use `LocalExecutionIncompleteWithError` instead (since 20.0.0)
|
|
466
|
+
**/
|
|
467
|
+
TooManyAuthorizedAliases: GenericPalletError<Rv>;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Expiry block number is in the past.
|
|
471
|
+
**/
|
|
472
|
+
ExpiresInPast: GenericPalletError<Rv>;
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* The alias to remove authorization for was not found.
|
|
476
|
+
**/
|
|
477
|
+
AliasNotFound: GenericPalletError<Rv>;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Local XCM execution incomplete with the actual XCM error and the index of the
|
|
481
|
+
* instruction that caused the error.
|
|
482
|
+
**/
|
|
483
|
+
LocalExecutionIncompleteWithError: GenericPalletError<Rv>;
|
|
484
|
+
|
|
472
485
|
/**
|
|
473
486
|
* Generic pallet error
|
|
474
487
|
**/
|
|
@@ -588,12 +601,13 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
588
601
|
SenderInSignatories: GenericPalletError<Rv>;
|
|
589
602
|
|
|
590
603
|
/**
|
|
591
|
-
* Multisig operation not found
|
|
604
|
+
* Multisig operation not found in storage.
|
|
592
605
|
**/
|
|
593
606
|
NotFound: GenericPalletError<Rv>;
|
|
594
607
|
|
|
595
608
|
/**
|
|
596
|
-
* Only the account that originally created the multisig is able to cancel it
|
|
609
|
+
* Only the account that originally created the multisig is able to cancel it or update
|
|
610
|
+
* its deposits.
|
|
597
611
|
**/
|
|
598
612
|
NotOwner: GenericPalletError<Rv>;
|
|
599
613
|
|
|
@@ -6,18 +6,22 @@ import type {
|
|
|
6
6
|
FrameSystemDispatchEventInfo,
|
|
7
7
|
SpWeightsWeightV2Weight,
|
|
8
8
|
FrameSupportTokensMiscBalanceStatus,
|
|
9
|
+
PeopleWestendRuntimeRuntimeHoldReason,
|
|
10
|
+
PalletBalancesUnexpectedKind,
|
|
9
11
|
StagingXcmV5TraitsOutcome,
|
|
10
12
|
StagingXcmV5Location,
|
|
11
13
|
StagingXcmV5Xcm,
|
|
14
|
+
XcmV3TraitsSendError,
|
|
15
|
+
XcmV5TraitsError,
|
|
12
16
|
StagingXcmV5Response,
|
|
13
17
|
XcmVersionedAssets,
|
|
14
18
|
StagingXcmV5AssetAssets,
|
|
15
|
-
XcmV5TraitsError,
|
|
16
19
|
XcmVersionedLocation,
|
|
17
20
|
CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
18
21
|
FrameSupportMessagesProcessMessageError,
|
|
19
22
|
PalletMultisigTimepoint,
|
|
20
23
|
PeopleWestendRuntimeProxyType,
|
|
24
|
+
PalletProxyDepositKind,
|
|
21
25
|
} from './types.js';
|
|
22
26
|
|
|
23
27
|
export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<Rv> {
|
|
@@ -70,6 +74,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
70
74
|
**/
|
|
71
75
|
UpgradeAuthorized: GenericPalletEvent<Rv, 'System', 'UpgradeAuthorized', { codeHash: H256; checkVersion: boolean }>;
|
|
72
76
|
|
|
77
|
+
/**
|
|
78
|
+
* An invalid authorized upgrade was rejected while trying to apply it.
|
|
79
|
+
**/
|
|
80
|
+
RejectedInvalidAuthorizedUpgrade: GenericPalletEvent<
|
|
81
|
+
Rv,
|
|
82
|
+
'System',
|
|
83
|
+
'RejectedInvalidAuthorizedUpgrade',
|
|
84
|
+
{ codeHash: H256; error: DispatchError }
|
|
85
|
+
>;
|
|
86
|
+
|
|
73
87
|
/**
|
|
74
88
|
* Generic pallet event
|
|
75
89
|
**/
|
|
@@ -195,11 +209,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
195
209
|
**/
|
|
196
210
|
Minted: GenericPalletEvent<Rv, 'Balances', 'Minted', { who: AccountId32; amount: bigint }>;
|
|
197
211
|
|
|
212
|
+
/**
|
|
213
|
+
* Some credit was balanced and added to the TotalIssuance.
|
|
214
|
+
**/
|
|
215
|
+
MintedCredit: GenericPalletEvent<Rv, 'Balances', 'MintedCredit', { amount: bigint }>;
|
|
216
|
+
|
|
198
217
|
/**
|
|
199
218
|
* Some amount was burned from an account.
|
|
200
219
|
**/
|
|
201
220
|
Burned: GenericPalletEvent<Rv, 'Balances', 'Burned', { who: AccountId32; amount: bigint }>;
|
|
202
221
|
|
|
222
|
+
/**
|
|
223
|
+
* Some debt has been dropped from the Total Issuance.
|
|
224
|
+
**/
|
|
225
|
+
BurnedDebt: GenericPalletEvent<Rv, 'Balances', 'BurnedDebt', { amount: bigint }>;
|
|
226
|
+
|
|
203
227
|
/**
|
|
204
228
|
* Some amount was suspended from an account (it can be restored later).
|
|
205
229
|
**/
|
|
@@ -250,6 +274,61 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
250
274
|
**/
|
|
251
275
|
TotalIssuanceForced: GenericPalletEvent<Rv, 'Balances', 'TotalIssuanceForced', { old: bigint; new: bigint }>;
|
|
252
276
|
|
|
277
|
+
/**
|
|
278
|
+
* Some balance was placed on hold.
|
|
279
|
+
**/
|
|
280
|
+
Held: GenericPalletEvent<
|
|
281
|
+
Rv,
|
|
282
|
+
'Balances',
|
|
283
|
+
'Held',
|
|
284
|
+
{ reason: PeopleWestendRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
|
|
285
|
+
>;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Held balance was burned from an account.
|
|
289
|
+
**/
|
|
290
|
+
BurnedHeld: GenericPalletEvent<
|
|
291
|
+
Rv,
|
|
292
|
+
'Balances',
|
|
293
|
+
'BurnedHeld',
|
|
294
|
+
{ reason: PeopleWestendRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
|
|
295
|
+
>;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* A transfer of `amount` on hold from `source` to `dest` was initiated.
|
|
299
|
+
**/
|
|
300
|
+
TransferOnHold: GenericPalletEvent<
|
|
301
|
+
Rv,
|
|
302
|
+
'Balances',
|
|
303
|
+
'TransferOnHold',
|
|
304
|
+
{ reason: PeopleWestendRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; amount: bigint }
|
|
305
|
+
>;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* The `transferred` balance is placed on hold at the `dest` account.
|
|
309
|
+
**/
|
|
310
|
+
TransferAndHold: GenericPalletEvent<
|
|
311
|
+
Rv,
|
|
312
|
+
'Balances',
|
|
313
|
+
'TransferAndHold',
|
|
314
|
+
{ reason: PeopleWestendRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; transferred: bigint }
|
|
315
|
+
>;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Some balance was released from hold.
|
|
319
|
+
**/
|
|
320
|
+
Released: GenericPalletEvent<
|
|
321
|
+
Rv,
|
|
322
|
+
'Balances',
|
|
323
|
+
'Released',
|
|
324
|
+
{ reason: PeopleWestendRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
|
|
325
|
+
>;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* An unexpected/defensive event was triggered.
|
|
329
|
+
**/
|
|
330
|
+
Unexpected: GenericPalletEvent<Rv, 'Balances', 'Unexpected', PalletBalancesUnexpectedKind>;
|
|
331
|
+
|
|
253
332
|
/**
|
|
254
333
|
* Generic pallet event
|
|
255
334
|
**/
|
|
@@ -375,6 +454,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
375
454
|
**/
|
|
376
455
|
NewSession: GenericPalletEvent<Rv, 'Session', 'NewSession', { sessionIndex: number }>;
|
|
377
456
|
|
|
457
|
+
/**
|
|
458
|
+
* The `NewSession` event in the current block also implies a new validator set to be
|
|
459
|
+
* queued.
|
|
460
|
+
**/
|
|
461
|
+
NewQueued: GenericPalletEvent<Rv, 'Session', 'NewQueued', null>;
|
|
462
|
+
|
|
378
463
|
/**
|
|
379
464
|
* Validator has been disabled.
|
|
380
465
|
**/
|
|
@@ -414,7 +499,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
414
499
|
Attempted: GenericPalletEvent<Rv, 'PolkadotXcm', 'Attempted', { outcome: StagingXcmV5TraitsOutcome }>;
|
|
415
500
|
|
|
416
501
|
/**
|
|
417
|
-
*
|
|
502
|
+
* An XCM message was sent.
|
|
418
503
|
**/
|
|
419
504
|
Sent: GenericPalletEvent<
|
|
420
505
|
Rv,
|
|
@@ -428,6 +513,31 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
428
513
|
}
|
|
429
514
|
>;
|
|
430
515
|
|
|
516
|
+
/**
|
|
517
|
+
* An XCM message failed to send.
|
|
518
|
+
**/
|
|
519
|
+
SendFailed: GenericPalletEvent<
|
|
520
|
+
Rv,
|
|
521
|
+
'PolkadotXcm',
|
|
522
|
+
'SendFailed',
|
|
523
|
+
{
|
|
524
|
+
origin: StagingXcmV5Location;
|
|
525
|
+
destination: StagingXcmV5Location;
|
|
526
|
+
error: XcmV3TraitsSendError;
|
|
527
|
+
messageId: FixedBytes<32>;
|
|
528
|
+
}
|
|
529
|
+
>;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* An XCM message failed to process.
|
|
533
|
+
**/
|
|
534
|
+
ProcessXcmError: GenericPalletEvent<
|
|
535
|
+
Rv,
|
|
536
|
+
'PolkadotXcm',
|
|
537
|
+
'ProcessXcmError',
|
|
538
|
+
{ origin: StagingXcmV5Location; error: XcmV5TraitsError; messageId: FixedBytes<32> }
|
|
539
|
+
>;
|
|
540
|
+
|
|
431
541
|
/**
|
|
432
542
|
* Query response received which does not match a registered query. This may be because a
|
|
433
543
|
* matching query was never registered, it may be because it is a duplicate response, or
|
|
@@ -681,6 +791,37 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
681
791
|
**/
|
|
682
792
|
VersionMigrationFinished: GenericPalletEvent<Rv, 'PolkadotXcm', 'VersionMigrationFinished', { version: number }>;
|
|
683
793
|
|
|
794
|
+
/**
|
|
795
|
+
* An `aliaser` location was authorized by `target` to alias it, authorization valid until
|
|
796
|
+
* `expiry` block number.
|
|
797
|
+
**/
|
|
798
|
+
AliasAuthorized: GenericPalletEvent<
|
|
799
|
+
Rv,
|
|
800
|
+
'PolkadotXcm',
|
|
801
|
+
'AliasAuthorized',
|
|
802
|
+
{ aliaser: StagingXcmV5Location; target: StagingXcmV5Location; expiry?: bigint | undefined }
|
|
803
|
+
>;
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* `target` removed alias authorization for `aliaser`.
|
|
807
|
+
**/
|
|
808
|
+
AliasAuthorizationRemoved: GenericPalletEvent<
|
|
809
|
+
Rv,
|
|
810
|
+
'PolkadotXcm',
|
|
811
|
+
'AliasAuthorizationRemoved',
|
|
812
|
+
{ aliaser: StagingXcmV5Location; target: StagingXcmV5Location }
|
|
813
|
+
>;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* `target` removed all alias authorizations.
|
|
817
|
+
**/
|
|
818
|
+
AliasesAuthorizationsRemoved: GenericPalletEvent<
|
|
819
|
+
Rv,
|
|
820
|
+
'PolkadotXcm',
|
|
821
|
+
'AliasesAuthorizationsRemoved',
|
|
822
|
+
{ target: StagingXcmV5Location }
|
|
823
|
+
>;
|
|
824
|
+
|
|
684
825
|
/**
|
|
685
826
|
* Generic pallet event
|
|
686
827
|
**/
|
|
@@ -940,6 +1081,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
940
1081
|
{ cancelling: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> }
|
|
941
1082
|
>;
|
|
942
1083
|
|
|
1084
|
+
/**
|
|
1085
|
+
* The deposit for a multisig operation has been updated/poked.
|
|
1086
|
+
**/
|
|
1087
|
+
DepositPoked: GenericPalletEvent<
|
|
1088
|
+
Rv,
|
|
1089
|
+
'Multisig',
|
|
1090
|
+
'DepositPoked',
|
|
1091
|
+
{ who: AccountId32; callHash: FixedBytes<32>; oldDeposit: bigint; newDeposit: bigint }
|
|
1092
|
+
>;
|
|
1093
|
+
|
|
943
1094
|
/**
|
|
944
1095
|
* Generic pallet event
|
|
945
1096
|
**/
|
|
@@ -962,7 +1113,24 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
962
1113
|
Rv,
|
|
963
1114
|
'Proxy',
|
|
964
1115
|
'PureCreated',
|
|
965
|
-
{
|
|
1116
|
+
{
|
|
1117
|
+
pure: AccountId32;
|
|
1118
|
+
who: AccountId32;
|
|
1119
|
+
proxyType: PeopleWestendRuntimeProxyType;
|
|
1120
|
+
disambiguationIndex: number;
|
|
1121
|
+
at: number;
|
|
1122
|
+
extrinsicIndex: number;
|
|
1123
|
+
}
|
|
1124
|
+
>;
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* A pure proxy was killed by its spawner.
|
|
1128
|
+
**/
|
|
1129
|
+
PureKilled: GenericPalletEvent<
|
|
1130
|
+
Rv,
|
|
1131
|
+
'Proxy',
|
|
1132
|
+
'PureKilled',
|
|
1133
|
+
{ pure: AccountId32; spawner: AccountId32; proxyType: PeopleWestendRuntimeProxyType; disambiguationIndex: number }
|
|
966
1134
|
>;
|
|
967
1135
|
|
|
968
1136
|
/**
|
|
@@ -990,6 +1158,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
990
1158
|
{ delegator: AccountId32; delegatee: AccountId32; proxyType: PeopleWestendRuntimeProxyType; delay: number }
|
|
991
1159
|
>;
|
|
992
1160
|
|
|
1161
|
+
/**
|
|
1162
|
+
* A deposit stored for proxies or announcements was poked / updated.
|
|
1163
|
+
**/
|
|
1164
|
+
DepositPoked: GenericPalletEvent<
|
|
1165
|
+
Rv,
|
|
1166
|
+
'Proxy',
|
|
1167
|
+
'DepositPoked',
|
|
1168
|
+
{ who: AccountId32; kind: PalletProxyDepositKind; oldDeposit: bigint; newDeposit: bigint }
|
|
1169
|
+
>;
|
|
1170
|
+
|
|
993
1171
|
/**
|
|
994
1172
|
* Generic pallet event
|
|
995
1173
|
**/
|
|
@@ -5,6 +5,7 @@ import type { MultiAddress } from 'dedot/codecs';
|
|
|
5
5
|
import type {
|
|
6
6
|
PeopleWestendRuntimeRuntimeCall,
|
|
7
7
|
SpRuntimeMultiSignature,
|
|
8
|
+
FrameSystemExtensionsAuthorizeCall,
|
|
8
9
|
FrameSystemExtensionsCheckNonZeroSender,
|
|
9
10
|
FrameSystemExtensionsCheckSpecVersion,
|
|
10
11
|
FrameSystemExtensionsCheckTxVersion,
|
|
@@ -30,6 +31,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
|
30
31
|
Signature: SpRuntimeMultiSignature;
|
|
31
32
|
RuntimeCall: PeopleWestendRuntimeRuntimeCall;
|
|
32
33
|
Extra: [
|
|
34
|
+
FrameSystemExtensionsAuthorizeCall,
|
|
33
35
|
FrameSystemExtensionsCheckNonZeroSender,
|
|
34
36
|
FrameSystemExtensionsCheckSpecVersion,
|
|
35
37
|
FrameSystemExtensionsCheckTxVersion,
|
|
@@ -57,7 +59,7 @@ export interface VersionedWestendPeopleApi<Rv extends RpcVersion> extends Generi
|
|
|
57
59
|
|
|
58
60
|
/**
|
|
59
61
|
* @name: WestendPeopleApi
|
|
60
|
-
* @specVersion:
|
|
62
|
+
* @specVersion: 1020000
|
|
61
63
|
**/
|
|
62
64
|
export interface WestendPeopleApi {
|
|
63
65
|
legacy: VersionedWestendPeopleApi<RpcLegacy>;
|
|
@@ -30,6 +30,7 @@ import type {
|
|
|
30
30
|
PolkadotPrimitivesV8AbridgedHostConfiguration,
|
|
31
31
|
CumulusPrimitivesParachainInherentMessageQueueChain,
|
|
32
32
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
33
|
+
CumulusPalletParachainSystemParachainInherentInboundMessageId,
|
|
33
34
|
PolkadotCorePrimitivesOutboundHrmpMessage,
|
|
34
35
|
PalletBalancesAccountData,
|
|
35
36
|
PalletBalancesBalanceLock,
|
|
@@ -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,
|
|
@@ -407,14 +409,36 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
407
409
|
processedDownwardMessages: GenericStorageQuery<Rv, () => number>;
|
|
408
410
|
|
|
409
411
|
/**
|
|
410
|
-
*
|
|
412
|
+
* The last processed downward message.
|
|
411
413
|
*
|
|
412
|
-
*
|
|
414
|
+
* We need to keep track of this to filter the messages that have been already processed.
|
|
415
|
+
*
|
|
416
|
+
* @param {Callback<CumulusPalletParachainSystemParachainInherentInboundMessageId | undefined> =} callback
|
|
417
|
+
**/
|
|
418
|
+
lastProcessedDownwardMessage: GenericStorageQuery<
|
|
419
|
+
Rv,
|
|
420
|
+
() => CumulusPalletParachainSystemParachainInherentInboundMessageId | undefined
|
|
421
|
+
>;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* HRMP watermark that was set in a block.
|
|
413
425
|
*
|
|
414
426
|
* @param {Callback<number> =} callback
|
|
415
427
|
**/
|
|
416
428
|
hrmpWatermark: GenericStorageQuery<Rv, () => number>;
|
|
417
429
|
|
|
430
|
+
/**
|
|
431
|
+
* The last processed HRMP message.
|
|
432
|
+
*
|
|
433
|
+
* We need to keep track of this to filter the messages that have been already processed.
|
|
434
|
+
*
|
|
435
|
+
* @param {Callback<CumulusPalletParachainSystemParachainInherentInboundMessageId | undefined> =} callback
|
|
436
|
+
**/
|
|
437
|
+
lastProcessedHrmpMessage: GenericStorageQuery<
|
|
438
|
+
Rv,
|
|
439
|
+
() => CumulusPalletParachainSystemParachainInherentInboundMessageId | undefined
|
|
440
|
+
>;
|
|
441
|
+
|
|
418
442
|
/**
|
|
419
443
|
* HRMP messages that were sent in a block.
|
|
420
444
|
*
|
|
@@ -1068,6 +1092,20 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1068
1092
|
**/
|
|
1069
1093
|
recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV5Xcm | undefined>;
|
|
1070
1094
|
|
|
1095
|
+
/**
|
|
1096
|
+
* Map of authorized aliasers of local origins. Each local location can authorize a list of
|
|
1097
|
+
* other locations to alias into it. Each aliaser is only valid until its inner `expiry`
|
|
1098
|
+
* block number.
|
|
1099
|
+
*
|
|
1100
|
+
* @param {XcmVersionedLocation} arg
|
|
1101
|
+
* @param {Callback<PalletXcmAuthorizedAliasesEntry | undefined> =} callback
|
|
1102
|
+
**/
|
|
1103
|
+
authorizedAliases: GenericStorageQuery<
|
|
1104
|
+
Rv,
|
|
1105
|
+
(arg: XcmVersionedLocation) => PalletXcmAuthorizedAliasesEntry | undefined,
|
|
1106
|
+
XcmVersionedLocation
|
|
1107
|
+
>;
|
|
1108
|
+
|
|
1071
1109
|
/**
|
|
1072
1110
|
* Generic pallet storage query
|
|
1073
1111
|
**/
|
|
@@ -41,11 +41,18 @@ import type {
|
|
|
41
41
|
PeopleWestendRuntimeOriginCaller,
|
|
42
42
|
XcmRuntimeApisDryRunXcmDryRunEffects,
|
|
43
43
|
XcmRuntimeApisConversionsError,
|
|
44
|
+
XcmRuntimeApisTrustedQueryError,
|
|
45
|
+
XcmVersionedAsset,
|
|
46
|
+
XcmRuntimeApisAuthorizedAliasesOriginAliaser,
|
|
47
|
+
XcmRuntimeApisAuthorizedAliasesError,
|
|
44
48
|
CumulusPrimitivesCoreCollationInfo,
|
|
45
49
|
PolkadotPrimitivesVstagingCoreSelector,
|
|
46
50
|
PolkadotPrimitivesVstagingClaimQueueOffset,
|
|
47
|
-
|
|
48
|
-
|
|
51
|
+
PolkadotParachainPrimitivesPrimitivesId,
|
|
52
|
+
SpStatementStoreRuntimeApiValidStatement,
|
|
53
|
+
SpStatementStoreRuntimeApiInvalidStatement,
|
|
54
|
+
SpStatementStoreRuntimeApiStatementSource,
|
|
55
|
+
SpStatementStoreStatement,
|
|
49
56
|
} from './types.js';
|
|
50
57
|
|
|
51
58
|
export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
|
|
@@ -74,6 +81,22 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
74
81
|
**/
|
|
75
82
|
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
76
83
|
};
|
|
84
|
+
/**
|
|
85
|
+
* @runtimeapi: RelayParentOffsetApi - 0x04e70521a0d3d2f8
|
|
86
|
+
**/
|
|
87
|
+
relayParentOffsetApi: {
|
|
88
|
+
/**
|
|
89
|
+
* Fetch the slot offset that is expected from the relay chain.
|
|
90
|
+
*
|
|
91
|
+
* @callname: RelayParentOffsetApi_relay_parent_offset
|
|
92
|
+
**/
|
|
93
|
+
relayParentOffset: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Generic runtime api call
|
|
97
|
+
**/
|
|
98
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
99
|
+
};
|
|
77
100
|
/**
|
|
78
101
|
* @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
|
|
79
102
|
**/
|
|
@@ -563,6 +586,90 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
563
586
|
**/
|
|
564
587
|
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
565
588
|
};
|
|
589
|
+
/**
|
|
590
|
+
* @runtimeapi: TrustedQueryApi - 0x2609be83ac4468dc
|
|
591
|
+
**/
|
|
592
|
+
trustedQueryApi: {
|
|
593
|
+
/**
|
|
594
|
+
* Returns if the location is a trusted reserve for the asset.
|
|
595
|
+
*
|
|
596
|
+
* # Arguments
|
|
597
|
+
* * `asset`: `VersionedAsset`.
|
|
598
|
+
* * `location`: `VersionedLocation`.
|
|
599
|
+
*
|
|
600
|
+
* @callname: TrustedQueryApi_is_trusted_reserve
|
|
601
|
+
* @param {XcmVersionedAsset} asset
|
|
602
|
+
* @param {XcmVersionedLocation} location
|
|
603
|
+
**/
|
|
604
|
+
isTrustedReserve: GenericRuntimeApiMethod<
|
|
605
|
+
Rv,
|
|
606
|
+
(
|
|
607
|
+
asset: XcmVersionedAsset,
|
|
608
|
+
location: XcmVersionedLocation,
|
|
609
|
+
) => Promise<Result<boolean, XcmRuntimeApisTrustedQueryError>>
|
|
610
|
+
>;
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* Returns if the asset can be teleported to the location.
|
|
614
|
+
*
|
|
615
|
+
* # Arguments
|
|
616
|
+
* * `asset`: `VersionedAsset`.
|
|
617
|
+
* * `location`: `VersionedLocation`.
|
|
618
|
+
*
|
|
619
|
+
* @callname: TrustedQueryApi_is_trusted_teleporter
|
|
620
|
+
* @param {XcmVersionedAsset} asset
|
|
621
|
+
* @param {XcmVersionedLocation} location
|
|
622
|
+
**/
|
|
623
|
+
isTrustedTeleporter: GenericRuntimeApiMethod<
|
|
624
|
+
Rv,
|
|
625
|
+
(
|
|
626
|
+
asset: XcmVersionedAsset,
|
|
627
|
+
location: XcmVersionedLocation,
|
|
628
|
+
) => Promise<Result<boolean, XcmRuntimeApisTrustedQueryError>>
|
|
629
|
+
>;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Generic runtime api call
|
|
633
|
+
**/
|
|
634
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
635
|
+
};
|
|
636
|
+
/**
|
|
637
|
+
* @runtimeapi: AuthorizedAliasersApi - 0x12c8e3d4d7e06de0
|
|
638
|
+
**/
|
|
639
|
+
authorizedAliasersApi: {
|
|
640
|
+
/**
|
|
641
|
+
* Returns locations allowed to alias into and act as `target`.
|
|
642
|
+
*
|
|
643
|
+
* @callname: AuthorizedAliasersApi_authorized_aliasers
|
|
644
|
+
* @param {XcmVersionedLocation} target
|
|
645
|
+
**/
|
|
646
|
+
authorizedAliasers: GenericRuntimeApiMethod<
|
|
647
|
+
Rv,
|
|
648
|
+
(
|
|
649
|
+
target: XcmVersionedLocation,
|
|
650
|
+
) => Promise<Result<Array<XcmRuntimeApisAuthorizedAliasesOriginAliaser>, XcmRuntimeApisAuthorizedAliasesError>>
|
|
651
|
+
>;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Returns whether `origin` is allowed to alias into and act as `target`.
|
|
655
|
+
*
|
|
656
|
+
* @callname: AuthorizedAliasersApi_is_authorized_alias
|
|
657
|
+
* @param {XcmVersionedLocation} origin
|
|
658
|
+
* @param {XcmVersionedLocation} target
|
|
659
|
+
**/
|
|
660
|
+
isAuthorizedAlias: GenericRuntimeApiMethod<
|
|
661
|
+
Rv,
|
|
662
|
+
(
|
|
663
|
+
origin: XcmVersionedLocation,
|
|
664
|
+
target: XcmVersionedLocation,
|
|
665
|
+
) => Promise<Result<boolean, XcmRuntimeApisAuthorizedAliasesError>>
|
|
666
|
+
>;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Generic runtime api call
|
|
670
|
+
**/
|
|
671
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
672
|
+
};
|
|
566
673
|
/**
|
|
567
674
|
* @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
|
|
568
675
|
**/
|
|
@@ -660,45 +767,38 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
660
767
|
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
661
768
|
};
|
|
662
769
|
/**
|
|
663
|
-
* @runtimeapi:
|
|
770
|
+
* @runtimeapi: GetParachainInfo - 0xa2ddb6a58477bf63
|
|
664
771
|
**/
|
|
665
|
-
|
|
772
|
+
getParachainInfo: {
|
|
666
773
|
/**
|
|
667
|
-
*
|
|
668
|
-
*
|
|
669
|
-
* # Arguments
|
|
670
|
-
* * `asset`: `VersionedAsset`.
|
|
671
|
-
* * `location`: `VersionedLocation`.
|
|
774
|
+
* Retrieve the parachain id used for runtime.
|
|
672
775
|
*
|
|
673
|
-
* @callname:
|
|
674
|
-
* @param {XcmVersionedAsset} asset
|
|
675
|
-
* @param {XcmVersionedLocation} location
|
|
776
|
+
* @callname: GetParachainInfo_parachain_id
|
|
676
777
|
**/
|
|
677
|
-
|
|
678
|
-
Rv,
|
|
679
|
-
(
|
|
680
|
-
asset: XcmVersionedAsset,
|
|
681
|
-
location: XcmVersionedLocation,
|
|
682
|
-
) => Promise<Result<boolean, XcmRuntimeApisTrustedQueryError>>
|
|
683
|
-
>;
|
|
778
|
+
parachainId: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotParachainPrimitivesPrimitivesId>>;
|
|
684
779
|
|
|
685
780
|
/**
|
|
686
|
-
*
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
781
|
+
* Generic runtime api call
|
|
782
|
+
**/
|
|
783
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
784
|
+
};
|
|
785
|
+
/**
|
|
786
|
+
* @runtimeapi: ValidateStatement - 0xbe9fb0c91a8046cf
|
|
787
|
+
**/
|
|
788
|
+
validateStatement: {
|
|
789
|
+
/**
|
|
790
|
+
* Validate the statement.
|
|
691
791
|
*
|
|
692
|
-
* @callname:
|
|
693
|
-
* @param {
|
|
694
|
-
* @param {
|
|
792
|
+
* @callname: ValidateStatement_validate_statement
|
|
793
|
+
* @param {SpStatementStoreRuntimeApiStatementSource} source
|
|
794
|
+
* @param {SpStatementStoreStatement} statement
|
|
695
795
|
**/
|
|
696
|
-
|
|
796
|
+
validateStatement: GenericRuntimeApiMethod<
|
|
697
797
|
Rv,
|
|
698
798
|
(
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
) => Promise<Result<
|
|
799
|
+
source: SpStatementStoreRuntimeApiStatementSource,
|
|
800
|
+
statement: SpStatementStoreStatement,
|
|
801
|
+
) => Promise<Result<SpStatementStoreRuntimeApiValidStatement, SpStatementStoreRuntimeApiInvalidStatement>>
|
|
702
802
|
>;
|
|
703
803
|
|
|
704
804
|
/**
|