@dedot/chaintypes 0.174.0 → 0.176.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.
@@ -62,7 +62,7 @@ export interface VersionedPaseoHydrationApi<Rv extends RpcVersion> extends Gener
62
62
 
63
63
  /**
64
64
  * @name: PaseoHydrationApi
65
- * @specVersion: 347
65
+ * @specVersion: 355
66
66
  **/
67
67
  export interface PaseoHydrationApi {
68
68
  legacy: VersionedPaseoHydrationApi<RpcLegacy>;
@@ -125,6 +125,11 @@ import type {
125
125
  SpCoreCryptoKeyTypeId,
126
126
  SpConsensusAuraSr25519AppSr25519Public,
127
127
  SpConsensusSlotsSlot,
128
+ IsmpConsensusStateCommitment,
129
+ IsmpConsensusStateMachineHeight,
130
+ IsmpConsensusStateMachineId,
131
+ PalletHyperbridgeVersionedHostParams,
132
+ IsmpHostStateMachine,
128
133
  PalletEmaOracleOracleEntry,
129
134
  HydradxTraitsOracleOraclePeriod,
130
135
  PalletBroadcastExecutionType,
@@ -1333,21 +1338,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1333
1338
  * @param {AccountId32Like} arg
1334
1339
  * @param {Callback<[] | undefined> =} callback
1335
1340
  **/
1336
- accountBlacklist: GenericStorageQuery<Rv, (arg: AccountId32Like) => [] | undefined, AccountId32>;
1337
-
1338
- /**
1339
- * Account to take reward from.
1340
- *
1341
- * @param {Callback<AccountId32 | undefined> =} callback
1342
- **/
1343
- rewardAccount: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1344
-
1345
- /**
1346
- * Account to send dust to.
1347
- *
1348
- * @param {Callback<AccountId32 | undefined> =} callback
1349
- **/
1350
- dustAccount: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1341
+ accountWhitelist: GenericStorageQuery<Rv, (arg: AccountId32Like) => [] | undefined, AccountId32>;
1351
1342
 
1352
1343
  /**
1353
1344
  * Generic pallet storage query
@@ -3149,6 +3140,239 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3149
3140
  **/
3150
3141
  [storage: string]: GenericStorageQuery<Rv>;
3151
3142
  };
3143
+ /**
3144
+ * Pallet `Ismp`'s storage queries
3145
+ **/
3146
+ ismp: {
3147
+ /**
3148
+ * Holds a map of state machine heights to their verified state commitments. These state
3149
+ * commitments end up here after they are successfully verified by a `ConsensusClient`
3150
+ *
3151
+ * @param {IsmpConsensusStateMachineHeight} arg
3152
+ * @param {Callback<IsmpConsensusStateCommitment | undefined> =} callback
3153
+ **/
3154
+ stateCommitments: GenericStorageQuery<
3155
+ Rv,
3156
+ (arg: IsmpConsensusStateMachineHeight) => IsmpConsensusStateCommitment | undefined,
3157
+ IsmpConsensusStateMachineHeight
3158
+ >;
3159
+
3160
+ /**
3161
+ * Holds a map of consensus state identifiers to their consensus state.
3162
+ *
3163
+ * @param {FixedBytes<4>} arg
3164
+ * @param {Callback<Bytes | undefined> =} callback
3165
+ **/
3166
+ consensusStates: GenericStorageQuery<Rv, (arg: FixedBytes<4>) => Bytes | undefined, FixedBytes<4>>;
3167
+
3168
+ /**
3169
+ * A mapping of consensus state identifier to it's associated consensus client identifier
3170
+ *
3171
+ * @param {FixedBytes<4>} arg
3172
+ * @param {Callback<FixedBytes<4> | undefined> =} callback
3173
+ **/
3174
+ consensusStateClient: GenericStorageQuery<Rv, (arg: FixedBytes<4>) => FixedBytes<4> | undefined, FixedBytes<4>>;
3175
+
3176
+ /**
3177
+ * A mapping of consensus state identifiers to their unbonding periods
3178
+ *
3179
+ * @param {FixedBytes<4>} arg
3180
+ * @param {Callback<bigint | undefined> =} callback
3181
+ **/
3182
+ unbondingPeriod: GenericStorageQuery<Rv, (arg: FixedBytes<4>) => bigint | undefined, FixedBytes<4>>;
3183
+
3184
+ /**
3185
+ * A mapping of state machine Ids to their challenge periods
3186
+ *
3187
+ * @param {IsmpConsensusStateMachineId} arg
3188
+ * @param {Callback<bigint | undefined> =} callback
3189
+ **/
3190
+ challengePeriod: GenericStorageQuery<
3191
+ Rv,
3192
+ (arg: IsmpConsensusStateMachineId) => bigint | undefined,
3193
+ IsmpConsensusStateMachineId
3194
+ >;
3195
+
3196
+ /**
3197
+ * Holds a map of consensus clients frozen due to byzantine
3198
+ * behaviour
3199
+ *
3200
+ * @param {FixedBytes<4>} arg
3201
+ * @param {Callback<boolean> =} callback
3202
+ **/
3203
+ frozenConsensusClients: GenericStorageQuery<Rv, (arg: FixedBytes<4>) => boolean, FixedBytes<4>>;
3204
+
3205
+ /**
3206
+ * The latest verified height for a state machine
3207
+ *
3208
+ * @param {IsmpConsensusStateMachineId} arg
3209
+ * @param {Callback<bigint | undefined> =} callback
3210
+ **/
3211
+ latestStateMachineHeight: GenericStorageQuery<
3212
+ Rv,
3213
+ (arg: IsmpConsensusStateMachineId) => bigint | undefined,
3214
+ IsmpConsensusStateMachineId
3215
+ >;
3216
+
3217
+ /**
3218
+ * Holds the timestamp at which a consensus client was recently updated.
3219
+ * Used in ensuring that the configured challenge period elapses.
3220
+ *
3221
+ * @param {FixedBytes<4>} arg
3222
+ * @param {Callback<bigint | undefined> =} callback
3223
+ **/
3224
+ consensusClientUpdateTime: GenericStorageQuery<Rv, (arg: FixedBytes<4>) => bigint | undefined, FixedBytes<4>>;
3225
+
3226
+ /**
3227
+ * Holds the timestamp at which a state machine height was updated.
3228
+ * Used in ensuring that the configured challenge period elapses.
3229
+ *
3230
+ * @param {IsmpConsensusStateMachineHeight} arg
3231
+ * @param {Callback<bigint | undefined> =} callback
3232
+ **/
3233
+ stateMachineUpdateTime: GenericStorageQuery<
3234
+ Rv,
3235
+ (arg: IsmpConsensusStateMachineHeight) => bigint | undefined,
3236
+ IsmpConsensusStateMachineHeight
3237
+ >;
3238
+
3239
+ /**
3240
+ * Tracks requests that have been responded to
3241
+ * The key is the request commitment
3242
+ *
3243
+ * @param {H256} arg
3244
+ * @param {Callback<boolean> =} callback
3245
+ **/
3246
+ responded: GenericStorageQuery<Rv, (arg: H256) => boolean, H256>;
3247
+
3248
+ /**
3249
+ * Latest nonce for messages sent from this chain
3250
+ *
3251
+ * @param {Callback<bigint> =} callback
3252
+ **/
3253
+ nonce: GenericStorageQuery<Rv, () => bigint>;
3254
+
3255
+ /**
3256
+ * The child trie root of messages
3257
+ *
3258
+ * @param {Callback<H256> =} callback
3259
+ **/
3260
+ childTrieRoot: GenericStorageQuery<Rv, () => H256>;
3261
+
3262
+ /**
3263
+ * Generic pallet storage query
3264
+ **/
3265
+ [storage: string]: GenericStorageQuery<Rv>;
3266
+ };
3267
+ /**
3268
+ * Pallet `IsmpParachain`'s storage queries
3269
+ **/
3270
+ ismpParachain: {
3271
+ /**
3272
+ * Mapping of relay chain heights to it's state commitment. The state commitment of the parent
3273
+ * relay block is inserted at every block in `on_finalize`. This commitment is gotten from
3274
+ * parachain-system.
3275
+ *
3276
+ * @param {number} arg
3277
+ * @param {Callback<H256 | undefined> =} callback
3278
+ **/
3279
+ relayChainStateCommitments: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
3280
+
3281
+ /**
3282
+ * Tracks whether we've already seen the `update_parachain_consensus` inherent
3283
+ *
3284
+ * @param {Callback<boolean | undefined> =} callback
3285
+ **/
3286
+ consensusUpdated: GenericStorageQuery<Rv, () => boolean | undefined>;
3287
+
3288
+ /**
3289
+ * List of parachains that this state machine is interested in.
3290
+ *
3291
+ * @param {number} arg
3292
+ * @param {Callback<bigint | undefined> =} callback
3293
+ **/
3294
+ parachains: GenericStorageQuery<Rv, (arg: number) => bigint | undefined, number>;
3295
+
3296
+ /**
3297
+ * Generic pallet storage query
3298
+ **/
3299
+ [storage: string]: GenericStorageQuery<Rv>;
3300
+ };
3301
+ /**
3302
+ * Pallet `Hyperbridge`'s storage queries
3303
+ **/
3304
+ hyperbridge: {
3305
+ /**
3306
+ * The host parameters of the pallet-hyperbridge.
3307
+ *
3308
+ * @param {Callback<PalletHyperbridgeVersionedHostParams> =} callback
3309
+ **/
3310
+ hostParams: GenericStorageQuery<Rv, () => PalletHyperbridgeVersionedHostParams>;
3311
+
3312
+ /**
3313
+ * Generic pallet storage query
3314
+ **/
3315
+ [storage: string]: GenericStorageQuery<Rv>;
3316
+ };
3317
+ /**
3318
+ * Pallet `TokenGateway`'s storage queries
3319
+ **/
3320
+ tokenGateway: {
3321
+ /**
3322
+ * Assets supported by this instance of token gateway
3323
+ * A map of the local asset id to the token gateway asset id
3324
+ *
3325
+ * @param {number} arg
3326
+ * @param {Callback<H256 | undefined> =} callback
3327
+ **/
3328
+ supportedAssets: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
3329
+
3330
+ /**
3331
+ * Assets that originate from this chain
3332
+ *
3333
+ * @param {number} arg
3334
+ * @param {Callback<boolean> =} callback
3335
+ **/
3336
+ nativeAssets: GenericStorageQuery<Rv, (arg: number) => boolean, number>;
3337
+
3338
+ /**
3339
+ * Assets supported by this instance of token gateway
3340
+ * A map of the token gateway asset id to the local asset id
3341
+ *
3342
+ * @param {H256} arg
3343
+ * @param {Callback<number | undefined> =} callback
3344
+ **/
3345
+ localAssets: GenericStorageQuery<Rv, (arg: H256) => number | undefined, H256>;
3346
+
3347
+ /**
3348
+ * The decimals used by the EVM counterpart of this asset
3349
+ *
3350
+ * @param {[number, IsmpHostStateMachine]} arg
3351
+ * @param {Callback<number | undefined> =} callback
3352
+ **/
3353
+ precisions: GenericStorageQuery<
3354
+ Rv,
3355
+ (arg: [number, IsmpHostStateMachine]) => number | undefined,
3356
+ [number, IsmpHostStateMachine]
3357
+ >;
3358
+
3359
+ /**
3360
+ * The token gateway adresses on different chains
3361
+ *
3362
+ * @param {IsmpHostStateMachine} arg
3363
+ * @param {Callback<Bytes | undefined> =} callback
3364
+ **/
3365
+ tokenGatewayAddresses: GenericStorageQuery<
3366
+ Rv,
3367
+ (arg: IsmpHostStateMachine) => Bytes | undefined,
3368
+ IsmpHostStateMachine
3369
+ >;
3370
+
3371
+ /**
3372
+ * Generic pallet storage query
3373
+ **/
3374
+ [storage: string]: GenericStorageQuery<Rv>;
3375
+ };
3152
3376
  /**
3153
3377
  * Pallet `EmaOracle`'s storage queries
3154
3378
  **/
@@ -55,6 +55,13 @@ import type {
55
55
  XcmRuntimeApisConversionsError,
56
56
  HydradxTraitsOracleOraclePeriod,
57
57
  HydradxRuntimeEvmAaveTradeExecutorPoolData,
58
+ IsmpHostStateMachine,
59
+ IsmpEventsEvent,
60
+ IsmpConsensusStateMachineHeight,
61
+ IsmpConsensusStateMachineId,
62
+ IsmpRouterRequest,
63
+ IsmpRouterResponse,
64
+ CumulusPalletParachainSystemRelayChainState,
58
65
  } from './types.js';
59
66
 
60
67
  export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
@@ -348,6 +355,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
348
355
  **/
349
356
  freeBalance: GenericRuntimeApiMethod<Rv, (assetId: number, who: AccountId32Like) => Promise<bigint>>;
350
357
 
358
+ /**
359
+ *
360
+ * @callname: CurrenciesApi_minimum_balance
361
+ * @param {number} asset_id
362
+ **/
363
+ minimumBalance: GenericRuntimeApiMethod<Rv, (assetId: number) => Promise<bigint>>;
364
+
351
365
  /**
352
366
  * Generic runtime api call
353
367
  **/
@@ -934,6 +948,113 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
934
948
  **/
935
949
  [method: string]: GenericRuntimeApiMethod<Rv>;
936
950
  };
