@dedot/chaintypes 0.265.0 → 0.267.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/kusama-asset-hub/consts.d.ts +26 -36
- package/kusama-asset-hub/errors.d.ts +50 -105
- package/kusama-asset-hub/events.d.ts +93 -229
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/query.d.ts +114 -112
- package/kusama-asset-hub/runtime.d.ts +29 -2
- package/kusama-asset-hub/tx.d.ts +32 -683
- package/kusama-asset-hub/types.d.ts +592 -1490
- package/kusama-asset-hub/view-functions.d.ts +38 -2
- package/kusama-people/consts.d.ts +2 -1
- package/kusama-people/index.d.ts +1 -1
- package/kusama-people/query.d.ts +45 -4
- package/kusama-people/runtime.d.ts +6 -2
- package/kusama-people/tx.d.ts +22 -13
- package/kusama-people/types.d.ts +84 -27
- package/kusama-people/view-functions.d.ts +42 -1
- package/package.json +2 -2
- package/paseo-hydration/consts.d.ts +0 -10
- package/paseo-hydration/errors.d.ts +57 -4
- package/paseo-hydration/events.d.ts +90 -14
- package/paseo-hydration/index.d.ts +1 -1
- package/paseo-hydration/query.d.ts +48 -0
- package/paseo-hydration/tx.d.ts +344 -1
- package/paseo-hydration/types.d.ts +11772 -11274
- package/paseo-hydration/view-functions.d.ts +32 -1
- package/polkadot/consts.d.ts +0 -9
- package/polkadot/errors.d.ts +25 -108
- package/polkadot/events.d.ts +0 -308
- package/polkadot/index.d.ts +3 -1
- package/polkadot/query.d.ts +82 -275
- package/polkadot/runtime.d.ts +73 -2
- package/polkadot/tx.d.ts +60 -375
- package/polkadot/types.d.ts +160 -908
- package/polkadot/view-functions.d.ts +0 -1
- package/polkadot-asset-hub/consts.d.ts +21 -31
- package/polkadot-asset-hub/errors.d.ts +50 -105
- package/polkadot-asset-hub/events.d.ts +93 -229
- package/polkadot-asset-hub/index.d.ts +1 -1
- package/polkadot-asset-hub/query.d.ts +114 -112
- package/polkadot-asset-hub/runtime.d.ts +29 -2
- package/polkadot-asset-hub/tx.d.ts +32 -647
- package/polkadot-asset-hub/types.d.ts +575 -1377
- package/polkadot-asset-hub/view-functions.d.ts +38 -2
- package/polkadot-people/consts.d.ts +2 -1
- package/polkadot-people/events.d.ts +20 -0
- package/polkadot-people/index.d.ts +3 -1
- package/polkadot-people/query.d.ts +45 -4
- package/polkadot-people/runtime.d.ts +6 -2
- package/polkadot-people/tx.d.ts +22 -13
- package/polkadot-people/types.d.ts +104 -28
- package/polkadot-people/view-functions.d.ts +38 -1
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainViewFunctions, GenericViewFunction } from 'dedot/types';
|
|
4
|
-
import type { AccountId32Like, Result } from 'dedot/codecs';
|
|
4
|
+
import type { Bytes, AccountId32Like, Result } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
|
+
PalletMigrationsMbmIsOngoing,
|
|
7
|
+
PalletMigrationsMbmProgress,
|
|
8
|
+
PalletMigrationsMbmStatus,
|
|
6
9
|
AssetHubKusamaRuntimeRuntimeCallLike,
|
|
7
10
|
AssetHubKusamaRuntimeProxyType,
|
|
8
11
|
PalletAssetsAssetDetails,
|
|
@@ -13,6 +16,40 @@ import type {
|
|
|
13
16
|
} from './types.js';
|
|
14
17
|
|
|
15
18
|
export interface ChainViewFunctions extends GenericChainViewFunctions {
|
|
19
|
+
/**
|
|
20
|
+
* Pallet `MultiBlockMigrations`'s view functions
|
|
21
|
+
**/
|
|
22
|
+
multiBlockMigrations: {
|
|
23
|
+
/**
|
|
24
|
+
* Returns the ongoing status of migrations.
|
|
25
|
+
**/
|
|
26
|
+
ongoingStatus: GenericViewFunction<() => Promise<PalletMigrationsMbmIsOngoing>>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Returns progress information about the current migration, if any.
|
|
30
|
+
*
|
|
31
|
+
* This function provides detailed information about the current migration's progress,
|
|
32
|
+
* including the number of steps completed and the maximum allowed steps.
|
|
33
|
+
**/
|
|
34
|
+
progress: GenericViewFunction<() => Promise<PalletMigrationsMbmProgress | undefined>>;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Returns the storage prefixes affected by the current migration.
|
|
38
|
+
*
|
|
39
|
+
* Can be empty if the migration does not know or there are no prefixes.
|
|
40
|
+
**/
|
|
41
|
+
affectedPrefixes: GenericViewFunction<() => Promise<Array<Bytes>>>;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Returns the comprehensive status of multi-block migrations.
|
|
45
|
+
**/
|
|
46
|
+
status: GenericViewFunction<() => Promise<PalletMigrationsMbmStatus>>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Generic pallet view function
|
|
50
|
+
**/
|
|
51
|
+
[name: string]: GenericViewFunction;
|
|
52
|
+
};
|
|
16
53
|
/**
|
|
17
54
|
* Pallet `Proxy`'s view functions
|
|
18
55
|
**/
|
|
@@ -237,7 +274,6 @@ export interface ChainViewFunctions extends GenericChainViewFunctions {
|
|
|
237
274
|
* Returns `(current, real_score)`, the former being the current score that this pallet is
|
|
238
275
|
* aware of, which may or may not be up to date, and the latter being the real score, as
|
|
239
276
|
* provided by
|
|
240
|
-
*
|
|
241
277
|
* If the two differ, it means this node is eligible for [`Call::rebag`].
|
|
242
278
|
*
|
|
243
279
|
* @param {AccountId32Like} who
|
|
@@ -275,7 +275,8 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
275
275
|
aura: {
|
|
276
276
|
/**
|
|
277
277
|
* The slot duration Aura should run with, expressed in milliseconds.
|
|
278
|
-
*
|
|
278
|
+
*
|
|
279
|
+
* The effective value of this type can be changed with a runtime upgrade.
|
|
279
280
|
*
|
|
280
281
|
* For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const.
|
|
281
282
|
**/
|
package/kusama-people/index.d.ts
CHANGED
package/kusama-people/query.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
FrameSystemLastRuntimeUpgradeInfo,
|
|
21
21
|
FrameSystemCodeUpgradeAuthorization,
|
|
22
22
|
SpWeightsWeightV2Weight,
|
|
23
|
+
CumulusPalletParachainSystemBlockWeightBlockWeightMode,
|
|
23
24
|
CumulusPalletParachainSystemUnincludedSegmentAncestor,
|
|
24
25
|
CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
|
|
25
26
|
PolkadotPrimitivesV9PersistedValidationData,
|
|
@@ -32,6 +33,7 @@ import type {
|
|
|
32
33
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
33
34
|
CumulusPalletParachainSystemParachainInherentInboundMessageId,
|
|
34
35
|
PolkadotCorePrimitivesOutboundHrmpMessage,
|
|
36
|
+
CumulusPalletParachainSystemPoVMessages,
|
|
35
37
|
PalletMigrationsMigrationCursor,
|
|
36
38
|
PalletBalancesAccountData,
|
|
37
39
|
PalletBalancesBalanceLock,
|
|
@@ -103,11 +105,13 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
103
105
|
blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
|
|
104
106
|
|
|
105
107
|
/**
|
|
106
|
-
* Total
|
|
108
|
+
* Total size (in bytes) of the current block.
|
|
109
|
+
*
|
|
110
|
+
* Tracks the size of the header and all extrinsics.
|
|
107
111
|
*
|
|
108
112
|
* @param {Callback<number | undefined> =} callback
|
|
109
113
|
**/
|
|
110
|
-
|
|
114
|
+
blockSize: GenericStorageQuery<() => number | undefined>;
|
|
111
115
|
|
|
112
116
|
/**
|
|
113
117
|
* Map of block numbers to block hashes.
|
|
@@ -190,6 +194,13 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
190
194
|
**/
|
|
191
195
|
lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
|
|
192
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Number of blocks till the pending code upgrade is applied.
|
|
199
|
+
*
|
|
200
|
+
* @param {Callback<number | undefined> =} callback
|
|
201
|
+
**/
|
|
202
|
+
blocksTillUpgrade: GenericStorageQuery<() => number | undefined>;
|
|
203
|
+
|
|
193
204
|
/**
|
|
194
205
|
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
195
206
|
*
|
|
@@ -241,6 +252,27 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
241
252
|
* Pallet `ParachainSystem`'s storage queries
|
|
242
253
|
**/
|
|
243
254
|
parachainSystem: {
|
|
255
|
+
/**
|
|
256
|
+
* The current block weight mode.
|
|
257
|
+
*
|
|
258
|
+
* This is used to determine what is the maximum allowed block weight, for more information see
|
|
259
|
+
* [`block_weight`].
|
|
260
|
+
*
|
|
261
|
+
* Killed in [`Self::on_initialize`] and set by the [`block_weight`] logic.
|
|
262
|
+
*
|
|
263
|
+
* @param {Callback<CumulusPalletParachainSystemBlockWeightBlockWeightMode | undefined> =} callback
|
|
264
|
+
**/
|
|
265
|
+
blockWeightMode: GenericStorageQuery<() => CumulusPalletParachainSystemBlockWeightBlockWeightMode | undefined>;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* The core count available to the parachain in the previous block.
|
|
269
|
+
*
|
|
270
|
+
* This is mainly used for offchain functionality to calculate the correct target block weight.
|
|
271
|
+
*
|
|
272
|
+
* @param {Callback<number | undefined> =} callback
|
|
273
|
+
**/
|
|
274
|
+
previousCoreCount: GenericStorageQuery<() => number | undefined>;
|
|
275
|
+
|
|
244
276
|
/**
|
|
245
277
|
* Latest included block descendants the runtime accepted. In other words, these are
|
|
246
278
|
* ancestors of the currently executing block which have not been included in the observed
|
|
@@ -269,8 +301,8 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
269
301
|
* applied.
|
|
270
302
|
*
|
|
271
303
|
* As soon as the relay chain gives us the go-ahead signal, we will overwrite the
|
|
272
|
-
* [`:
|
|
273
|
-
* with the new validation code. This concludes the upgrade process.
|
|
304
|
+
* [`:pending_code`][sp_core::storage::well_known_keys::PENDING_CODE] which will result the
|
|
305
|
+
* next block to be processed with the new validation code. This concludes the upgrade process.
|
|
274
306
|
*
|
|
275
307
|
* @param {Callback<Bytes> =} callback
|
|
276
308
|
**/
|
|
@@ -509,6 +541,15 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
509
541
|
**/
|
|
510
542
|
customValidationHeadData: GenericStorageQuery<() => Bytes | undefined>;
|
|
511
543
|
|
|
544
|
+
/**
|
|
545
|
+
* Tracks cumulative `UMP` and `HRMP` messages sent across blocks in the current `PoV`.
|
|
546
|
+
*
|
|
547
|
+
* Across different candidates/PoVs the budgets are tracked by [`AggregatedUnincludedSegment`].
|
|
548
|
+
*
|
|
549
|
+
* @param {Callback<CumulusPalletParachainSystemPoVMessages | undefined> =} callback
|
|
550
|
+
**/
|
|
551
|
+
poVMessagesTracker: GenericStorageQuery<() => CumulusPalletParachainSystemPoVMessages | undefined>;
|
|
552
|
+
|
|
512
553
|
/**
|
|
513
554
|
* Generic pallet storage query
|
|
514
555
|
**/
|
|
@@ -9,8 +9,8 @@ import type {
|
|
|
9
9
|
Result,
|
|
10
10
|
UncheckedExtrinsicLike,
|
|
11
11
|
UncheckedExtrinsic,
|
|
12
|
-
Bytes,
|
|
13
12
|
BytesLike,
|
|
13
|
+
Bytes,
|
|
14
14
|
AccountId32Like,
|
|
15
15
|
AccountId32,
|
|
16
16
|
} from 'dedot/codecs';
|
|
@@ -26,6 +26,7 @@ import type {
|
|
|
26
26
|
SpInherentsCheckInherentsResult,
|
|
27
27
|
SpRuntimeTransactionValidityValidTransaction,
|
|
28
28
|
SpRuntimeTransactionValidityTransactionSource,
|
|
29
|
+
SpSessionRuntimeApiOpaqueGeneratedSessionKeys,
|
|
29
30
|
SpCoreCryptoKeyTypeId,
|
|
30
31
|
FrameSupportViewFunctionsViewFunctionDispatchError,
|
|
31
32
|
FrameSupportViewFunctionsViewFunctionId,
|
|
@@ -306,9 +307,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
306
307
|
* Returns the concatenated SCALE encoded public keys.
|
|
307
308
|
*
|
|
308
309
|
* @callname: SessionKeys_generate_session_keys
|
|
310
|
+
* @param {BytesLike} owner
|
|
309
311
|
* @param {BytesLike | undefined} seed
|
|
310
312
|
**/
|
|
311
|
-
generateSessionKeys: GenericRuntimeApiMethod<
|
|
313
|
+
generateSessionKeys: GenericRuntimeApiMethod<
|
|
314
|
+
(owner: BytesLike, seed?: BytesLike | undefined) => Promise<SpSessionRuntimeApiOpaqueGeneratedSessionKeys>
|
|
315
|
+
>;
|
|
312
316
|
|
|
313
317
|
/**
|
|
314
318
|
* Decode the given public session keys.
|
package/kusama-people/tx.d.ts
CHANGED
|
@@ -975,14 +975,16 @@ export interface ChainTx<
|
|
|
975
975
|
session: {
|
|
976
976
|
/**
|
|
977
977
|
* Sets the session key(s) of the function caller to `keys`.
|
|
978
|
+
*
|
|
978
979
|
* Allows an account to set its session key prior to becoming a validator.
|
|
979
980
|
* This doesn't take effect until the next session.
|
|
980
981
|
*
|
|
981
|
-
* The dispatch origin of this function must be signed.
|
|
982
|
-
*
|
|
983
|
-
*
|
|
984
|
-
* - `
|
|
985
|
-
*
|
|
982
|
+
* - `origin`: The dispatch origin of this function must be signed.
|
|
983
|
+
* - `keys`: The new session keys to set. These are the public keys of all sessions keys
|
|
984
|
+
* setup in the runtime.
|
|
985
|
+
* - `proof`: The proof that `origin` has access to the private keys of `keys`. See
|
|
986
|
+
* [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the
|
|
987
|
+
* proof format.
|
|
986
988
|
*
|
|
987
989
|
* @param {PeopleKusamaRuntimeSessionKeys} keys
|
|
988
990
|
* @param {BytesLike} proof
|
|
@@ -1013,10 +1015,6 @@ export interface ChainTx<
|
|
|
1013
1015
|
* means being a controller account) or directly convertible into a validator ID (which
|
|
1014
1016
|
* usually means being a stash account).
|
|
1015
1017
|
*
|
|
1016
|
-
* ## Complexity
|
|
1017
|
-
* - `O(1)` in number of key types. Actual cost depends on the number of length of
|
|
1018
|
-
* `T::Keys::key_ids()` which is fixed.
|
|
1019
|
-
*
|
|
1020
1018
|
**/
|
|
1021
1019
|
purgeKeys: GenericTxCall<
|
|
1022
1020
|
() => ChainSubmittableExtrinsic<
|
|
@@ -2181,7 +2179,9 @@ export interface ChainTx<
|
|
|
2181
2179
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
2182
2180
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
2183
2181
|
*
|
|
2184
|
-
* If
|
|
2182
|
+
* **If the approval threshold is met (including the sender's approval), this will
|
|
2183
|
+
* immediately execute the call.** This is the only way to execute a multisig call -
|
|
2184
|
+
* `approve_as_multi` will never trigger execution.
|
|
2185
2185
|
*
|
|
2186
2186
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
2187
2187
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
@@ -2197,8 +2197,9 @@ export interface ChainTx<
|
|
|
2197
2197
|
* transaction index) of the first approval transaction.
|
|
2198
2198
|
* - `call`: The call to be executed.
|
|
2199
2199
|
*
|
|
2200
|
-
* NOTE:
|
|
2201
|
-
* `approve_as_multi` instead, since it only requires a hash of the call
|
|
2200
|
+
* NOTE: For intermediate approvals (not the final approval), you should generally use
|
|
2201
|
+
* `approve_as_multi` instead, since it only requires a hash of the call and is more
|
|
2202
|
+
* efficient.
|
|
2202
2203
|
*
|
|
2203
2204
|
* Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
|
|
2204
2205
|
* on success, result is `Ok` and the result from the interior call, if it was executed,
|
|
@@ -2253,6 +2254,13 @@ export interface ChainTx<
|
|
|
2253
2254
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
2254
2255
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
2255
2256
|
*
|
|
2257
|
+
* **This function will NEVER execute the call, even if the approval threshold is
|
|
2258
|
+
* reached.** It only registers approval. To actually execute the call, `as_multi` must
|
|
2259
|
+
* be called with the full call data by any of the signatories.
|
|
2260
|
+
*
|
|
2261
|
+
* This function is more efficient than `as_multi` for intermediate approvals since it
|
|
2262
|
+
* only requires the call hash, not the full call data.
|
|
2263
|
+
*
|
|
2256
2264
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
2257
2265
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
2258
2266
|
* is cancelled.
|
|
@@ -2267,7 +2275,8 @@ export interface ChainTx<
|
|
|
2267
2275
|
* transaction index) of the first approval transaction.
|
|
2268
2276
|
* - `call_hash`: The hash of the call to be executed.
|
|
2269
2277
|
*
|
|
2270
|
-
* NOTE:
|
|
2278
|
+
* NOTE: To execute the call after approvals are gathered, any signatory must call
|
|
2279
|
+
* `as_multi` with the full call data. This function cannot execute the call.
|
|
2271
2280
|
*
|
|
2272
2281
|
* ## Complexity
|
|
2273
2282
|
* - `O(S)`.
|
package/kusama-people/types.d.ts
CHANGED
|
@@ -788,14 +788,16 @@ export type PalletCollatorSelectionCallLike =
|
|
|
788
788
|
export type PalletSessionCall =
|
|
789
789
|
/**
|
|
790
790
|
* Sets the session key(s) of the function caller to `keys`.
|
|
791
|
+
*
|
|
791
792
|
* Allows an account to set its session key prior to becoming a validator.
|
|
792
793
|
* This doesn't take effect until the next session.
|
|
793
794
|
*
|
|
794
|
-
* The dispatch origin of this function must be signed.
|
|
795
|
-
*
|
|
796
|
-
*
|
|
797
|
-
* - `
|
|
798
|
-
*
|
|
795
|
+
* - `origin`: The dispatch origin of this function must be signed.
|
|
796
|
+
* - `keys`: The new session keys to set. These are the public keys of all sessions keys
|
|
797
|
+
* setup in the runtime.
|
|
798
|
+
* - `proof`: The proof that `origin` has access to the private keys of `keys`. See
|
|
799
|
+
* [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the
|
|
800
|
+
* proof format.
|
|
799
801
|
**/
|
|
800
802
|
| { name: 'SetKeys'; params: { keys: PeopleKusamaRuntimeSessionKeys; proof: Bytes } }
|
|
801
803
|
/**
|
|
@@ -807,24 +809,22 @@ export type PalletSessionCall =
|
|
|
807
809
|
* convertible to a validator ID using the chain's typical addressing system (this usually
|
|
808
810
|
* means being a controller account) or directly convertible into a validator ID (which
|
|
809
811
|
* usually means being a stash account).
|
|
810
|
-
*
|
|
811
|
-
* ## Complexity
|
|
812
|
-
* - `O(1)` in number of key types. Actual cost depends on the number of length of
|
|
813
|
-
* `T::Keys::key_ids()` which is fixed.
|
|
814
812
|
**/
|
|
815
813
|
| { name: 'PurgeKeys' };
|
|
816
814
|
|
|
817
815
|
export type PalletSessionCallLike =
|
|
818
816
|
/**
|
|
819
817
|
* Sets the session key(s) of the function caller to `keys`.
|
|
818
|
+
*
|
|
820
819
|
* Allows an account to set its session key prior to becoming a validator.
|
|
821
820
|
* This doesn't take effect until the next session.
|
|
822
821
|
*
|
|
823
|
-
* The dispatch origin of this function must be signed.
|
|
824
|
-
*
|
|
825
|
-
*
|
|
826
|
-
* - `
|
|
827
|
-
*
|
|
822
|
+
* - `origin`: The dispatch origin of this function must be signed.
|
|
823
|
+
* - `keys`: The new session keys to set. These are the public keys of all sessions keys
|
|
824
|
+
* setup in the runtime.
|
|
825
|
+
* - `proof`: The proof that `origin` has access to the private keys of `keys`. See
|
|
826
|
+
* [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the
|
|
827
|
+
* proof format.
|
|
828
828
|
**/
|
|
829
829
|
| { name: 'SetKeys'; params: { keys: PeopleKusamaRuntimeSessionKeys; proof: BytesLike } }
|
|
830
830
|
/**
|
|
@@ -836,10 +836,6 @@ export type PalletSessionCallLike =
|
|
|
836
836
|
* convertible to a validator ID using the chain's typical addressing system (this usually
|
|
837
837
|
* means being a controller account) or directly convertible into a validator ID (which
|
|
838
838
|
* usually means being a stash account).
|
|
839
|
-
*
|
|
840
|
-
* ## Complexity
|
|
841
|
-
* - `O(1)` in number of key types. Actual cost depends on the number of length of
|
|
842
|
-
* `T::Keys::key_ids()` which is fixed.
|
|
843
839
|
**/
|
|
844
840
|
| { name: 'PurgeKeys' };
|
|
845
841
|
|
|
@@ -2729,7 +2725,9 @@ export type PalletMultisigCall =
|
|
|
2729
2725
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
2730
2726
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
2731
2727
|
*
|
|
2732
|
-
* If
|
|
2728
|
+
* **If the approval threshold is met (including the sender's approval), this will
|
|
2729
|
+
* immediately execute the call.** This is the only way to execute a multisig call -
|
|
2730
|
+
* `approve_as_multi` will never trigger execution.
|
|
2733
2731
|
*
|
|
2734
2732
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
2735
2733
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
@@ -2745,8 +2743,9 @@ export type PalletMultisigCall =
|
|
|
2745
2743
|
* transaction index) of the first approval transaction.
|
|
2746
2744
|
* - `call`: The call to be executed.
|
|
2747
2745
|
*
|
|
2748
|
-
* NOTE:
|
|
2749
|
-
* `approve_as_multi` instead, since it only requires a hash of the call
|
|
2746
|
+
* NOTE: For intermediate approvals (not the final approval), you should generally use
|
|
2747
|
+
* `approve_as_multi` instead, since it only requires a hash of the call and is more
|
|
2748
|
+
* efficient.
|
|
2750
2749
|
*
|
|
2751
2750
|
* Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
|
|
2752
2751
|
* on success, result is `Ok` and the result from the interior call, if it was executed,
|
|
@@ -2780,6 +2779,13 @@ export type PalletMultisigCall =
|
|
|
2780
2779
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
2781
2780
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
2782
2781
|
*
|
|
2782
|
+
* **This function will NEVER execute the call, even if the approval threshold is
|
|
2783
|
+
* reached.** It only registers approval. To actually execute the call, `as_multi` must
|
|
2784
|
+
* be called with the full call data by any of the signatories.
|
|
2785
|
+
*
|
|
2786
|
+
* This function is more efficient than `as_multi` for intermediate approvals since it
|
|
2787
|
+
* only requires the call hash, not the full call data.
|
|
2788
|
+
*
|
|
2783
2789
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
2784
2790
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
2785
2791
|
* is cancelled.
|
|
@@ -2794,7 +2800,8 @@ export type PalletMultisigCall =
|
|
|
2794
2800
|
* transaction index) of the first approval transaction.
|
|
2795
2801
|
* - `call_hash`: The hash of the call to be executed.
|
|
2796
2802
|
*
|
|
2797
|
-
* NOTE:
|
|
2803
|
+
* NOTE: To execute the call after approvals are gathered, any signatory must call
|
|
2804
|
+
* `as_multi` with the full call data. This function cannot execute the call.
|
|
2798
2805
|
*
|
|
2799
2806
|
* ## Complexity
|
|
2800
2807
|
* - `O(S)`.
|
|
@@ -2893,7 +2900,9 @@ export type PalletMultisigCallLike =
|
|
|
2893
2900
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
2894
2901
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
2895
2902
|
*
|
|
2896
|
-
* If
|
|
2903
|
+
* **If the approval threshold is met (including the sender's approval), this will
|
|
2904
|
+
* immediately execute the call.** This is the only way to execute a multisig call -
|
|
2905
|
+
* `approve_as_multi` will never trigger execution.
|
|
2897
2906
|
*
|
|
2898
2907
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
2899
2908
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
@@ -2909,8 +2918,9 @@ export type PalletMultisigCallLike =
|
|
|
2909
2918
|
* transaction index) of the first approval transaction.
|
|
2910
2919
|
* - `call`: The call to be executed.
|
|
2911
2920
|
*
|
|
2912
|
-
* NOTE:
|
|
2913
|
-
* `approve_as_multi` instead, since it only requires a hash of the call
|
|
2921
|
+
* NOTE: For intermediate approvals (not the final approval), you should generally use
|
|
2922
|
+
* `approve_as_multi` instead, since it only requires a hash of the call and is more
|
|
2923
|
+
* efficient.
|
|
2914
2924
|
*
|
|
2915
2925
|
* Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
|
|
2916
2926
|
* on success, result is `Ok` and the result from the interior call, if it was executed,
|
|
@@ -2944,6 +2954,13 @@ export type PalletMultisigCallLike =
|
|
|
2944
2954
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
2945
2955
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
2946
2956
|
*
|
|
2957
|
+
* **This function will NEVER execute the call, even if the approval threshold is
|
|
2958
|
+
* reached.** It only registers approval. To actually execute the call, `as_multi` must
|
|
2959
|
+
* be called with the full call data by any of the signatories.
|
|
2960
|
+
*
|
|
2961
|
+
* This function is more efficient than `as_multi` for intermediate approvals since it
|
|
2962
|
+
* only requires the call hash, not the full call data.
|
|
2963
|
+
*
|
|
2947
2964
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
2948
2965
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
2949
2966
|
* is cancelled.
|
|
@@ -2958,7 +2975,8 @@ export type PalletMultisigCallLike =
|
|
|
2958
2975
|
* transaction index) of the first approval transaction.
|
|
2959
2976
|
* - `call_hash`: The hash of the call to be executed.
|
|
2960
2977
|
*
|
|
2961
|
-
* NOTE:
|
|
2978
|
+
* NOTE: To execute the call after approvals are gathered, any signatory must call
|
|
2979
|
+
* `as_multi` with the full call data. This function cannot execute the call.
|
|
2962
2980
|
*
|
|
2963
2981
|
* ## Complexity
|
|
2964
2982
|
* - `O(S)`.
|
|
@@ -5089,7 +5107,10 @@ export type FrameSystemLimitsWeightsPerClass = {
|
|
|
5089
5107
|
reserved?: SpWeightsWeightV2Weight | undefined;
|
|
5090
5108
|
};
|
|
5091
5109
|
|
|
5092
|
-
export type FrameSystemLimitsBlockLength = {
|
|
5110
|
+
export type FrameSystemLimitsBlockLength = {
|
|
5111
|
+
max: FrameSupportDispatchPerDispatchClassU32;
|
|
5112
|
+
maxHeaderSize?: number | undefined;
|
|
5113
|
+
};
|
|
5093
5114
|
|
|
5094
5115
|
export type FrameSupportDispatchPerDispatchClassU32 = { normal: number; operational: number; mandatory: number };
|
|
5095
5116
|
|
|
@@ -5156,6 +5177,14 @@ export type CumulusPalletWeightReclaimStorageWeightReclaim = [
|
|
|
5156
5177
|
FrameMetadataHashExtensionCheckMetadataHash,
|
|
5157
5178
|
];
|
|
5158
5179
|
|
|
5180
|
+
export type CumulusPalletParachainSystemBlockWeightBlockWeightMode =
|
|
5181
|
+
| { type: 'FullCore'; value: { context: number } }
|
|
5182
|
+
| {
|
|
5183
|
+
type: 'PotentialFullCore';
|
|
5184
|
+
value: { context: number; firstTransactionIndex?: number | undefined; targetWeight: SpWeightsWeightV2Weight };
|
|
5185
|
+
}
|
|
5186
|
+
| { type: 'FractionOfCore'; value: { context: number; firstTransactionIndex?: number | undefined } };
|
|
5187
|
+
|
|
5159
5188
|
export type CumulusPalletParachainSystemUnincludedSegmentAncestor = {
|
|
5160
5189
|
usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
|
|
5161
5190
|
paraHeadHash?: H256 | undefined;
|
|
@@ -5230,6 +5259,14 @@ export type PolkadotCorePrimitivesOutboundHrmpMessage = {
|
|
|
5230
5259
|
data: Bytes;
|
|
5231
5260
|
};
|
|
5232
5261
|
|
|
5262
|
+
export type CumulusPalletParachainSystemPoVMessages = {
|
|
5263
|
+
relayStorageRootOrHash: H256;
|
|
5264
|
+
coreSelector: number;
|
|
5265
|
+
bundleIndex: number;
|
|
5266
|
+
umpMsgCount: number;
|
|
5267
|
+
hrmpOutboundCount: number;
|
|
5268
|
+
};
|
|
5269
|
+
|
|
5233
5270
|
/**
|
|
5234
5271
|
* The `Error` enum of this pallet.
|
|
5235
5272
|
**/
|
|
@@ -5269,6 +5306,21 @@ export type PalletMigrationsError =
|
|
|
5269
5306
|
**/
|
|
5270
5307
|
'Ongoing';
|
|
5271
5308
|
|
|
5309
|
+
export type PalletMigrationsMbmIsOngoing = 'Yes' | 'No' | 'Stuck';
|
|
5310
|
+
|
|
5311
|
+
export type PalletMigrationsMbmProgress = {
|
|
5312
|
+
currentMigration: number;
|
|
5313
|
+
totalMigrations: number;
|
|
5314
|
+
currentMigrationSteps: number;
|
|
5315
|
+
currentMigrationMaxSteps?: number | undefined;
|
|
5316
|
+
};
|
|
5317
|
+
|
|
5318
|
+
export type PalletMigrationsMbmStatus = {
|
|
5319
|
+
ongoing: PalletMigrationsMbmIsOngoing;
|
|
5320
|
+
progress?: PalletMigrationsMbmProgress | undefined;
|
|
5321
|
+
prefixes: Array<Bytes>;
|
|
5322
|
+
};
|
|
5323
|
+
|
|
5272
5324
|
export type PalletBalancesBalanceLock = { id: FixedBytes<8>; amount: bigint; reasons: PalletBalancesReasons };
|
|
5273
5325
|
|
|
5274
5326
|
export type PalletBalancesReasons = 'Fee' | 'Misc' | 'All';
|
|
@@ -5452,10 +5504,13 @@ export type CumulusPalletXcmpQueueOutboundChannelDetails = {
|
|
|
5452
5504
|
signalsExist: boolean;
|
|
5453
5505
|
firstIndex: number;
|
|
5454
5506
|
lastIndex: number;
|
|
5507
|
+
flags: CumulusPalletXcmpQueueOutboundChannelFlags;
|
|
5455
5508
|
};
|
|
5456
5509
|
|
|
5457
5510
|
export type CumulusPalletXcmpQueueOutboundState = 'Ok' | 'Suspended';
|
|
5458
5511
|
|
|
5512
|
+
export type CumulusPalletXcmpQueueOutboundChannelFlags = { bits: number };
|
|
5513
|
+
|
|
5459
5514
|
export type CumulusPalletXcmpQueueQueueConfigData = {
|
|
5460
5515
|
suspendThreshold: number;
|
|
5461
5516
|
dropThreshold: number;
|
|
@@ -6080,6 +6135,8 @@ export type SpRuntimeTransactionValidityValidTransaction = {
|
|
|
6080
6135
|
propagate: boolean;
|
|
6081
6136
|
};
|
|
6082
6137
|
|
|
6138
|
+
export type SpSessionRuntimeApiOpaqueGeneratedSessionKeys = { keys: Bytes; proof: Bytes };
|
|
6139
|
+
|
|
6083
6140
|
export type FrameSupportViewFunctionsViewFunctionId = { prefix: FixedBytes<16>; suffix: FixedBytes<16> };
|
|
6084
6141
|
|
|
6085
6142
|
export type FrameSupportViewFunctionsViewFunctionDispatchError =
|
|
@@ -1,9 +1,50 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainViewFunctions, GenericViewFunction } from 'dedot/types';
|
|
4
|
-
import type {
|
|
4
|
+
import type { Bytes } from 'dedot/codecs';
|
|
5
|
+
import type {
|
|
6
|
+
PalletMigrationsMbmIsOngoing,
|
|
7
|
+
PalletMigrationsMbmProgress,
|
|
8
|
+
PalletMigrationsMbmStatus,
|
|
9
|
+
PeopleKusamaRuntimeRuntimeCallLike,
|
|
10
|
+
PeopleKusamaRuntimeProxyType,
|
|
11
|
+
} from './types.js';
|
|
5
12
|
|
|
6
13
|
export interface ChainViewFunctions extends GenericChainViewFunctions {
|
|
14
|
+
/**
|
|
15
|
+
* Pallet `MultiBlockMigrations`'s view functions
|
|
16
|
+
**/
|
|
17
|
+
multiBlockMigrations: {
|
|
18
|
+
/**
|
|
19
|
+
* Returns the ongoing status of migrations.
|
|
20
|
+
**/
|
|
21
|
+
ongoingStatus: GenericViewFunction<() => Promise<PalletMigrationsMbmIsOngoing>>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Returns progress information about the current migration, if any.
|
|
25
|
+
*
|
|
26
|
+
* This function provides detailed information about the current migration's progress,
|
|
27
|
+
* including the number of steps completed and the maximum allowed steps.
|
|
28
|
+
**/
|
|
29
|
+
progress: GenericViewFunction<() => Promise<PalletMigrationsMbmProgress | undefined>>;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Returns the storage prefixes affected by the current migration.
|
|
33
|
+
*
|
|
34
|
+
* Can be empty if the migration does not know or there are no prefixes.
|
|
35
|
+
**/
|
|
36
|
+
affectedPrefixes: GenericViewFunction<() => Promise<Array<Bytes>>>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Returns the comprehensive status of multi-block migrations.
|
|
40
|
+
**/
|
|
41
|
+
status: GenericViewFunction<() => Promise<PalletMigrationsMbmStatus>>;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Generic pallet view function
|
|
45
|
+
**/
|
|
46
|
+
[name: string]: GenericViewFunction;
|
|
47
|
+
};
|
|
7
48
|
/**
|
|
8
49
|
* Pallet `Proxy`'s view functions
|
|
9
50
|
**/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.267.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@dedot.dev>",
|
|
6
6
|
"homepage": "https://dedot.dev",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "dist"
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "9ccea0306ae5ec4941a330e7acf03620f60baa98",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
|
@@ -772,11 +772,6 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
772
772
|
nftCollectionId: bigint;
|
|
773
773
|
burnProtocolFee: Permill;
|
|
774
774
|
|
|
775
|
-
/**
|
|
776
|
-
* Destination account when hub asset is sold
|
|
777
|
-
**/
|
|
778
|
-
hubDestination: AccountId32;
|
|
779
|
-
|
|
780
775
|
/**
|
|
781
776
|
* Generic pallet constant
|
|
782
777
|
**/
|
|
@@ -1931,11 +1926,6 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1931
1926
|
* Pallet `EmaOracle`'s constants
|
|
1932
1927
|
**/
|
|
1933
1928
|
emaOracle: {
|
|
1934
|
-
/**
|
|
1935
|
-
* Maximum allowed percentage difference for bifrost oracle price update
|
|
1936
|
-
**/
|
|
1937
|
-
maxAllowedPriceDifference: Permill;
|
|
1938
|
-
|
|
1939
1929
|
/**
|
|
1940
1930
|
* Maximum number of unique oracle entries expected in one block.
|
|
1941
1931
|
**/
|