@dedot/chaintypes 0.157.0 → 0.158.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.
@@ -1,5 +1,87 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
4
+ import type { AccountId32Like } from 'dedot/codecs';
5
+ import type {
6
+ PolkadotRuntimeRuntimeCallLike,
7
+ PolkadotRuntimeConstantsProxyProxyType,
8
+ PolkadotParachainPrimitivesPrimitivesId,
9
+ } from './types.js';
4
10
 
5
- export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {}
11
+ export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {
12
+ /**
13
+ * Pallet `Proxy`'s view functions
14
+ **/
15
+ proxy: {
16
+ /**
17
+ * Check if a `RuntimeCall` is allowed for a given `ProxyType`.
18
+ *
19
+ * @param {PolkadotRuntimeRuntimeCallLike} call
20
+ * @param {PolkadotRuntimeConstantsProxyProxyType} proxyType
21
+ **/
22
+ checkPermissions: GenericViewFunction<
23
+ Rv,
24
+ (call: PolkadotRuntimeRuntimeCallLike, proxyType: PolkadotRuntimeConstantsProxyProxyType) => Promise<boolean>
25
+ >;
26
+
27
+ /**
28
+ * Check if one `ProxyType` is a subset of another `ProxyType`.
29
+ *
30
+ * @param {PolkadotRuntimeConstantsProxyProxyType} toCheck
31
+ * @param {PolkadotRuntimeConstantsProxyProxyType} against
32
+ **/
33
+ isSuperset: GenericViewFunction<
34
+ Rv,
35
+ (
36
+ toCheck: PolkadotRuntimeConstantsProxyProxyType,
37
+ against: PolkadotRuntimeConstantsProxyProxyType,
38
+ ) => Promise<boolean>
39
+ >;
40
+
41
+ /**
42
+ * Generic pallet view function
43
+ **/
44
+ [name: string]: GenericViewFunction<Rv>;
45
+ };
46
+ /**
47
+ * Pallet `VoterList`'s view functions
48
+ **/
49
+ voterList: {
50
+ /**
51
+ * Get the current `score` of a given account.
52
+ *
53
+ * Returns `(current, real_score)`, the former being the current score that this pallet is
54
+ * aware of, which may or may not be up to date, and the latter being the real score, as
55
+ * provided by
56
+ *
57
+ * If the two differ, it means this node is eligible for [`Call::rebag`].
58
+ *
59
+ * @param {AccountId32Like} who
60
+ **/
61
+ scores: GenericViewFunction<Rv, (who: AccountId32Like) => Promise<[bigint | undefined, bigint | undefined]>>;
62
+
63
+ /**
64
+ * Generic pallet view function
65
+ **/
66
+ [name: string]: GenericViewFunction<Rv>;
67
+ };
68
+ /**
69
+ * Pallet `Paras`'s view functions
70
+ **/
71
+ paras: {
72
+ /**
73
+ * Returns the cost for removing an upgrade cooldown for the given `para`.
74
+ *
75
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para
76
+ **/
77
+ removeUpgradeCooldownCost: GenericViewFunction<
78
+ Rv,
79
+ (para: PolkadotParachainPrimitivesPrimitivesId) => Promise<bigint>
80
+ >;
81
+
82
+ /**
83
+ * Generic pallet view function
84
+ **/
85
+ [name: string]: GenericViewFunction<Rv>;
86
+ };
87
+ }
@@ -8,9 +8,10 @@ import type {
8
8
  SpWeightsRuntimeDbWeight,
9
9
  PolkadotParachainPrimitivesPrimitivesId,
10
10
  FrameSupportPalletId,
11
+ StagingXcmV5Junctions,
11
12
  SpWeightsWeightV2Weight,
12
13
  PalletNftsBitFlagsPalletFeature,
13
- StagingXcmV4Location,
14
+ StagingXcmV5Location,
14
15
  } from './types.js';
15
16
 
16
17
  export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
@@ -250,6 +251,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
250
251
  * Pallet `Session`'s constants
251
252
  **/
