@dedot/chaintypes 0.136.0 → 0.138.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/paseo-hydration/consts.d.ts +36 -0
- package/paseo-hydration/errors.d.ts +117 -0
- package/paseo-hydration/events.d.ts +415 -2
- package/paseo-hydration/index.d.ts +1 -1
- package/paseo-hydration/query.d.ts +245 -0
- package/paseo-hydration/runtime.d.ts +114 -0
- package/paseo-hydration/tx.d.ts +332 -4
- package/paseo-hydration/types.d.ts +821 -10
|
@@ -52,6 +52,7 @@ import type {
|
|
|
52
52
|
PalletStateTrieMigrationMigrationLimits,
|
|
53
53
|
PalletConvictionVotingVoteVoting,
|
|
54
54
|
PalletReferendaReferendumInfo,
|
|
55
|
+
EvmCoreErrorExitReason,
|
|
55
56
|
PalletAssetRegistryAssetDetails,
|
|
56
57
|
HydradxRuntimeXcmAssetLocation,
|
|
57
58
|
PalletClaimsEthereumAddress,
|
|
@@ -124,6 +125,11 @@ import type {
|
|
|
124
125
|
SpCoreCryptoKeyTypeId,
|
|
125
126
|
SpConsensusAuraSr25519AppSr25519Public,
|
|
126
127
|
SpConsensusSlotsSlot,
|
|
128
|
+
IsmpConsensusStateCommitment,
|
|
129
|
+
IsmpConsensusStateMachineHeight,
|
|
130
|
+
IsmpConsensusStateMachineId,
|
|
131
|
+
PalletHyperbridgeVersionedHostParams,
|
|
132
|
+
IsmpHostStateMachine,
|
|
127
133
|
PalletEmaOracleOracleEntry,
|
|
128
134
|
HydradxTraitsOracleOraclePeriod,
|
|
129
135
|
PalletBroadcastExecutionType,
|
|
@@ -1136,6 +1142,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1136
1142
|
**/
|
|
1137
1143
|
extraGas: GenericStorageQuery<Rv, () => bigint>;
|
|
1138
1144
|
|
|
1145
|
+
/**
|
|
1146
|
+
*
|
|
1147
|
+
* @param {Callback<EvmCoreErrorExitReason | undefined> =} callback
|
|
1148
|
+
**/
|
|
1149
|
+
lastEvmCallExitReason: GenericStorageQuery<Rv, () => EvmCoreErrorExitReason | undefined>;
|
|
1150
|
+
|
|
1139
1151
|
/**
|
|
1140
1152
|
* Generic pallet storage query
|
|
1141
1153
|
**/
|
|
@@ -3142,6 +3154,239 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3142
3154
|
**/
|
|
3143
3155
|
[storage: string]: GenericStorageQuery<Rv>;
|
|
3144
3156
|
};
|
|
3157
|
+
/**
|
|
3158
|
+
* Pallet `Ismp`'s storage queries
|
|
3159
|
+
**/
|
|
3160
|
+
ismp: {
|
|
3161
|
+
/**
|
|
3162
|
+
* Holds a map of state machine heights to their verified state commitments. These state
|
|
3163
|
+
* commitments end up here after they are successfully verified by a `ConsensusClient`
|
|
3164
|
+
*
|
|
3165
|
+
* @param {IsmpConsensusStateMachineHeight} arg
|
|
3166
|
+
* @param {Callback<IsmpConsensusStateCommitment | undefined> =} callback
|
|
3167
|
+
**/
|
|
3168
|
+
stateCommitments: GenericStorageQuery<
|
|
3169
|
+
Rv,
|
|
3170
|
+
(arg: IsmpConsensusStateMachineHeight) => IsmpConsensusStateCommitment | undefined,
|
|
3171
|
+
IsmpConsensusStateMachineHeight
|
|
3172
|
+
>;
|
|
3173
|
+
|
|
3174
|
+
/**
|
|
3175
|
+
* Holds a map of consensus state identifiers to their consensus state.
|
|
3176
|
+
*
|
|
3177
|
+
* @param {FixedBytes<4>} arg
|
|
3178
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
3179
|
+
**/
|
|
3180
|
+
consensusStates: GenericStorageQuery<Rv, (arg: FixedBytes<4>) => Bytes | undefined, FixedBytes<4>>;
|
|
3181
|
+
|
|
3182
|
+
/**
|
|
3183
|
+
* A mapping of consensus state identifier to it's associated consensus client identifier
|
|
3184
|
+
*
|
|
3185
|
+
* @param {FixedBytes<4>} arg
|
|
3186
|
+
* @param {Callback<FixedBytes<4> | undefined> =} callback
|
|
3187
|
+
**/
|
|
3188
|
+
consensusStateClient: GenericStorageQuery<Rv, (arg: FixedBytes<4>) => FixedBytes<4> | undefined, FixedBytes<4>>;
|
|
3189
|
+
|
|
3190
|
+
/**
|
|
3191
|
+
* A mapping of consensus state identifiers to their unbonding periods
|
|
3192
|
+
*
|
|
3193
|
+
* @param {FixedBytes<4>} arg
|
|
3194
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
3195
|
+
**/
|
|
3196
|
+
unbondingPeriod: GenericStorageQuery<Rv, (arg: FixedBytes<4>) => bigint | undefined, FixedBytes<4>>;
|
|
3197
|
+
|
|
3198
|
+
/**
|
|
3199
|
+
* A mapping of state machine Ids to their challenge periods
|
|
3200
|
+
*
|
|
3201
|
+
* @param {IsmpConsensusStateMachineId} arg
|
|
3202
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
3203
|
+
**/
|
|
3204
|
+
challengePeriod: GenericStorageQuery<
|
|
3205
|
+
Rv,
|
|
3206
|
+
(arg: IsmpConsensusStateMachineId) => bigint | undefined,
|
|
3207
|
+
IsmpConsensusStateMachineId
|
|
3208
|
+
>;
|
|
3209
|
+
|
|
3210
|
+
/**
|
|
3211
|
+
* Holds a map of consensus clients frozen due to byzantine
|
|
3212
|
+
* behaviour
|
|
3213
|
+
*
|
|
3214
|
+
* @param {FixedBytes<4>} arg
|
|
3215
|
+
* @param {Callback<boolean> =} callback
|
|
3216
|
+
**/
|
|
3217
|
+
frozenConsensusClients: GenericStorageQuery<Rv, (arg: FixedBytes<4>) => boolean, FixedBytes<4>>;
|
|
3218
|
+
|
|
3219
|
+
/**
|
|
3220
|
+
* The latest verified height for a state machine
|
|
3221
|
+
*
|
|
3222
|
+
* @param {IsmpConsensusStateMachineId} arg
|
|
3223
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
3224
|
+
**/
|
|
3225
|
+
latestStateMachineHeight: GenericStorageQuery<
|
|
3226
|
+
Rv,
|
|
3227
|
+
(arg: IsmpConsensusStateMachineId) => bigint | undefined,
|
|
3228
|
+
IsmpConsensusStateMachineId
|
|
3229
|
+
>;
|
|
3230
|
+
|
|
3231
|
+
/**
|
|
3232
|
+
* Holds the timestamp at which a consensus client was recently updated.
|
|
3233
|
+
* Used in ensuring that the configured challenge period elapses.
|
|
3234
|
+
*
|
|
3235
|
+
* @param {FixedBytes<4>} arg
|
|
3236
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
3237
|
+
**/
|
|
3238
|
+
consensusClientUpdateTime: GenericStorageQuery<Rv, (arg: FixedBytes<4>) => bigint | undefined, FixedBytes<4>>;
|
|
3239
|
+
|
|
3240
|
+
/**
|
|
3241
|
+
* Holds the timestamp at which a state machine height was updated.
|
|
3242
|
+
* Used in ensuring that the configured challenge period elapses.
|
|
3243
|
+
*
|
|
3244
|
+
* @param {IsmpConsensusStateMachineHeight} arg
|
|
3245
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
3246
|
+
**/
|
|
3247
|
+
stateMachineUpdateTime: GenericStorageQuery<
|
|
3248
|
+
Rv,
|
|
3249
|
+
(arg: IsmpConsensusStateMachineHeight) => bigint | undefined,
|
|
3250
|
+
IsmpConsensusStateMachineHeight
|
|
3251
|
+
>;
|
|
3252
|
+
|
|
3253
|
+
/**
|
|
3254
|
+
* Tracks requests that have been responded to
|
|
3255
|
+
* The key is the request commitment
|
|
3256
|
+
*
|
|
3257
|
+
* @param {H256} arg
|
|
3258
|
+
* @param {Callback<boolean> =} callback
|
|
3259
|
+
**/
|
|
3260
|
+
responded: GenericStorageQuery<Rv, (arg: H256) => boolean, H256>;
|
|
3261
|
+
|
|
3262
|
+
/**
|
|
3263
|
+
* Latest nonce for messages sent from this chain
|
|
3264
|
+
*
|
|
3265
|
+
* @param {Callback<bigint> =} callback
|
|
3266
|
+
**/
|
|
3267
|
+
nonce: GenericStorageQuery<Rv, () => bigint>;
|
|
3268
|
+
|
|
3269
|
+
/**
|
|
3270
|
+
* The child trie root of messages
|
|
3271
|
+
*
|
|
3272
|
+
* @param {Callback<H256> =} callback
|
|
3273
|
+
**/
|
|
3274
|
+
childTrieRoot: GenericStorageQuery<Rv, () => H256>;
|
|
3275
|
+
|
|
3276
|
+
/**
|
|
3277
|
+
* Generic pallet storage query
|
|
3278
|
+
**/
|
|
3279
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3280
|
+
};
|
|
3281
|
+
/**
|
|
3282
|
+
* Pallet `IsmpParachain`'s storage queries
|
|
3283
|
+
**/
|
|
3284
|
+
ismpParachain: {
|
|
3285
|
+
/**
|
|
3286
|
+
* Mapping of relay chain heights to it's state commitment. The state commitment of the parent
|
|
3287
|
+
* relay block is inserted at every block in `on_finalize`. This commitment is gotten from
|
|
3288
|
+
* parachain-system.
|
|
3289
|
+
*
|
|
3290
|
+
* @param {number} arg
|
|
3291
|
+
* @param {Callback<H256 | undefined> =} callback
|
|
3292
|
+
**/
|
|
3293
|
+
relayChainStateCommitments: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
|
|
3294
|
+
|
|
3295
|
+
/**
|
|
3296
|
+
* Tracks whether we've already seen the `update_parachain_consensus` inherent
|
|
3297
|
+
*
|
|
3298
|
+
* @param {Callback<boolean | undefined> =} callback
|
|
3299
|
+
**/
|
|
3300
|
+
consensusUpdated: GenericStorageQuery<Rv, () => boolean | undefined>;
|
|
3301
|
+
|
|
3302
|
+
/**
|
|
3303
|
+
* List of parachains that this state machine is interested in.
|
|
3304
|
+
*
|
|
3305
|
+
* @param {number} arg
|
|
3306
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
3307
|
+
**/
|
|
3308
|
+
parachains: GenericStorageQuery<Rv, (arg: number) => bigint | undefined, number>;
|
|
3309
|
+
|
|
3310
|
+
/**
|
|
3311
|
+
* Generic pallet storage query
|
|
3312
|
+
**/
|
|
3313
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3314
|
+
};
|
|
3315
|
+
/**
|
|
3316
|
+
* Pallet `Hyperbridge`'s storage queries
|
|
3317
|
+
**/
|
|
3318
|
+
hyperbridge: {
|
|
3319
|
+
/**
|
|
3320
|
+
* The host parameters of the pallet-hyperbridge.
|
|
3321
|
+
*
|
|
3322
|
+
* @param {Callback<PalletHyperbridgeVersionedHostParams> =} callback
|
|
3323
|
+
**/
|
|
3324
|
+
hostParams: GenericStorageQuery<Rv, () => PalletHyperbridgeVersionedHostParams>;
|
|
3325
|
+
|
|
3326
|
+
/**
|
|
3327
|
+
* Generic pallet storage query
|
|
3328
|
+
**/
|
|
3329
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3330
|
+
};
|
|
3331
|
+
/**
|
|
3332
|
+
* Pallet `TokenGateway`'s storage queries
|
|
3333
|
+
**/
|
|
3334
|
+
tokenGateway: {
|
|
3335
|
+
/**
|
|
3336
|
+
* Assets supported by this instance of token gateway
|
|
3337
|
+
* A map of the local asset id to the token gateway asset id
|
|
3338
|
+
*
|
|
3339
|
+
* @param {number} arg
|
|
3340
|
+
* @param {Callback<H256 | undefined> =} callback
|
|
3341
|
+
**/
|
|
3342
|
+
supportedAssets: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
|
|
3343
|
+
|
|
3344
|
+
/**
|
|
3345
|
+
* Assets that originate from this chain
|
|
3346
|
+
*
|
|
3347
|
+
* @param {number} arg
|
|
3348
|
+
* @param {Callback<boolean> =} callback
|
|
3349
|
+
**/
|
|
3350
|
+
nativeAssets: GenericStorageQuery<Rv, (arg: number) => boolean, number>;
|
|
3351
|
+
|
|
3352
|
+
/**
|
|
3353
|
+
* Assets supported by this instance of token gateway
|
|
3354
|
+
* A map of the token gateway asset id to the local asset id
|
|
3355
|
+
*
|
|
3356
|
+
* @param {H256} arg
|
|
3357
|
+
* @param {Callback<number | undefined> =} callback
|
|
3358
|
+
**/
|
|
3359
|
+
localAssets: GenericStorageQuery<Rv, (arg: H256) => number | undefined, H256>;
|
|
3360
|
+
|
|
3361
|
+
/**
|
|
3362
|
+
* The decimals used by the EVM counterpart of this asset
|
|
3363
|
+
*
|
|
3364
|
+
* @param {[number, IsmpHostStateMachine]} arg
|
|
3365
|
+
* @param {Callback<number | undefined> =} callback
|
|
3366
|
+
**/
|
|
3367
|
+
precisions: GenericStorageQuery<
|
|
3368
|
+
Rv,
|
|
3369
|
+
(arg: [number, IsmpHostStateMachine]) => number | undefined,
|
|
3370
|
+
[number, IsmpHostStateMachine]
|
|
3371
|
+
>;
|
|
3372
|
+
|
|
3373
|
+
/**
|
|
3374
|
+
* The token gateway adresses on different chains
|
|
3375
|
+
*
|
|
3376
|
+
* @param {IsmpHostStateMachine} arg
|
|
3377
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
3378
|
+
**/
|
|
3379
|
+
tokenGatewayAddresses: GenericStorageQuery<
|
|
3380
|
+
Rv,
|
|
3381
|
+
(arg: IsmpHostStateMachine) => Bytes | undefined,
|
|
3382
|
+
IsmpHostStateMachine
|
|
3383
|
+
>;
|
|
3384
|
+
|
|
3385
|
+
/**
|
|
3386
|
+
* Generic pallet storage query
|
|
3387
|
+
**/
|
|
3388
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3389
|
+
};
|
|
3145
3390
|
/**
|
|
3146
3391
|
* Pallet `EmaOracle`'s storage queries
|
|
3147
3392
|
**/
|
|
@@ -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> {
|
|
@@ -934,6 +941,113 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
934
941
|
**/
|
|
935
942
|
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
936
943
|
};
|
|
944
|
+
/**
|
|
945
|
+
* @runtimeapi: IsmpRuntimeApi - 0x0ebc8fd84ae20ada
|
|
946
|
+
**/
|
|
947
|
+
ismpRuntimeApi: {
|
|
948
|
+
/**
|
|
949
|
+
* Should return the host's state machine identifier
|
|
950
|
+
*
|
|
951
|
+
* @callname: IsmpRuntimeApi_host_state_machine
|
|
952
|
+
**/
|
|
953
|
+
hostStateMachine: GenericRuntimeApiMethod<Rv, () => Promise<IsmpHostStateMachine>>;
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Fetch all ISMP events
|
|
957
|
+
*
|
|
958
|
+
* @callname: IsmpRuntimeApi_block_events
|
|
959
|
+
**/
|
|
960
|
+
blockEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<IsmpEventsEvent>>>;
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Fetch all ISMP events and their extrinsic metadata
|
|
964
|
+
*
|
|
965
|
+
* @callname: IsmpRuntimeApi_block_events_with_metadata
|
|
966
|
+
**/
|
|
967
|
+
blockEventsWithMetadata: GenericRuntimeApiMethod<Rv, () => Promise<Array<[IsmpEventsEvent, number | undefined]>>>;
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* Return the scale encoded consensus state
|
|
971
|
+
*
|
|
972
|
+
* @callname: IsmpRuntimeApi_consensus_state
|
|
973
|
+
* @param {FixedBytes<4>} id
|
|
974
|
+
**/
|
|
975
|
+
consensusState: GenericRuntimeApiMethod<Rv, (id: FixedBytes<4>) => Promise<Bytes | undefined>>;
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* Return the timestamp this client was last updated in seconds
|
|
979
|
+
*
|
|
980
|
+
* @callname: IsmpRuntimeApi_state_machine_update_time
|
|
981
|
+
* @param {IsmpConsensusStateMachineHeight} id
|
|
982
|
+
**/
|
|
983
|
+
stateMachineUpdateTime: GenericRuntimeApiMethod<
|
|
984
|
+
Rv,
|
|
985
|
+
(id: IsmpConsensusStateMachineHeight) => Promise<bigint | undefined>
|
|
986
|
+
>;
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Return the challenge period timestamp
|
|
990
|
+
*
|
|
991
|
+
* @callname: IsmpRuntimeApi_challenge_period
|
|
992
|
+
* @param {IsmpConsensusStateMachineId} id
|
|
993
|
+
**/
|
|
994
|
+
challengePeriod: GenericRuntimeApiMethod<Rv, (id: IsmpConsensusStateMachineId) => Promise<bigint | undefined>>;
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Return the latest height of the state machine
|
|
998
|
+
*
|
|
999
|
+
* @callname: IsmpRuntimeApi_latest_state_machine_height
|
|
1000
|
+
* @param {IsmpConsensusStateMachineId} id
|
|
1001
|
+
**/
|
|
1002
|
+
latestStateMachineHeight: GenericRuntimeApiMethod<
|
|
1003
|
+
Rv,
|
|
1004
|
+
(id: IsmpConsensusStateMachineId) => Promise<bigint | undefined>
|
|
1005
|
+
>;
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Fetch the requests for the given commitments.
|
|
1009
|
+
*
|
|
1010
|
+
* @callname: IsmpRuntimeApi_requests
|
|
1011
|
+
* @param {Array<H256>} request_commitments
|
|
1012
|
+
**/
|
|
1013
|
+
requests: GenericRuntimeApiMethod<Rv, (requestCommitments: Array<H256>) => Promise<Array<IsmpRouterRequest>>>;
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Fetch the responses for the given commitments.
|
|
1017
|
+
*
|
|
1018
|
+
* @callname: IsmpRuntimeApi_responses
|
|
1019
|
+
* @param {Array<H256>} response_commitments
|
|
1020
|
+
**/
|
|
1021
|
+
responses: GenericRuntimeApiMethod<Rv, (responseCommitments: Array<H256>) => Promise<Array<IsmpRouterResponse>>>;
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* Generic runtime api call
|
|
1025
|
+
**/
|
|
1026
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
1027
|
+
};
|
|
1028
|
+
/**
|
|
1029
|
+
* @runtimeapi: IsmpParachainApi - 0x5d1df2fe7d4f6bc8
|
|
1030
|
+
**/
|
|
1031
|
+
ismpParachainApi: {
|
|
1032
|
+
/**
|
|
1033
|
+
* Return all the para_ids this runtime is interested in. Used by the inherent provider
|
|
1034
|
+
*
|
|
1035
|
+
* @callname: IsmpParachainApi_para_ids
|
|
1036
|
+
**/
|
|
1037
|
+
paraIds: GenericRuntimeApiMethod<Rv, () => Promise<Array<number>>>;
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* Return the current relay chain state.
|
|
1041
|
+
*
|
|
1042
|
+
* @callname: IsmpParachainApi_current_relay_chain_state
|
|
1043
|
+
**/
|
|
1044
|
+
currentRelayChainState: GenericRuntimeApiMethod<Rv, () => Promise<CumulusPalletParachainSystemRelayChainState>>;
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* Generic runtime api call
|
|
1048
|
+
**/
|
|
1049
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
1050
|
+
};
|
|
937
1051
|
/**
|
|
938
1052
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
939
1053
|
**/
|