951
+ /**
952
+ * @runtimeapi: IsmpRuntimeApi - 0x0ebc8fd84ae20ada
953
+ **/
954
+ ismpRuntimeApi: {
955
+ /**
956
+ * Should return the host's state machine identifier
957
+ *
958
+ * @callname: IsmpRuntimeApi_host_state_machine
959
+ **/
960
+ hostStateMachine: GenericRuntimeApiMethod<Rv, () => Promise<IsmpHostStateMachine>>;
961
+
962
+ /**
963
+ * Fetch all ISMP events
964
+ *
965
+ * @callname: IsmpRuntimeApi_block_events
966
+ **/
967
+ blockEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<IsmpEventsEvent>>>;
968
+
969
+ /**
970
+ * Fetch all ISMP events and their extrinsic metadata
971
+ *
972
+ * @callname: IsmpRuntimeApi_block_events_with_metadata
973
+ **/
974
+ blockEventsWithMetadata: GenericRuntimeApiMethod<Rv, () => Promise<Array<[IsmpEventsEvent, number | undefined]>>>;
975
+
976
+ /**
977
+ * Return the scale encoded consensus state
978
+ *
979
+ * @callname: IsmpRuntimeApi_consensus_state
980
+ * @param {FixedBytes<4>} id
981
+ **/
982
+ consensusState: GenericRuntimeApiMethod<Rv, (id: FixedBytes<4>) => Promise<Bytes | undefined>>;
983
+
984
+ /**
985
+ * Return the timestamp this client was last updated in seconds
986
+ *
987
+ * @callname: IsmpRuntimeApi_state_machine_update_time
988
+ * @param {IsmpConsensusStateMachineHeight} id
989
+ **/
990
+ stateMachineUpdateTime: GenericRuntimeApiMethod<
991
+ Rv,
992
+ (id: IsmpConsensusStateMachineHeight) => Promise<bigint | undefined>
993
+ >;
994
+
995
+ /**
996
+ * Return the challenge period timestamp
997
+ *
998
+ * @callname: IsmpRuntimeApi_challenge_period
999
+ * @param {IsmpConsensusStateMachineId} id
1000
+ **/
1001
+ challengePeriod: GenericRuntimeApiMethod<Rv, (id: IsmpConsensusStateMachineId) => Promise<bigint | undefined>>;
1002
+
1003
+ /**
1004
+ * Return the latest height of the state machine
1005
+ *
1006
+ * @callname: IsmpRuntimeApi_latest_state_machine_height
1007
+ * @param {IsmpConsensusStateMachineId} id
1008
+ **/
1009
+ latestStateMachineHeight: GenericRuntimeApiMethod<
1010
+ Rv,
1011
+ (id: IsmpConsensusStateMachineId) => Promise<bigint | undefined>
1012
+ >;
1013
+
1014
+ /**
1015
+ * Fetch the requests for the given commitments.
1016
+ *
1017
+ * @callname: IsmpRuntimeApi_requests
1018
+ * @param {Array<H256>} request_commitments
1019
+ **/
1020
+ requests: GenericRuntimeApiMethod<Rv, (requestCommitments: Array<H256>) => Promise<Array<IsmpRouterRequest>>>;
1021
+
1022
+ /**
1023
+ * Fetch the responses for the given commitments.
1024
+ *
1025
+ * @callname: IsmpRuntimeApi_responses
1026
+ * @param {Array<H256>} response_commitments
1027
+ **/
1028
+ responses: GenericRuntimeApiMethod<Rv, (responseCommitments: Array<H256>) => Promise<Array<IsmpRouterResponse>>>;
1029
+
1030
+ /**
1031
+ * Generic runtime api call
1032
+ **/
1033
+ [method: string]: GenericRuntimeApiMethod<Rv>;
1034
+ };
1035
+ /**
1036
+ * @runtimeapi: IsmpParachainApi - 0x5d1df2fe7d4f6bc8
1037
+ **/
1038
+ ismpParachainApi: {
1039
+ /**
1040
+ * Return all the para_ids this runtime is interested in. Used by the inherent provider
1041
+ *
1042
+ * @callname: IsmpParachainApi_para_ids
1043
+ **/
1044
+ paraIds: GenericRuntimeApiMethod<Rv, () => Promise<Array<number>>>;
1045
+
1046
+ /**
1047
+ * Return the current relay chain state.
1048
+ *
1049
+ * @callname: IsmpParachainApi_current_relay_chain_state
1050
+ **/
1051
+ currentRelayChainState: GenericRuntimeApiMethod<Rv, () => Promise<CumulusPalletParachainSystemRelayChainState>>;
1052
+
1053
+ /**
1054
+ * Generic runtime api call
1055
+ **/
1056
+ [method: string]: GenericRuntimeApiMethod<Rv>;
1057
+ };
937
1058
  /**
938
1059
  * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
939
1060
  **/