252
253
  session: {
254
+ /**
255
+ * The amount to be held when setting keys.
256
+ **/
257
+ keyDeposit: bigint;
258
+
253
259
  /**
254
260
  * Generic pallet constant
255
261
  **/
@@ -324,12 +330,27 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
324
330
  * Pallet `PolkadotXcm`'s constants
325
331
  **/
326
332
  polkadotXcm: {
333
+ /**
334
+ * This chain's Universal Location.
335
+ **/
336
+ universalLocation: StagingXcmV5Junctions;
337
+
327
338
  /**
328
339
  * The latest supported version that we advertise. Generally just set it to
329
340
  * `pallet_xcm::CurrentXcmVersion`.
330
341
  **/
331
342
  advertisedXcmVersion: number;
332
343
 
344
+ /**
345
+ * The maximum number of local XCM locks that a single account may have.
346
+ **/
347
+ maxLockers: number;
348
+
349
+ /**
350
+ * The maximum number of consumers a single remote lock may have.
351
+ **/
352
+ maxRemoteLockConsumers: number;
353
+
333
354
  /**
334
355
  * Generic pallet constant
335
356
  **/
@@ -397,6 +418,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
397
418
  **/
398
419
  [name: string]: any;
399
420
  };
421
+ /**
422
+ * Pallet `SnowbridgeSystemFrontend`'s constants
423
+ **/
424
+ snowbridgeSystemFrontend: {
425
+ /**
426
+ * Generic pallet constant
427
+ **/
428
+ [name: string]: any;
429
+ };
400
430
  /**
401
431
  * Pallet `Utility`'s constants
402
432
  **/
@@ -785,7 +815,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
785
815
  /**
786
816
  * Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`].
787
817
  **/
788
- poolSetupFeeAsset: StagingXcmV4Location;
818
+ poolSetupFeeAsset: StagingXcmV5Location;
789
819
 
790
820
  /**
791
821
  * A fee to withdraw the liquidity.
@@ -496,6 +496,8 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
496
496
 
497
497
  /**
498
498
  * Too many locations authorized to alias origin.
499
+ *
500
+ * @deprecated Use `LocalExecutionIncompleteWithError` instead (since 20.0.0)
499
501
  **/
500
502
  TooManyAuthorizedAliases: GenericPalletError<Rv>;
501
503
 
@@ -509,6 +511,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
509
511
  **/
510
512
  AliasNotFound: GenericPalletError<Rv>;
511
513
 
514
+ /**
515
+ * Local XCM execution incomplete with the actual XCM error and the index of the
516
+ * instruction that caused the error.
517
+ **/
518
+ LocalExecutionIncompleteWithError: GenericPalletError<Rv>;
519
+
512
520
  /**
513
521
  * Generic pallet error
514
522
  **/
@@ -574,6 +582,81 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
574
582
  **/
575
583
  [error: string]: GenericPalletError<Rv>;
576
584
  };
585
+ /**
586
+ * Pallet `SnowbridgeSystemFrontend`'s errors
587
+ **/
588
+ snowbridgeSystemFrontend: {
589
+ /**
590
+ * Convert versioned location failure
591
+ **/
592
+ UnsupportedLocationVersion: GenericPalletError<Rv>;
593
+
594
+ /**
595
+ * Check location failure, should start from the dispatch origin as owner
596
+ **/
597
+ InvalidAssetOwner: GenericPalletError<Rv>;
598
+
599
+ /**
600
+ * Send xcm message failure
601
+ **/
602
+ SendFailure: GenericPalletError<Rv>;
603
+
604
+ /**
605
+ * Withdraw fee asset failure
606
+ **/
607
+ FeesNotMet: GenericPalletError<Rv>;
608
+
609
+ /**
610
+ * Convert to reanchored location failure
611
+ **/
612
+ LocationConversionFailed: GenericPalletError<Rv>;
613
+
614
+ /**
615
+ * Message export is halted
616
+ **/
617
+ Halted: GenericPalletError<Rv>;
618
+
619
+ /**
620
+ * The desired destination was unreachable, generally because there is a no way of routing
621
+ * to it.
622
+ **/
623
+ Unreachable: GenericPalletError<Rv>;
624
+
625
+ /**
626
+ * The asset provided for the tip is unsupported.
627
+ **/
628
+ UnsupportedAsset: GenericPalletError<Rv>;
629
+
630
+ /**
631
+ * Unable to withdraw asset.
632
+ **/
633
+ WithdrawError: GenericPalletError<Rv>;
634
+
635
+ /**
636
+ * Account could not be converted to a location.
637
+ **/
638
+ InvalidAccount: GenericPalletError<Rv>;
639
+
640
+ /**
641
+ * Provided tip asset could not be swapped for ether.
642
+ **/
643
+ SwapError: GenericPalletError<Rv>;
644
+
645
+ /**
646
+ * Ether could not be burned.
647
+ **/
648
+ BurnError: GenericPalletError<Rv>;
649
+
650
+ /**
651
+ * The tip provided is zero.
652
+ **/
653
+ TipAmountZero: GenericPalletError<Rv>;
654
+
655
+ /**
656
+ * Generic pallet error
657
+ **/
658
+ [error: string]: GenericPalletError<Rv>;
659
+ };
577
660
  /**
578
661
  * Pallet `Utility`'s errors
579
662
  **/
