@dedot/chaintypes 0.265.0 → 0.266.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.
@@ -914,6 +914,26 @@ export interface ChainErrors extends GenericChainErrors {
914
914
  **/
915
915
  BidTooLow: GenericPalletError;
916
916
 
917
+ /**
918
+ * No metadata is found.
919
+ **/
920
+ NoMetadata: GenericPalletError;
921
+
922
+ /**
923
+ * Wrong metadata key/value bytes supplied.
924
+ **/
925
+ WrongMetadata: GenericPalletError;
926
+
927
+ /**
928
+ * An attribute is not found.
929
+ **/
930
+ AttributeNotFound: GenericPalletError;
931
+
932
+ /**
933
+ * Wrong attribute key/value bytes supplied.
934
+ **/
935
+ WrongAttribute: GenericPalletError;
936
+
917
937
  /**
918
938
  * Generic pallet error
919
939
  **/
@@ -1197,6 +1217,11 @@ export interface ChainErrors extends GenericChainErrors {
1197
1217
  **/
1198
1218
  CollateralCannotCoverNewBorrow: GenericPalletError;
1199
1219
 
1220
+ /**
1221
+ * Aave - the reserve is paused and no operations are allowed
1222
+ **/
1223
+ AaveReservePaused: GenericPalletError;
1224
+
1200
1225
  /**
1201
1226
  * Generic pallet error
1202
1227
  **/
@@ -3087,9 +3112,9 @@ export interface ChainErrors extends GenericChainErrors {
3087
3112
  GasLimitTooLow: GenericPalletError;
3088
3113
 
3089
3114
  /**
3090
- * Gas limit is too high.
3115
+ * Gas limit exceeds block gas limit.
3091
3116
  **/
3092
- GasLimitTooHigh: GenericPalletError;
3117
+ GasLimitExceedsBlockLimit: GenericPalletError;
3093
3118
 
3094
3119
  /**
3095
3120
  * The chain id is invalid.
@@ -3121,6 +3146,11 @@ export interface ChainErrors extends GenericChainErrors {
3121
3146
  **/
3122
3147
  CreateOriginNotAllowed: GenericPalletError;
3123
3148
 
3149
+ /**
3150
+ * EIP-7825: Transaction gas limit exceeds protocol cap (2^24).
3151
+ **/
3152
+ TransactionGasLimitExceedsCap: GenericPalletError;
3153
+
3124
3154
  /**
3125
3155
  * Generic pallet error
3126
3156
  **/
@@ -3740,6 +3770,8 @@ export interface ChainErrors extends GenericChainErrors {
3740
3770
 
3741
3771
  /**
3742
3772
  * Too many locations authorized to alias origin.
3773
+ *
3774
+ * @deprecated Use `LocalExecutionIncompleteWithError` instead (since 20.0.0)
3743
3775
  **/
3744
3776
  TooManyAuthorizedAliases: GenericPalletError;
3745
3777
 
@@ -3753,6 +3785,12 @@ export interface ChainErrors extends GenericChainErrors {
3753
3785
  **/
3754
3786
  AliasNotFound: GenericPalletError;
3755
3787
 
3788
+ /**
3789
+ * Local XCM execution incomplete with the actual XCM error and the index of the
3790
+ * instruction that caused the error.
3791
+ **/
3792
+ LocalExecutionIncompleteWithError: GenericPalletError;
3793
+
3756
3794
  /**
3757
3795
  * Generic pallet error
3758
3796
  **/
@@ -4171,9 +4209,24 @@ export interface ChainErrors extends GenericChainErrors {
4171
4209
  AssetNotFound: GenericPalletError;
4172
4210
 
4173
4211
  /**
4174
- * The new price is outside the max allowed range
4212
+ * The external source is already registered.
4213
+ **/
4214
+ SourceAlreadyRegistered: GenericPalletError;
4215
+
4216
+ /**
4217
+ * The external source was not found.
4218
+ **/
4219
+ SourceNotFound: GenericPalletError;
4220
+
4221
+ /**
4222
+ * The caller is not authorized for the given (source, pair).
4223
+ **/
4224
+ NotAuthorized: GenericPalletError;
4225
+
4226
+ /**
4227
+ * Price must not be zero.
4175
4228
  **/
4176
- PriceOutsideAllowedRange: GenericPalletError;
4229
+ PriceIsZero: GenericPalletError;
4177
4230
 
4178
4231
  /**
4179
4232
  * Generic pallet error
@@ -30,6 +30,7 @@ import type {
30
30
  PalletConvictionVotingTally,
31
31
  FrameSupportDispatchPostDispatchInfo,
32
32
  SpRuntimeDispatchErrorWithPostInfo,
33
+ PalletDispatcherHyperbridgeCleanupStage,
33
34
  PalletAssetRegistryAssetType,
34
35
  HydradxRuntimeXcmAssetLocation,
35
36
  PalletClaimsEthereumAddress,
@@ -878,6 +879,15 @@ export interface ChainEvents extends GenericChainEvents {
878
879
  { pure: AccountId32; who: AccountId32; proxyType: HydradxRuntimeSystemProxyType; disambiguationIndex: number }
879
880
  >;
880
881
 
882
+ /**
883
+ * A pure proxy was killed by its spawner.
884
+ **/
885
+ PureKilled: GenericPalletEvent<
886
+ 'Proxy',
887
+ 'PureKilled',
888
+ { pure: AccountId32; spawner: AccountId32; proxyType: HydradxRuntimeSystemProxyType; disambiguationIndex: number }
889
+ >;
890
+
881
891
  /**
882
892
  * An announcement was placed to make a call in the future.
883
893
  **/
@@ -1596,6 +1606,43 @@ export interface ChainEvents extends GenericChainEvents {
1596
1606
  'AaveManagerCallDispatched',
1597
1607
  { callHash: H256; result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }
1598
1608
  >;
1609
+ EmergencyAdminCallDispatched: GenericPalletEvent<
1610
+ 'Dispatcher',
1611
+ 'EmergencyAdminCallDispatched',
1612
+ { callHash: H256; result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }
1613
+ >;
1614
+
1615
+ /**
1616
+ * Emitted each block when cleanup deletes a batch of keys.
1617
+ **/
1618
+ HyperbridgeCleanupProgress: GenericPalletEvent<
1619
+ 'Dispatcher',
1620
+ 'HyperbridgeCleanupProgress',
1621
+ { stage: PalletDispatcherHyperbridgeCleanupStage; keysDeleted: number }
1622
+ >;
1623
+
1624
+ /**
1625
+ * Emitted when all keys in a stage are removed and cleanup advances.
1626
+ **/
1627
+ HyperbridgeCleanupStageCompleted: GenericPalletEvent<
1628
+ 'Dispatcher',
1629
+ 'HyperbridgeCleanupStageCompleted',
1630
+ { stage: PalletDispatcherHyperbridgeCleanupStage }
1631
+ >;
1632
+
1633
+ /**
1634
+ * Emitted when all three stages are done and cleanup disables itself.
1635
+ **/
1636
+ HyperbridgeCleanupCompleted: GenericPalletEvent<'Dispatcher', 'HyperbridgeCleanupCompleted', null>;
1637
+
1638
+ /**
1639
+ * Emitted when cleanup is paused or resumed via extrinsic.
1640
+ **/
1641
+ HyperbridgeCleanupStatusChanged: GenericPalletEvent<
1642
+ 'Dispatcher',
1643
+ 'HyperbridgeCleanupStatusChanged',
1644
+ { paused: boolean }
1645
+ >;
1599
1646
 
1600
1647
  /**
1601
1648
  * Generic pallet event
@@ -2196,33 +2243,28 @@ export interface ChainEvents extends GenericChainEvents {
2196
2243
  DepositReleased: GenericPalletEvent<'CircuitBreaker', 'DepositReleased', { who: AccountId32; assetId: number }>;
2197
2244
 
2198
2245
  /**
2199
- * Global lockdown triggered until given timestamp (ms).
2200
- **/
2201
- GlobalLockdownTriggered: GenericPalletEvent<'CircuitBreaker', 'GlobalLockdownTriggered', { until: bigint }>;
2202
-
2203
- /**
2204
- * Global lockdown was lifted (either automatically or by reset).
2246
+ * Global withdraw lockdown was lifted (either automatically or by reset).
2205
2247
  **/
2206
- GlobalLockdownLifted: GenericPalletEvent<'CircuitBreaker', 'GlobalLockdownLifted', null>;
2248
+ WithdrawLockdownLifted: GenericPalletEvent<'CircuitBreaker', 'WithdrawLockdownLifted', null>;
2207
2249
 
2208
2250
  /**
2209
- * Global lockdown accumulator and state were reset by governance.
2251
+ * Withdraw lockdown accumulator and states were reset by governance.
2210
2252
  **/
2211
- GlobalLockdownReset: GenericPalletEvent<'CircuitBreaker', 'GlobalLockdownReset', null>;
2253
+ WithdrawLockdownReset: GenericPalletEvent<'CircuitBreaker', 'WithdrawLockdownReset', null>;
2212
2254
 
2213
2255
  /**
2214
- * Global limit value updated by governance (in reference currency).
2256
+ * Global withdraw limit config parameters were updated.
2215
2257
  **/
2216
- GlobalWithdrawLimitConfigUpdated: GenericPalletEvent<
2258
+ WithdrawLimitConfigUpdated: GenericPalletEvent<
2217
2259
  'CircuitBreaker',
2218
- 'GlobalWithdrawLimitConfigUpdated',
2219
- { newLimit: bigint; newPeriod: bigint }
2260
+ 'WithdrawLimitConfigUpdated',
2261
+ { limit: bigint; window: bigint }
2220
2262
  >;
2221
2263
 
2222
2264
  /**
2223
2265
  * Global withdraw lockdown was set by governance.
2224
2266
  **/
2225
- GlobalLockdownSet: GenericPalletEvent<'CircuitBreaker', 'GlobalLockdownSet', { until: bigint }>;
2267
+ WithdrawLockdownTriggered: GenericPalletEvent<'CircuitBreaker', 'WithdrawLockdownTriggered', { until: bigint }>;
2226
2268
 
2227
2269
  /**
2228
2270
  * A number of egress accounts added to a list.
@@ -4501,6 +4543,12 @@ export interface ChainEvents extends GenericChainEvents {
4501
4543
  **/
4502
4544
  NewSession: GenericPalletEvent<'Session', 'NewSession', { sessionIndex: number }>;
4503
4545
 
4546
+ /**
4547
+ * The `NewSession` event in the current block also implies a new validator set to be
4548
+ * queued.
4549
+ **/
4550
+ NewQueued: GenericPalletEvent<'Session', 'NewQueued', null>;
4551
+
4504
4552
  /**
4505
4553
  * Validator has been disabled.
4506
4554
  **/
@@ -4551,6 +4599,34 @@ export interface ChainEvents extends GenericChainEvents {
4551
4599
  }
4552
4600
  >;
4553
4601
 
4602
+ /**
4603
+ * An external oracle source was registered.
4604
+ **/
4605
+ ExternalSourceRegistered: GenericPalletEvent<'EmaOracle', 'ExternalSourceRegistered', { source: FixedBytes<8> }>;
4606
+
4607
+ /**
4608
+ * An external oracle source was removed.
4609
+ **/
4610
+ ExternalSourceRemoved: GenericPalletEvent<'EmaOracle', 'ExternalSourceRemoved', { source: FixedBytes<8> }>;
4611
+
4612
+ /**
4613
+ * An account was authorized to update the given (source, pair).
4614
+ **/
4615
+ AuthorizedAccountAdded: GenericPalletEvent<
4616
+ 'EmaOracle',
4617
+ 'AuthorizedAccountAdded',
4618
+ { source: FixedBytes<8>; pair: [number, number]; account: AccountId32 }
4619
+ >;
4620
+
4621
+ /**
4622
+ * An authorization was removed for the given (source, pair, account).
4623
+ **/
4624
+ AuthorizedAccountRemoved: GenericPalletEvent<
4625
+ 'EmaOracle',
4626
+ 'AuthorizedAccountRemoved',
4627
+ { source: FixedBytes<8>; pair: [number, number]; account: AccountId32 }
4628
+ >;
4629
+
4554
4630
  /**
4555
4631
  * Generic pallet event
4556
4632
  **/
@@ -51,7 +51,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
51
51
 
52
52
  /**
53
53
  * @name: PaseoHydrationApi
54
- * @specVersion: 397
54
+ * @specVersion: 411
55
55
  **/
56
56
  export interface PaseoHydrationApi extends GenericSubstrateApi {
57
57
  rpc: ChainJsonRpcApis;
@@ -56,6 +56,7 @@ import type {
56
56
  PalletStateTrieMigrationMigrationLimits,
57
57
  PalletConvictionVotingVoteVoting,
58
58
  PalletReferendaReferendumInfo,
59
+ PalletDispatcherHyperbridgeCleanupStage,
59
60
  EvmCoreErrorExitReason,
60
61
  PalletAssetRegistryAssetDetails,
61
62
  HydradxRuntimeXcmAssetLocation,
@@ -566,6 +567,8 @@ export interface ChainStorage extends GenericChainStorage {
566
567
  *
567
568
  * @param {H256} arg
568
569
  * @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
570
+ *
571
+ * @deprecated RequestStatusFor
569
572
  **/
570
573
  statusFor: GenericStorageQuery<(arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
571
574
 
@@ -1185,6 +1188,20 @@ export interface ChainStorage extends GenericChainStorage {
1185
1188
  **/
1186
1189
  extraGas: GenericStorageQuery<() => bigint>;
1187
1190
 
1191
+ /**
1192
+ * Whether the background ISMP storage cleanup is active.
1193
+ *
1194
+ * @param {Callback<boolean> =} callback
1195
+ **/
1196
+ cleanupEnabled: GenericStorageQuery<() => boolean>;
1197
+
1198
+ /**
1199
+ * Current stage of the background ISMP storage cleanup.
1200
+ *
1201
+ * @param {Callback<PalletDispatcherHyperbridgeCleanupStage | undefined> =} callback
1202
+ **/
1203
+ cleanupStage: GenericStorageQuery<() => PalletDispatcherHyperbridgeCleanupStage | undefined>;
1204
+
1188
1205
  /**
1189
1206
  *
1190
1207
  * @param {Callback<EvmCoreErrorExitReason | undefined> =} callback
@@ -1629,6 +1646,14 @@ export interface ChainStorage extends GenericChainStorage {
1629
1646
  number
1630
1647
  >;
1631
1648
 
1649
+ /**
1650
+ * Per-XCM-message buffer of (withdrawn_hdx, deposited_hdx).
1651
+ * None means buffer is inactive (not inside XCM message processing).
1652
+ *
1653
+ * @param {Callback<[bigint, bigint] | undefined> =} callback
1654
+ **/
1655
+ xcmEgressBuffer: GenericStorageQuery<() => [bigint, bigint] | undefined>;
1656
+
1632
1657
  /**
1633
1658
  * Generic pallet storage query
1634
1659
  **/
@@ -3376,6 +3401,29 @@ export interface ChainStorage extends GenericChainStorage {
3376
3401
  **/
3377
3402
  whitelistedAssets: GenericStorageQuery<() => Array<[FixedBytes<8>, [number, number]]>>;
3378
3403
 
3404
+ /**
3405
+ * Registered external oracle sources.
3406
+ *
3407
+ * @param {FixedBytes<8>} arg
3408
+ * @param {Callback<[] | undefined> =} callback
3409
+ **/
3410
+ externalSources: GenericStorageQuery<(arg: FixedBytes<8>) => [] | undefined, FixedBytes<8>>;
3411
+
3412
+ /**
3413
+ * Authorized accounts per (external oracle source, asset pair).
3414
+ *
3415
+ * Authorization is scoped per-pair so that a compromised external oracle account can
3416
+ * only update the specific pairs it was authorized for, limiting DDoS blast radius.
3417
+ * The asset pair is stored in `ordered_pair` form.
3418
+ *
3419
+ * @param {[FixedBytes<8>, [number, number], AccountId32Like]} arg
3420
+ * @param {Callback<[] | undefined> =} callback
3421
+ **/
3422
+ authorizedAccounts: GenericStorageQuery<
3423
+ (arg: [FixedBytes<8>, [number, number], AccountId32Like]) => [] | undefined,
3424
+ [FixedBytes<8>, [number, number], AccountId32]
3425
+ >;
3426
+
3379
3427
  /**
3380
3428
  * Generic pallet storage query
3381
3429
  **/