@@ -938,6 +1021,26 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
938
1021
  **/
939
1022
  BidTooLow: GenericPalletError<Rv>;
940
1023
 
1024
+ /**
1025
+ * No metadata is found.
1026
+ **/
1027
+ NoMetadata: GenericPalletError<Rv>;
1028
+
1029
+ /**
1030
+ * Wrong metadata key/value bytes supplied.
1031
+ **/
1032
+ WrongMetadata: GenericPalletError<Rv>;
1033
+
1034
+ /**
1035
+ * An attribute is not found.
1036
+ **/
1037
+ AttributeNotFound: GenericPalletError<Rv>;
1038
+
1039
+ /**
1040
+ * Wrong attribute key/value bytes supplied.
1041
+ **/
1042
+ WrongAttribute: GenericPalletError<Rv>;
1043
+
941
1044
  /**
942
1045
  * Generic pallet error
943
1046
  **/
@@ -6,9 +6,9 @@ import type {
6
6
  FrameSystemDispatchEventInfo,
7
7
  SpWeightsWeightV2Weight,
8
8
  FrameSupportTokensMiscBalanceStatus,
9
- StagingXcmV4Location,
10
- StagingXcmV5TraitsOutcome,
9
+ PalletBalancesUnexpectedKind,
11
10
  StagingXcmV5Location,
11
+ StagingXcmV5TraitsOutcome,
12
12
  StagingXcmV5Xcm,
13
13
  XcmV3TraitsSendError,
14
14
  XcmV5TraitsError,
@@ -18,6 +18,7 @@ import type {
18
18
  XcmVersionedLocation,
19
19
  CumulusPrimitivesCoreAggregateMessageOrigin,
20
20
  FrameSupportMessagesProcessMessageError,
21
+ SnowbridgeCoreOperatingModeBasicOperatingMode,
21
22
  PalletMultisigTimepoint,
22
23
  AssetHubPolkadotRuntimeProxyType,
23
24
  PalletProxyDepositKind,
@@ -268,6 +269,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
268
269
  **/
269
270
  TotalIssuanceForced: GenericPalletEvent<Rv, 'Balances', 'TotalIssuanceForced', { old: bigint; new: bigint }>;
270
271
 
272
+ /**
273
+ * An unexpected/defensive event was triggered.
274
+ **/
275
+ Unexpected: GenericPalletEvent<Rv, 'Balances', 'Unexpected', PalletBalancesUnexpectedKind>;
276
+
271
277
  /**
272
278
  * Generic pallet event
273
279
  **/
@@ -305,7 +311,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
305
311
  Rv,
306
312
  'AssetTxPayment',
307
313
  'AssetTxFeePaid',
308
- { who: AccountId32; actualFee: bigint; tip: bigint; assetId: StagingXcmV4Location }
314
+ { who: AccountId32; actualFee: bigint; tip: bigint; assetId: StagingXcmV5Location }
309
315
  >;
310
316
 
311
317
  /**
@@ -322,6 +328,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
322
328
  * Pallet `Vesting`'s events
323
329
  **/
324
330
  vesting: {
331
+ /**
332
+ * A vesting schedule has been created.
333
+ **/
334
+ VestingCreated: GenericPalletEvent<
335
+ Rv,
336
+ 'Vesting',
337
+ 'VestingCreated',
338
+ { account: AccountId32; scheduleIndex: number }
339
+ >;
340
+
325
341
  /**
326
342
  * The amount vested has been updated. This could indicate a change in funds available.
327
343
  * The balance given is the amount which is left unvested (and thus locked).
@@ -438,6 +454,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
438
454
  **/
439
455
  NewSession: GenericPalletEvent<Rv, 'Session', 'NewSession', { sessionIndex: number }>;
440
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
+
441
463
  /**
442
464
  * Validator has been disabled.
443
465
  **/
@@ -998,6 +1020,40 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
998
1020
  **/
999
1021
  [prop: string]: GenericPalletEvent<Rv>;
1000
1022
  };
1023
+ /**
1024
+ * Pallet `SnowbridgeSystemFrontend`'s events
1025
+ **/
1026
+ snowbridgeSystemFrontend: {
1027
+ /**
1028
+ * An XCM was sent
1029
+ **/
1030
+ MessageSent: GenericPalletEvent<
1031
+ Rv,
1032
+ 'SnowbridgeSystemFrontend',
1033
+ 'MessageSent',
1034
+ {
1035
+ origin: StagingXcmV5Location;
1036
+ destination: StagingXcmV5Location;
1037
+ message: StagingXcmV5Xcm;
1038
+ messageId: FixedBytes<32>;
1039
+ }
1040
+ >;
1041
+
1042
+ /**
1043
+ * Set OperatingMode
1044
+ **/
1045
+ ExportOperatingModeChanged: GenericPalletEvent<
1046
+ Rv,
1047
+ 'SnowbridgeSystemFrontend',
1048
+ 'ExportOperatingModeChanged',
1049
+ { mode: SnowbridgeCoreOperatingModeBasicOperatingMode }
1050
+ >;
1051
+
1052
+ /**
1053
+ * Generic pallet event
1054
+ **/
1055
+ [prop: string]: GenericPalletEvent<Rv>;
1056
+ };
1001
1057
  /**
1002
1058
  * Pallet `Utility`'s events
1003
1059
  **/
@@ -1133,6 +1189,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1133
1189
  { pure: AccountId32; who: AccountId32; proxyType: AssetHubPolkadotRuntimeProxyType; disambiguationIndex: number }
1134
1190
  >;
1135
1191
 
1192
+ /**
1193
+ * A pure proxy was killed by its spawner.
1194
+ **/
1195
+ PureKilled: GenericPalletEvent<
1196
+ Rv,
1197
+ 'Proxy',
1198
+ 'PureKilled',
1199
+ {
1200
+ pure: AccountId32;
1201
+ spawner: AccountId32;
1202
+ proxyType: AssetHubPolkadotRuntimeProxyType;
1203
+ disambiguationIndex: number;
1204
+ }
1205
+ >;
1206
+
1136
1207
  /**
1137
1208
  * An announcement was placed to make a call in the future.
1138
1209
  **/
@@ -1941,7 +2012,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1941
2012
  Rv,
1942
2013
  'ForeignAssets',
1943
2014
  'Created',
1944
- { assetId: StagingXcmV4Location; creator: AccountId32; owner: AccountId32 }
2015
+ { assetId: StagingXcmV5Location; creator: AccountId32; owner: AccountId32 }
1945
2016
  >;
1946
2017
 
1947
2018
  /**
@@ -1951,7 +2022,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1951
2022
  Rv,
1952
2023
  'ForeignAssets',
1953
2024
  'Issued',
1954
- { assetId: StagingXcmV4Location; owner: AccountId32; amount: bigint }
2025
+ { assetId: StagingXcmV5Location; owner: AccountId32; amount: bigint }
1955
2026
  >;
1956
2027
 
1957
2028
  /**
@@ -1961,7 +2032,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1961
2032
  Rv,
1962
2033
  'ForeignAssets',
1963
2034
  'Transferred',
1964
- { assetId: StagingXcmV4Location; from: AccountId32; to: AccountId32; amount: bigint }
2035
+ { assetId: StagingXcmV5Location; from: AccountId32; to: AccountId32; amount: bigint }
1965
2036
  >;
1966
2037
 
1967
2038
  /**
@@ -1971,7 +2042,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1971
2042
  Rv,
1972
2043
  'ForeignAssets',
1973
2044
  'Burned',
1974
- { assetId: StagingXcmV4Location; owner: AccountId32; balance: bigint }
2045
+ { assetId: StagingXcmV5Location; owner: AccountId32; balance: bigint }
1975
2046
  >;
1976
2047
 
1977
2048
  /**
@@ -1981,7 +2052,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1981
2052
  Rv,
1982
2053
  'ForeignAssets',
1983
2054
  'TeamChanged',
1984
- { assetId: StagingXcmV4Location; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 }
2055
+ { assetId: StagingXcmV5Location; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 }
1985
2056
  >;
1986
2057
 
1987
2058
  /**
@@ -1991,28 +2062,28 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1991
2062
  Rv,
1992
2063
  'ForeignAssets',
1993
2064
  'OwnerChanged',
1994
- { assetId: StagingXcmV4Location; owner: AccountId32 }
2065
+ { assetId: StagingXcmV5Location; owner: AccountId32 }
1995
2066
  >;
1996
2067
 
1997
2068
  /**
1998
2069
  * Some account `who` was frozen.
1999
2070
  **/
2000
- Frozen: GenericPalletEvent<Rv, 'ForeignAssets', 'Frozen', { assetId: StagingXcmV4Location; who: AccountId32 }>;
2071
+ Frozen: GenericPalletEvent<Rv, 'ForeignAssets', 'Frozen', { assetId: StagingXcmV5Location; who: AccountId32 }>;
2001
2072
 
2002
2073
  /**
2003
2074
  * Some account `who` was thawed.
2004
2075
  **/
2005
- Thawed: GenericPalletEvent<Rv, 'ForeignAssets', 'Thawed', { assetId: StagingXcmV4Location; who: AccountId32 }>;
2076
+ Thawed: GenericPalletEvent<Rv, 'ForeignAssets', 'Thawed', { assetId: StagingXcmV5Location; who: AccountId32 }>;
2006
2077
 
2007
2078
  /**
2008
2079
  * Some asset `asset_id` was frozen.
2009
2080
  **/
2010
- AssetFrozen: GenericPalletEvent<Rv, 'ForeignAssets', 'AssetFrozen', { assetId: StagingXcmV4Location }>;
2081
+ AssetFrozen: GenericPalletEvent<Rv, 'ForeignAssets', 'AssetFrozen', { assetId: StagingXcmV5Location }>;
2011
2082
 
2012
2083
  /**
2013
2084
  * Some asset `asset_id` was thawed.
2014
2085
  **/
2015
- AssetThawed: GenericPalletEvent<Rv, 'ForeignAssets', 'AssetThawed', { assetId: StagingXcmV4Location }>;
2086
+ AssetThawed: GenericPalletEvent<Rv, 'ForeignAssets', 'AssetThawed', { assetId: StagingXcmV5Location }>;
2016
2087
 
2017
2088
  /**
2018
2089
  * Accounts were destroyed for given asset.
@@ -2021,7 +2092,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2021
2092
  Rv,
2022
2093
  'ForeignAssets',
2023
2094
  'AccountsDestroyed',
2024
- { assetId: StagingXcmV4Location; accountsDestroyed: number; accountsRemaining: number }
2095
+ { assetId: StagingXcmV5Location; accountsDestroyed: number; accountsRemaining: number }
2025
2096
  >;
2026
2097
 
2027
2098
  /**
@@ -2031,7 +2102,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2031
2102
  Rv,
2032
2103
  'ForeignAssets',
2033
2104
  'ApprovalsDestroyed',
2034
- { assetId: StagingXcmV4Location; approvalsDestroyed: number; approvalsRemaining: number }
2105
+ { assetId: StagingXcmV5Location; approvalsDestroyed: number; approvalsRemaining: number }
2035
2106
  >;
2036
2107
 
2037
2108
  /**
@@ -2041,13 +2112,13 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2041
2112
  Rv,
2042
2113
  'ForeignAssets',
2043
2114
  'DestructionStarted',
2044
- { assetId: StagingXcmV4Location }
2115
+ { assetId: StagingXcmV5Location }
2045
2116
  >;
2046
2117
 
2047
2118
  /**
2048
2119
  * An asset class was destroyed.
2049
2120
  **/
2050
- Destroyed: GenericPalletEvent<Rv, 'ForeignAssets', 'Destroyed', { assetId: StagingXcmV4Location }>;
2121
+ Destroyed: GenericPalletEvent<Rv, 'ForeignAssets', 'Destroyed', { assetId: StagingXcmV5Location }>;
2051
2122
 
2052
2123
  /**
2053
2124
  * Some asset class was force-created.
@@ -2056,7 +2127,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2056
2127
  Rv,
2057
2128
  'ForeignAssets',
2058
2129
  'ForceCreated',
2059
- { assetId: StagingXcmV4Location; owner: AccountId32 }
2130
+ { assetId: StagingXcmV5Location; owner: AccountId32 }
2060
2131
  >;
2061
2132
 
2062
2133
  /**
@@ -2066,13 +2137,13 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2066
2137
  Rv,
2067
2138
  'ForeignAssets',
2068
2139
  'MetadataSet',
2069
- { assetId: StagingXcmV4Location; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean }
2140
+ { assetId: StagingXcmV5Location; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean }
2070
2141
  >;
2071
2142
 
2072
2143
  /**
2073
2144
  * Metadata has been cleared for an asset.
2074
2145
  **/
2075
- MetadataCleared: GenericPalletEvent<Rv, 'ForeignAssets', 'MetadataCleared', { assetId: StagingXcmV4Location }>;
2146
+ MetadataCleared: GenericPalletEvent<Rv, 'ForeignAssets', 'MetadataCleared', { assetId: StagingXcmV5Location }>;
2076
2147
 
2077
2148
  /**
2078
2149
  * (Additional) funds have been approved for transfer to a destination account.
@@ -2081,7 +2152,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2081
2152
  Rv,
2082
2153
  'ForeignAssets',
2083
2154
  'ApprovedTransfer',
2084
- { assetId: StagingXcmV4Location; source: AccountId32; delegate: AccountId32; amount: bigint }
2155
+ { assetId: StagingXcmV5Location; source: AccountId32; delegate: AccountId32; amount: bigint }
2085
2156
  >;
2086
2157
 
2087
2158
  /**
@@ -2091,7 +2162,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2091
2162
  Rv,
2092
2163
  'ForeignAssets',
2093
2164
  'ApprovalCancelled',
2094
- { assetId: StagingXcmV4Location; owner: AccountId32; delegate: AccountId32 }
2165
+ { assetId: StagingXcmV5Location; owner: AccountId32; delegate: AccountId32 }
2095
2166
  >;
2096
2167
 
2097
2168
  /**
@@ -2103,7 +2174,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2103
2174
  'ForeignAssets',
2104
2175
  'TransferredApproved',
2105
2176
  {
2106
- assetId: StagingXcmV4Location;
2177
+ assetId: StagingXcmV5Location;
2107
2178
  owner: AccountId32;
2108
2179
  delegate: AccountId32;
2109
2180
  destination: AccountId32;
@@ -2118,7 +2189,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2118
2189
  Rv,
2119
2190
  'ForeignAssets',
2120
2191
  'AssetStatusChanged',
2121
- { assetId: StagingXcmV4Location }
2192
+ { assetId: StagingXcmV5Location }
2122
2193
  >;
2123
2194
 
2124
2195
  /**
@@ -2128,7 +2199,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2128
2199
  Rv,
2129
2200
  'ForeignAssets',
2130
2201
  'AssetMinBalanceChanged',
2131
- { assetId: StagingXcmV4Location; newMinBalance: bigint }
2202
+ { assetId: StagingXcmV5Location; newMinBalance: bigint }
2132
2203
  >;
2133
2204
 
2134
2205
  /**
@@ -2138,13 +2209,13 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2138
2209
  Rv,
2139
2210
  'ForeignAssets',
2140
2211
  'Touched',
2141
- { assetId: StagingXcmV4Location; who: AccountId32; depositor: AccountId32 }
2212
+ { assetId: StagingXcmV5Location; who: AccountId32; depositor: AccountId32 }
2142
2213
  >;
2143
2214
 
2144
2215
  /**
2145
2216
  * Some account `who` was blocked.
2146
2217
  **/
2147
- Blocked: GenericPalletEvent<Rv, 'ForeignAssets', 'Blocked', { assetId: StagingXcmV4Location; who: AccountId32 }>;
2218
+ Blocked: GenericPalletEvent<Rv, 'ForeignAssets', 'Blocked', { assetId: StagingXcmV5Location; who: AccountId32 }>;
2148
2219
 
2149
2220
  /**
2150
2221
  * Some assets were deposited (e.g. for transaction fees).
@@ -2153,7 +2224,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2153
2224
  Rv,
2154
2225
  'ForeignAssets',
2155
2226
  'Deposited',
2156
- { assetId: StagingXcmV4Location; who: AccountId32; amount: bigint }
2227
+ { assetId: StagingXcmV5Location; who: AccountId32; amount: bigint }
2157
2228
  >;
2158
2229
 
2159
2230
  /**
@@ -2163,7 +2234,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2163
2234
  Rv,
2164
2235
  'ForeignAssets',
2165
2236
  'Withdrawn',
2166
- { assetId: StagingXcmV4Location; who: AccountId32; amount: bigint }
2237
+ { assetId: StagingXcmV5Location; who: AccountId32; amount: bigint }
2167
2238
  >;
2168
2239
 
2169
2240
  /**
@@ -2387,7 +2458,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2387
2458
  * The pool id associated with the pool. Note that the order of the assets may not be
2388
2459
  * the same as the order specified in the create pool extrinsic.
2389
2460
  **/
2390
- poolId: [StagingXcmV4Location, StagingXcmV4Location];
2461
+ poolId: [StagingXcmV5Location, StagingXcmV5Location];
2391
2462
 
2392
2463
  /**
2393
2464
  * The account ID of the pool.
@@ -2423,7 +2494,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2423
2494
  /**
2424
2495
  * The pool id of the pool that the liquidity was added to.
2425
2496
  **/
2426
- poolId: [StagingXcmV4Location, StagingXcmV4Location];
2497
+ poolId: [StagingXcmV5Location, StagingXcmV5Location];
2427
2498
 
2428
2499
  /**
2429
2500
  * The amount of the first asset that was added to the pool.
@@ -2468,7 +2539,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2468
2539
  /**
2469
2540
  * The pool id that the liquidity was removed from.
2470
2541
  **/
2471
- poolId: [StagingXcmV4Location, StagingXcmV4Location];
2542
+ poolId: [StagingXcmV5Location, StagingXcmV5Location];
2472
2543
 
2473
2544
  /**
2474
2545
  * The amount of the first asset that was removed from the pool.
@@ -2530,7 +2601,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2530
2601
  * The route of asset IDs with amounts that the swap went through.
2531
2602
  * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out)
2532
2603
  **/
2533
- path: Array<[StagingXcmV4Location, bigint]>;
2604
+ path: Array<[StagingXcmV5Location, bigint]>;
2534
2605
  }
2535
2606
  >;
2536
2607
 
@@ -2556,7 +2627,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2556
2627
  * The route of asset IDs with amounts that the swap went through.
2557
2628
  * E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out)
2558
2629
  **/
2559
- path: Array<[StagingXcmV4Location, bigint]>;
2630
+ path: Array<[StagingXcmV5Location, bigint]>;
2560
2631
  }
2561
2632
  >;
2562
2633
 
@@ -2571,7 +2642,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2571
2642
  /**
2572
2643
  * The ID of the pool.
2573
2644
  **/
2574
- poolId: [StagingXcmV4Location, StagingXcmV4Location];
2645
+ poolId: [StagingXcmV5Location, StagingXcmV5Location];
2575
2646
 
2576
2647
  /**
2577
2648
  * The account initiating the touch.
@@ -58,7 +58,7 @@ export interface VersionedPolkadotAssetHubApi<Rv extends RpcVersion> extends Gen
58
58
 
59
59
  /**
60
60
  * @name: PolkadotAssetHubApi
61
- * @specVersion: 1006000
61
+ * @specVersion: 1007001
62
62
  **/
63
63
  export interface PolkadotAssetHubApi {
64
64
  legacy: VersionedPolkadotAssetHubApi<RpcLegacy>;