@dedot/chaintypes 0.239.0 → 0.240.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/westend/events.d.ts +10 -0
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +4 -2
- package/westend/runtime.d.ts +5 -1
- package/westend/tx.d.ts +30 -14
- package/westend/types.d.ts +90 -30
- package/westend/view-functions.d.ts +38 -2
- package/westend-asset-hub/consts.d.ts +1 -31
- package/westend-asset-hub/errors.d.ts +5 -0
- package/westend-asset-hub/events.d.ts +25 -2
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +4 -11
- package/westend-asset-hub/runtime.d.ts +6 -2
- package/westend-asset-hub/tx.d.ts +40 -41
- package/westend-asset-hub/types.d.ts +182 -63
- package/westend-asset-hub/view-functions.d.ts +38 -2
- package/westend-people/index.d.ts +1 -1
- package/westend-people/query.d.ts +4 -2
- package/westend-people/runtime.d.ts +6 -29
- package/westend-people/tx.d.ts +22 -13
- package/westend-people/types.d.ts +65 -49
- package/westend-people/view-functions.d.ts +42 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.240.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": "f1dae4ca3bada84d79074c557329f734c0d7c276",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
package/westend/events.d.ts
CHANGED
|
@@ -2689,6 +2689,16 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
2689
2689
|
{ stash: AccountId32; update: PalletStakingAsyncAhClientSessionKeysUpdate }
|
|
2690
2690
|
>;
|
|
2691
2691
|
|
|
2692
|
+
/**
|
|
2693
|
+
* Session key update from AssetHub failed on the relay chain.
|
|
2694
|
+
* Logged as an event for fail-safe observability.
|
|
2695
|
+
**/
|
|
2696
|
+
SessionKeysUpdateFailed: GenericPalletEvent<
|
|
2697
|
+
'StakingAhClient',
|
|
2698
|
+
'SessionKeysUpdateFailed',
|
|
2699
|
+
{ stash: AccountId32; update: PalletStakingAsyncAhClientSessionKeysUpdate; error: DispatchError }
|
|
2700
|
+
>;
|
|
2701
|
+
|
|
2692
2702
|
/**
|
|
2693
2703
|
* Generic pallet event
|
|
2694
2704
|
**/
|
package/westend/index.d.ts
CHANGED
package/westend/query.d.ts
CHANGED
|
@@ -188,11 +188,13 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
188
188
|
blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
|
-
* Total
|
|
191
|
+
* Total size (in bytes) of the current block.
|
|
192
|
+
*
|
|
193
|
+
* Tracks the size of the header and all extrinsics.
|
|
192
194
|
*
|
|
193
195
|
* @param {Callback<number | undefined> =} callback
|
|
194
196
|
**/
|
|
195
|
-
|
|
197
|
+
blockSize: GenericStorageQuery<() => number | undefined>;
|
|
196
198
|
|
|
197
199
|
/**
|
|
198
200
|
* Map of block numbers to block hashes.
|
package/westend/runtime.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ import type {
|
|
|
76
76
|
SpConsensusBabeAppPublic,
|
|
77
77
|
SpConsensusSlotsEquivocationProof,
|
|
78
78
|
SpAuthorityDiscoveryAppPublic,
|
|
79
|
+
SpSessionRuntimeApiOpaqueGeneratedSessionKeys,
|
|
79
80
|
SpCoreCryptoKeyTypeId,
|
|
80
81
|
PalletTransactionPaymentRuntimeDispatchInfo,
|
|
81
82
|
PalletTransactionPaymentFeeDetails,
|
|
@@ -1097,9 +1098,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1097
1098
|
* Returns the concatenated SCALE encoded public keys.
|
|
1098
1099
|
*
|
|
1099
1100
|
* @callname: SessionKeys_generate_session_keys
|
|
1101
|
+
* @param {BytesLike} owner
|
|
1100
1102
|
* @param {BytesLike | undefined} seed
|
|
1101
1103
|
**/
|
|
1102
|
-
generateSessionKeys: GenericRuntimeApiMethod<
|
|
1104
|
+
generateSessionKeys: GenericRuntimeApiMethod<
|
|
1105
|
+
(owner: BytesLike, seed?: BytesLike | undefined) => Promise<SpSessionRuntimeApiOpaqueGeneratedSessionKeys>
|
|
1106
|
+
>;
|
|
1103
1107
|
|
|
1104
1108
|
/**
|
|
1105
1109
|
* Decode the given public session keys.
|
package/westend/tx.d.ts
CHANGED
|
@@ -1935,14 +1935,16 @@ export interface ChainTx<
|
|
|
1935
1935
|
session: {
|
|
1936
1936
|
/**
|
|
1937
1937
|
* Sets the session key(s) of the function caller to `keys`.
|
|
1938
|
+
*
|
|
1938
1939
|
* Allows an account to set its session key prior to becoming a validator.
|
|
1939
1940
|
* This doesn't take effect until the next session.
|
|
1940
1941
|
*
|
|
1941
|
-
* The dispatch origin of this function must be signed.
|
|
1942
|
-
*
|
|
1943
|
-
*
|
|
1944
|
-
* - `
|
|
1945
|
-
*
|
|
1942
|
+
* - `origin`: The dispatch origin of this function must be signed.
|
|
1943
|
+
* - `keys`: The new session keys to set. These are the public keys of all sessions keys
|
|
1944
|
+
* setup in the runtime.
|
|
1945
|
+
* - `proof`: The proof that `origin` has access to the private keys of `keys`. See
|
|
1946
|
+
* [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the
|
|
1947
|
+
* proof format.
|
|
1946
1948
|
*
|
|
1947
1949
|
* @param {WestendRuntimeSessionKeys} keys
|
|
1948
1950
|
* @param {BytesLike} proof
|
|
@@ -1973,10 +1975,6 @@ export interface ChainTx<
|
|
|
1973
1975
|
* means being a controller account) or directly convertible into a validator ID (which
|
|
1974
1976
|
* usually means being a stash account).
|
|
1975
1977
|
*
|
|
1976
|
-
* ## Complexity
|
|
1977
|
-
* - `O(1)` in number of key types. Actual cost depends on the number of length of
|
|
1978
|
-
* `T::Keys::key_ids()` which is fixed.
|
|
1979
|
-
*
|
|
1980
1978
|
**/
|
|
1981
1979
|
purgeKeys: GenericTxCall<
|
|
1982
1980
|
() => ChainSubmittableExtrinsic<
|
|
@@ -3538,7 +3536,10 @@ export interface ChainTx<
|
|
|
3538
3536
|
>;
|
|
3539
3537
|
|
|
3540
3538
|
/**
|
|
3541
|
-
* Cancel
|
|
3539
|
+
* Cancel a scheduled task (named or anonymous), by providing the block it is scheduled for
|
|
3540
|
+
* execution in, as well as the index of the task in that block's agenda.
|
|
3541
|
+
*
|
|
3542
|
+
* In the case of a named task, it will remove it from the lookup table as well.
|
|
3542
3543
|
*
|
|
3543
3544
|
* @param {number} when
|
|
3544
3545
|
* @param {number} index
|
|
@@ -3690,6 +3691,8 @@ export interface ChainTx<
|
|
|
3690
3691
|
* original task's configuration, but will have a lower value for `remaining` than the
|
|
3691
3692
|
* original `total_retries`.
|
|
3692
3693
|
*
|
|
3694
|
+
* This call **cannot** be used to set a retry configuration for a named task.
|
|
3695
|
+
*
|
|
3693
3696
|
* @param {[number, number]} task
|
|
3694
3697
|
* @param {number} retries
|
|
3695
3698
|
* @param {number} period
|
|
@@ -3725,6 +3728,8 @@ export interface ChainTx<
|
|
|
3725
3728
|
* original task's configuration, but will have a lower value for `remaining` than the
|
|
3726
3729
|
* original `total_retries`.
|
|
3727
3730
|
*
|
|
3731
|
+
* This is the only way to set a retry configuration for a named task.
|
|
3732
|
+
*
|
|
3728
3733
|
* @param {FixedBytes<32>} id
|
|
3729
3734
|
* @param {number} retries
|
|
3730
3735
|
* @param {number} period
|
|
@@ -4437,7 +4442,9 @@ export interface ChainTx<
|
|
|
4437
4442
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
4438
4443
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
4439
4444
|
*
|
|
4440
|
-
* If
|
|
4445
|
+
* **If the approval threshold is met (including the sender's approval), this will
|
|
4446
|
+
* immediately execute the call.** This is the only way to execute a multisig call -
|
|
4447
|
+
* `approve_as_multi` will never trigger execution.
|
|
4441
4448
|
*
|
|
4442
4449
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
4443
4450
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
@@ -4453,8 +4460,9 @@ export interface ChainTx<
|
|
|
4453
4460
|
* transaction index) of the first approval transaction.
|
|
4454
4461
|
* - `call`: The call to be executed.
|
|
4455
4462
|
*
|
|
4456
|
-
* NOTE:
|
|
4457
|
-
* `approve_as_multi` instead, since it only requires a hash of the call
|
|
4463
|
+
* NOTE: For intermediate approvals (not the final approval), you should generally use
|
|
4464
|
+
* `approve_as_multi` instead, since it only requires a hash of the call and is more
|
|
4465
|
+
* efficient.
|
|
4458
4466
|
*
|
|
4459
4467
|
* Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
|
|
4460
4468
|
* on success, result is `Ok` and the result from the interior call, if it was executed,
|
|
@@ -4509,6 +4517,13 @@ export interface ChainTx<
|
|
|
4509
4517
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
4510
4518
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
4511
4519
|
*
|
|
4520
|
+
* **This function will NEVER execute the call, even if the approval threshold is
|
|
4521
|
+
* reached.** It only registers approval. To actually execute the call, `as_multi` must
|
|
4522
|
+
* be called with the full call data by any of the signatories.
|
|
4523
|
+
*
|
|
4524
|
+
* This function is more efficient than `as_multi` for intermediate approvals since it
|
|
4525
|
+
* only requires the call hash, not the full call data.
|
|
4526
|
+
*
|
|
4512
4527
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
4513
4528
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
4514
4529
|
* is cancelled.
|
|
@@ -4523,7 +4538,8 @@ export interface ChainTx<
|
|
|
4523
4538
|
* transaction index) of the first approval transaction.
|
|
4524
4539
|
* - `call_hash`: The hash of the call to be executed.
|
|
4525
4540
|
*
|
|
4526
|
-
* NOTE:
|
|
4541
|
+
* NOTE: To execute the call after approvals are gathered, any signatory must call
|
|
4542
|
+
* `as_multi` with the full call data. This function cannot execute the call.
|
|
4527
4543
|
*
|
|
4528
4544
|
* ## Complexity
|
|
4529
4545
|
* - `O(S)`.
|
package/westend/types.d.ts
CHANGED
|
@@ -1829,14 +1829,16 @@ export type WestendRuntimeDynamicParamsInflationUseAuctionSlots = {};
|
|
|
1829
1829
|
export type PalletSessionCall =
|
|
1830
1830
|
/**
|
|
1831
1831
|
* Sets the session key(s) of the function caller to `keys`.
|
|
1832
|
+
*
|
|
1832
1833
|
* Allows an account to set its session key prior to becoming a validator.
|
|
1833
1834
|
* This doesn't take effect until the next session.
|
|
1834
1835
|
*
|
|
1835
|
-
* The dispatch origin of this function must be signed.
|
|
1836
|
-
*
|
|
1837
|
-
*
|
|
1838
|
-
* - `
|
|
1839
|
-
*
|
|
1836
|
+
* - `origin`: The dispatch origin of this function must be signed.
|
|
1837
|
+
* - `keys`: The new session keys to set. These are the public keys of all sessions keys
|
|
1838
|
+
* setup in the runtime.
|
|
1839
|
+
* - `proof`: The proof that `origin` has access to the private keys of `keys`. See
|
|
1840
|
+
* [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the
|
|
1841
|
+
* proof format.
|
|
1840
1842
|
**/
|
|
1841
1843
|
| { name: 'SetKeys'; params: { keys: WestendRuntimeSessionKeys; proof: Bytes } }
|
|
1842
1844
|
/**
|
|
@@ -1848,24 +1850,22 @@ export type PalletSessionCall =
|
|
|
1848
1850
|
* convertible to a validator ID using the chain's typical addressing system (this usually
|
|
1849
1851
|
* means being a controller account) or directly convertible into a validator ID (which
|
|
1850
1852
|
* usually means being a stash account).
|
|
1851
|
-
*
|
|
1852
|
-
* ## Complexity
|
|
1853
|
-
* - `O(1)` in number of key types. Actual cost depends on the number of length of
|
|
1854
|
-
* `T::Keys::key_ids()` which is fixed.
|
|
1855
1853
|
**/
|
|
1856
1854
|
| { name: 'PurgeKeys' };
|
|
1857
1855
|
|
|
1858
1856
|
export type PalletSessionCallLike =
|
|
1859
1857
|
/**
|
|
1860
1858
|
* Sets the session key(s) of the function caller to `keys`.
|
|
1859
|
+
*
|
|
1861
1860
|
* Allows an account to set its session key prior to becoming a validator.
|
|
1862
1861
|
* This doesn't take effect until the next session.
|
|
1863
1862
|
*
|
|
1864
|
-
* The dispatch origin of this function must be signed.
|
|
1865
|
-
*
|
|
1866
|
-
*
|
|
1867
|
-
* - `
|
|
1868
|
-
*
|
|
1863
|
+
* - `origin`: The dispatch origin of this function must be signed.
|
|
1864
|
+
* - `keys`: The new session keys to set. These are the public keys of all sessions keys
|
|
1865
|
+
* setup in the runtime.
|
|
1866
|
+
* - `proof`: The proof that `origin` has access to the private keys of `keys`. See
|
|
1867
|
+
* [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the
|
|
1868
|
+
* proof format.
|
|
1869
1869
|
**/
|
|
1870
1870
|
| { name: 'SetKeys'; params: { keys: WestendRuntimeSessionKeys; proof: BytesLike } }
|
|
1871
1871
|
/**
|
|
@@ -1877,10 +1877,6 @@ export type PalletSessionCallLike =
|
|
|
1877
1877
|
* convertible to a validator ID using the chain's typical addressing system (this usually
|
|
1878
1878
|
* means being a controller account) or directly convertible into a validator ID (which
|
|
1879
1879
|
* usually means being a stash account).
|
|
1880
|
-
*
|
|
1881
|
-
* ## Complexity
|
|
1882
|
-
* - `O(1)` in number of key types. Actual cost depends on the number of length of
|
|
1883
|
-
* `T::Keys::key_ids()` which is fixed.
|
|
1884
1880
|
**/
|
|
1885
1881
|
| { name: 'PurgeKeys' };
|
|
1886
1882
|
|
|
@@ -3427,7 +3423,10 @@ export type PalletSchedulerCall =
|
|
|
3427
3423
|
};
|
|
3428
3424
|
}
|
|
3429
3425
|
/**
|
|
3430
|
-
* Cancel
|
|
3426
|
+
* Cancel a scheduled task (named or anonymous), by providing the block it is scheduled for
|
|
3427
|
+
* execution in, as well as the index of the task in that block's agenda.
|
|
3428
|
+
*
|
|
3429
|
+
* In the case of a named task, it will remove it from the lookup table as well.
|
|
3431
3430
|
**/
|
|
3432
3431
|
| { name: 'Cancel'; params: { when: number; index: number } }
|
|
3433
3432
|
/**
|
|
@@ -3485,6 +3484,8 @@ export type PalletSchedulerCall =
|
|
|
3485
3484
|
* clones of the original task. Their retry configuration will be derived from the
|
|
3486
3485
|
* original task's configuration, but will have a lower value for `remaining` than the
|
|
3487
3486
|
* original `total_retries`.
|
|
3487
|
+
*
|
|
3488
|
+
* This call **cannot** be used to set a retry configuration for a named task.
|
|
3488
3489
|
**/
|
|
3489
3490
|
| { name: 'SetRetry'; params: { task: [number, number]; retries: number; period: number } }
|
|
3490
3491
|
/**
|
|
@@ -3500,6 +3501,8 @@ export type PalletSchedulerCall =
|
|
|
3500
3501
|
* clones of the original task. Their retry configuration will be derived from the
|
|
3501
3502
|
* original task's configuration, but will have a lower value for `remaining` than the
|
|
3502
3503
|
* original `total_retries`.
|
|
3504
|
+
*
|
|
3505
|
+
* This is the only way to set a retry configuration for a named task.
|
|
3503
3506
|
**/
|
|
3504
3507
|
| { name: 'SetRetryNamed'; params: { id: FixedBytes<32>; retries: number; period: number } }
|
|
3505
3508
|
/**
|
|
@@ -3525,7 +3528,10 @@ export type PalletSchedulerCallLike =
|
|
|
3525
3528
|
};
|
|
3526
3529
|
}
|
|
3527
3530
|
/**
|
|
3528
|
-
* Cancel
|
|
3531
|
+
* Cancel a scheduled task (named or anonymous), by providing the block it is scheduled for
|
|
3532
|
+
* execution in, as well as the index of the task in that block's agenda.
|
|
3533
|
+
*
|
|
3534
|
+
* In the case of a named task, it will remove it from the lookup table as well.
|
|
3529
3535
|
**/
|
|
3530
3536
|
| { name: 'Cancel'; params: { when: number; index: number } }
|
|
3531
3537
|
/**
|
|
@@ -3583,6 +3589,8 @@ export type PalletSchedulerCallLike =
|
|
|
3583
3589
|
* clones of the original task. Their retry configuration will be derived from the
|
|
3584
3590
|
* original task's configuration, but will have a lower value for `remaining` than the
|
|
3585
3591
|
* original `total_retries`.
|
|
3592
|
+
*
|
|
3593
|
+
* This call **cannot** be used to set a retry configuration for a named task.
|
|
3586
3594
|
**/
|
|
3587
3595
|
| { name: 'SetRetry'; params: { task: [number, number]; retries: number; period: number } }
|
|
3588
3596
|
/**
|
|
@@ -3598,6 +3606,8 @@ export type PalletSchedulerCallLike =
|
|
|
3598
3606
|
* clones of the original task. Their retry configuration will be derived from the
|
|
3599
3607
|
* original task's configuration, but will have a lower value for `remaining` than the
|
|
3600
3608
|
* original `total_retries`.
|
|
3609
|
+
*
|
|
3610
|
+
* This is the only way to set a retry configuration for a named task.
|
|
3601
3611
|
**/
|
|
3602
3612
|
| { name: 'SetRetryNamed'; params: { id: FixedBytes<32>; retries: number; period: number } }
|
|
3603
3613
|
/**
|
|
@@ -4147,7 +4157,9 @@ export type PalletMultisigCall =
|
|
|
4147
4157
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
4148
4158
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
4149
4159
|
*
|
|
4150
|
-
* If
|
|
4160
|
+
* **If the approval threshold is met (including the sender's approval), this will
|
|
4161
|
+
* immediately execute the call.** This is the only way to execute a multisig call -
|
|
4162
|
+
* `approve_as_multi` will never trigger execution.
|
|
4151
4163
|
*
|
|
4152
4164
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
4153
4165
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
@@ -4163,8 +4175,9 @@ export type PalletMultisigCall =
|
|
|
4163
4175
|
* transaction index) of the first approval transaction.
|
|
4164
4176
|
* - `call`: The call to be executed.
|
|
4165
4177
|
*
|
|
4166
|
-
* NOTE:
|
|
4167
|
-
* `approve_as_multi` instead, since it only requires a hash of the call
|
|
4178
|
+
* NOTE: For intermediate approvals (not the final approval), you should generally use
|
|
4179
|
+
* `approve_as_multi` instead, since it only requires a hash of the call and is more
|
|
4180
|
+
* efficient.
|
|
4168
4181
|
*
|
|
4169
4182
|
* Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
|
|
4170
4183
|
* on success, result is `Ok` and the result from the interior call, if it was executed,
|
|
@@ -4198,6 +4211,13 @@ export type PalletMultisigCall =
|
|
|
4198
4211
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
4199
4212
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
4200
4213
|
*
|
|
4214
|
+
* **This function will NEVER execute the call, even if the approval threshold is
|
|
4215
|
+
* reached.** It only registers approval. To actually execute the call, `as_multi` must
|
|
4216
|
+
* be called with the full call data by any of the signatories.
|
|
4217
|
+
*
|
|
4218
|
+
* This function is more efficient than `as_multi` for intermediate approvals since it
|
|
4219
|
+
* only requires the call hash, not the full call data.
|
|
4220
|
+
*
|
|
4201
4221
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
4202
4222
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
4203
4223
|
* is cancelled.
|
|
@@ -4212,7 +4232,8 @@ export type PalletMultisigCall =
|
|
|
4212
4232
|
* transaction index) of the first approval transaction.
|
|
4213
4233
|
* - `call_hash`: The hash of the call to be executed.
|
|
4214
4234
|
*
|
|
4215
|
-
* NOTE:
|
|
4235
|
+
* NOTE: To execute the call after approvals are gathered, any signatory must call
|
|
4236
|
+
* `as_multi` with the full call data. This function cannot execute the call.
|
|
4216
4237
|
*
|
|
4217
4238
|
* ## Complexity
|
|
4218
4239
|
* - `O(S)`.
|
|
@@ -4311,7 +4332,9 @@ export type PalletMultisigCallLike =
|
|
|
4311
4332
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
4312
4333
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
4313
4334
|
*
|
|
4314
|
-
* If
|
|
4335
|
+
* **If the approval threshold is met (including the sender's approval), this will
|
|
4336
|
+
* immediately execute the call.** This is the only way to execute a multisig call -
|
|
4337
|
+
* `approve_as_multi` will never trigger execution.
|
|
4315
4338
|
*
|
|
4316
4339
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
4317
4340
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
@@ -4327,8 +4350,9 @@ export type PalletMultisigCallLike =
|
|
|
4327
4350
|
* transaction index) of the first approval transaction.
|
|
4328
4351
|
* - `call`: The call to be executed.
|
|
4329
4352
|
*
|
|
4330
|
-
* NOTE:
|
|
4331
|
-
* `approve_as_multi` instead, since it only requires a hash of the call
|
|
4353
|
+
* NOTE: For intermediate approvals (not the final approval), you should generally use
|
|
4354
|
+
* `approve_as_multi` instead, since it only requires a hash of the call and is more
|
|
4355
|
+
* efficient.
|
|
4332
4356
|
*
|
|
4333
4357
|
* Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
|
|
4334
4358
|
* on success, result is `Ok` and the result from the interior call, if it was executed,
|
|
@@ -4362,6 +4386,13 @@ export type PalletMultisigCallLike =
|
|
|
4362
4386
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
4363
4387
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
4364
4388
|
*
|
|
4389
|
+
* **This function will NEVER execute the call, even if the approval threshold is
|
|
4390
|
+
* reached.** It only registers approval. To actually execute the call, `as_multi` must
|
|
4391
|
+
* be called with the full call data by any of the signatories.
|
|
4392
|
+
*
|
|
4393
|
+
* This function is more efficient than `as_multi` for intermediate approvals since it
|
|
4394
|
+
* only requires the call hash, not the full call data.
|
|
4395
|
+
*
|
|
4365
4396
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
4366
4397
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
4367
4398
|
* is cancelled.
|
|
@@ -4376,7 +4407,8 @@ export type PalletMultisigCallLike =
|
|
|
4376
4407
|
* transaction index) of the first approval transaction.
|
|
4377
4408
|
* - `call_hash`: The hash of the call to be executed.
|
|
4378
4409
|
*
|
|
4379
|
-
* NOTE:
|
|
4410
|
+
* NOTE: To execute the call after approvals are gathered, any signatory must call
|
|
4411
|
+
* `as_multi` with the full call data. This function cannot execute the call.
|
|
4380
4412
|
*
|
|
4381
4413
|
* ## Complexity
|
|
4382
4414
|
* - `O(S)`.
|
|
@@ -12726,7 +12758,15 @@ export type PalletStakingAsyncAhClientEvent =
|
|
|
12726
12758
|
/**
|
|
12727
12759
|
* Session keys updated for a validator.
|
|
12728
12760
|
**/
|
|
12729
|
-
| { name: 'SessionKeysUpdated'; data: { stash: AccountId32; update: PalletStakingAsyncAhClientSessionKeysUpdate } }
|
|
12761
|
+
| { name: 'SessionKeysUpdated'; data: { stash: AccountId32; update: PalletStakingAsyncAhClientSessionKeysUpdate } }
|
|
12762
|
+
/**
|
|
12763
|
+
* Session key update from AssetHub failed on the relay chain.
|
|
12764
|
+
* Logged as an event for fail-safe observability.
|
|
12765
|
+
**/
|
|
12766
|
+
| {
|
|
12767
|
+
name: 'SessionKeysUpdateFailed';
|
|
12768
|
+
data: { stash: AccountId32; update: PalletStakingAsyncAhClientSessionKeysUpdate; error: DispatchError };
|
|
12769
|
+
};
|
|
12730
12770
|
|
|
12731
12771
|
export type PalletStakingAsyncAhClientUnexpectedKind =
|
|
12732
12772
|
| 'ReceivedValidatorSetWhilePassive'
|
|
@@ -13277,7 +13317,10 @@ export type FrameSystemLimitsWeightsPerClass = {
|
|
|
13277
13317
|
reserved?: SpWeightsWeightV2Weight | undefined;
|
|
13278
13318
|
};
|
|
13279
13319
|
|
|
13280
|
-
export type FrameSystemLimitsBlockLength = {
|
|
13320
|
+
export type FrameSystemLimitsBlockLength = {
|
|
13321
|
+
max: FrameSupportDispatchPerDispatchClassU32;
|
|
13322
|
+
maxHeaderSize?: number | undefined;
|
|
13323
|
+
};
|
|
13281
13324
|
|
|
13282
13325
|
export type FrameSupportDispatchPerDispatchClassU32 = { normal: number; operational: number; mandatory: number };
|
|
13283
13326
|
|
|
@@ -15887,6 +15930,21 @@ export type PalletMigrationsError =
|
|
|
15887
15930
|
**/
|
|
15888
15931
|
'Ongoing';
|
|
15889
15932
|
|
|
15933
|
+
export type PalletMigrationsMbmIsOngoing = 'Yes' | 'No' | 'Stuck';
|
|
15934
|
+
|
|
15935
|
+
export type PalletMigrationsMbmProgress = {
|
|
15936
|
+
currentMigration: number;
|
|
15937
|
+
totalMigrations: number;
|
|
15938
|
+
currentMigrationSteps: number;
|
|
15939
|
+
currentMigrationMaxSteps?: number | undefined;
|
|
15940
|
+
};
|
|
15941
|
+
|
|
15942
|
+
export type PalletMigrationsMbmStatus = {
|
|
15943
|
+
ongoing: PalletMigrationsMbmIsOngoing;
|
|
15944
|
+
progress?: PalletMigrationsMbmProgress | undefined;
|
|
15945
|
+
prefixes: Array<Bytes>;
|
|
15946
|
+
};
|
|
15947
|
+
|
|
15890
15948
|
export type PalletXcmQueryStatus =
|
|
15891
15949
|
| {
|
|
15892
15950
|
type: 'Pending';
|
|
@@ -16474,6 +16532,8 @@ export type SpConsensusBabeEpoch = {
|
|
|
16474
16532
|
|
|
16475
16533
|
export type SpConsensusBabeOpaqueKeyOwnershipProof = Bytes;
|
|
16476
16534
|
|
|
16535
|
+
export type SpSessionRuntimeApiOpaqueGeneratedSessionKeys = { keys: Bytes; proof: Bytes };
|
|
16536
|
+
|
|
16477
16537
|
export type PalletTransactionPaymentRuntimeDispatchInfo = {
|
|
16478
16538
|
weight: SpWeightsWeightV2Weight;
|
|
16479
16539
|
class: FrameSupportDispatchDispatchClass;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainViewFunctions, GenericViewFunction } from 'dedot/types';
|
|
4
|
-
import type { AccountId32Like } from 'dedot/codecs';
|
|
4
|
+
import type { AccountId32Like, Bytes } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
WestendRuntimeRuntimeCallLike,
|
|
7
7
|
WestendRuntimeProxyType,
|
|
8
8
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
9
|
+
PalletMigrationsMbmIsOngoing,
|
|
10
|
+
PalletMigrationsMbmProgress,
|
|
11
|
+
PalletMigrationsMbmStatus,
|
|
9
12
|
} from './types.js';
|
|
10
13
|
|
|
11
14
|
export interface ChainViewFunctions extends GenericChainViewFunctions {
|
|
@@ -48,7 +51,6 @@ export interface ChainViewFunctions extends GenericChainViewFunctions {
|
|
|
48
51
|
* Returns `(current, real_score)`, the former being the current score that this pallet is
|
|
49
52
|
* aware of, which may or may not be up to date, and the latter being the real score, as
|
|
50
53
|
* provided by
|
|
51
|
-
*
|
|
52
54
|
* If the two differ, it means this node is eligible for [`Call::rebag`].
|
|
53
55
|
*
|
|
54
56
|
* @param {AccountId32Like} who
|
|
@@ -71,6 +73,40 @@ export interface ChainViewFunctions extends GenericChainViewFunctions {
|
|
|
71
73
|
**/
|
|
72
74
|
removeUpgradeCooldownCost: GenericViewFunction<(para: PolkadotParachainPrimitivesPrimitivesId) => Promise<bigint>>;
|
|
73
75
|
|
|
76
|
+
/**
|
|
77
|
+
* Generic pallet view function
|
|
78
|
+
**/
|
|
79
|
+
[name: string]: GenericViewFunction;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Pallet `MultiBlockMigrations`'s view functions
|
|
83
|
+
**/
|
|
84
|
+
multiBlockMigrations: {
|
|
85
|
+
/**
|
|
86
|
+
* Returns the ongoing status of migrations.
|
|
87
|
+
**/
|
|
88
|
+
ongoingStatus: GenericViewFunction<() => Promise<PalletMigrationsMbmIsOngoing>>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Returns progress information about the current migration, if any.
|
|
92
|
+
*
|
|
93
|
+
* This function provides detailed information about the current migration's progress,
|
|
94
|
+
* including the number of steps completed and the maximum allowed steps.
|
|
95
|
+
**/
|
|
96
|
+
progress: GenericViewFunction<() => Promise<PalletMigrationsMbmProgress | undefined>>;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Returns the storage prefixes affected by the current migration.
|
|
100
|
+
*
|
|
101
|
+
* Can be empty if the migration does not know or there are no prefixes.
|
|
102
|
+
**/
|
|
103
|
+
affectedPrefixes: GenericViewFunction<() => Promise<Array<Bytes>>>;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Returns the comprehensive status of multi-block migrations.
|
|
107
|
+
**/
|
|
108
|
+
status: GenericViewFunction<() => Promise<PalletMigrationsMbmStatus>>;
|
|
109
|
+
|
|
74
110
|
/**
|
|
75
111
|
* Generic pallet view function
|
|
76
112
|
**/
|
|
@@ -1036,19 +1036,6 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1036
1036
|
**/
|
|
1037
1037
|
codeHashLockupDepositPercent: Perbill;
|
|
1038
1038
|
|
|
1039
|
-
/**
|
|
1040
|
-
* Make contract callable functions marked as `#[unstable]` available.
|
|
1041
|
-
*
|
|
1042
|
-
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
|
|
1043
|
-
* this is set to `true`. This is only meant for testnets and dev nodes in order to
|
|
1044
|
-
* experiment with new features.
|
|
1045
|
-
*
|
|
1046
|
-
* # Warning
|
|
1047
|
-
*
|
|
1048
|
-
* Do **not** set to `true` on productions chains.
|
|
1049
|
-
**/
|
|
1050
|
-
unsafeUnstableInterface: boolean;
|
|
1051
|
-
|
|
1052
1039
|
/**
|
|
1053
1040
|
* Allow EVM bytecode to be uploaded and instantiated.
|
|
1054
1041
|
**/
|
|
@@ -1274,11 +1261,6 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1274
1261
|
**/
|
|
1275
1262
|
maxUnlockingChunks: number;
|
|
1276
1263
|
|
|
1277
|
-
/**
|
|
1278
|
-
* Maximum number of invulnerable validators.
|
|
1279
|
-
**/
|
|
1280
|
-
maxInvulnerables: number;
|
|
1281
|
-
|
|
1282
1264
|
/**
|
|
1283
1265
|
* Maximum allowed era duration in milliseconds.
|
|
1284
1266
|
*
|
|
@@ -1427,11 +1409,6 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1427
1409
|
* Pallet `StakingRcClient`'s constants
|
|
1428
1410
|
**/
|
|
1429
1411
|
stakingRcClient: {
|
|
1430
|
-
/**
|
|
1431
|
-
* Maximum length of encoded session keys.
|
|
1432
|
-
**/
|
|
1433
|
-
maxSessionKeysLength: number;
|
|
1434
|
-
|
|
1435
1412
|
/**
|
|
1436
1413
|
* Generic pallet constant
|
|
1437
1414
|
**/
|
|
@@ -1455,8 +1432,7 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1455
1432
|
* Duration of the singed validation phase.
|
|
1456
1433
|
*
|
|
1457
1434
|
* The duration of this should not be less than `T::Pages`, and there is no point in it
|
|
1458
|
-
* being more than `SignedPhase::MaxSubmission::get() * T::Pages`.
|
|
1459
|
-
* it.
|
|
1435
|
+
* being more than `SignedPhase::MaxSubmission::get() * T::Pages`.
|
|
1460
1436
|
**/
|
|
1461
1437
|
signedValidationPhase: number;
|
|
1462
1438
|
|
|
@@ -1489,12 +1465,6 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1489
1465
|
* Pallet `MultiBlockElectionVerifier`'s constants
|
|
1490
1466
|
**/
|
|
1491
1467
|
multiBlockElectionVerifier: {
|
|
1492
|
-
/**
|
|
1493
|
-
* The minimum amount of improvement to the solution score that defines a solution as
|
|
1494
|
-
* "better".
|
|
1495
|
-
**/
|
|
1496
|
-
solutionImprovementThreshold: Perbill;
|
|
1497
|
-
|
|
1498
1468
|
/**
|
|
1499
1469
|
* Maximum number of backers, per winner, among all pages of an election.
|
|
1500
1470
|
*
|
|
@@ -2832,6 +2832,11 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
2832
2832
|
**/
|
|
2833
2833
|
InvalidKeys: GenericPalletError;
|
|
2834
2834
|
|
|
2835
|
+
/**
|
|
2836
|
+
* Invalid ownership proof for the session keys.
|
|
2837
|
+
**/
|
|
2838
|
+
InvalidProof: GenericPalletError;
|
|
2839
|
+
|
|
2835
2840
|
/**
|
|
2836
2841
|
* Delivery fees exceeded the specified maximum.
|
|
2837
2842
|
**/
|
|
@@ -3829,15 +3829,38 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
3829
3829
|
>;
|
|
3830
3830
|
|
|
3831
3831
|
/**
|
|
3832
|
-
* Target snapshot creation failed
|
|
3832
|
+
* Target snapshot creation failed.
|
|
3833
3833
|
**/
|
|
3834
3834
|
UnexpectedTargetSnapshotFailed: GenericPalletEvent<'MultiBlockElection', 'UnexpectedTargetSnapshotFailed', null>;
|
|
3835
3835
|
|
|
3836
3836
|
/**
|
|
3837
|
-
* Voter snapshot creation failed
|
|
3837
|
+
* Voter snapshot creation failed.
|
|
3838
3838
|
**/
|
|
3839
3839
|
UnexpectedVoterSnapshotFailed: GenericPalletEvent<'MultiBlockElection', 'UnexpectedVoterSnapshotFailed', null>;
|
|
3840
3840
|
|
|
3841
|
+
/**
|
|
3842
|
+
* Phase transition could not proceed due to being out of weight.
|
|
3843
|
+
**/
|
|
3844
|
+
UnexpectedPhaseTransitionOutOfWeight: GenericPalletEvent<
|
|
3845
|
+
'MultiBlockElection',
|
|
3846
|
+
'UnexpectedPhaseTransitionOutOfWeight',
|
|
3847
|
+
{
|
|
3848
|
+
from: PalletElectionProviderMultiBlockPhase;
|
|
3849
|
+
to: PalletElectionProviderMultiBlockPhase;
|
|
3850
|
+
required: SpWeightsWeightV2Weight;
|
|
3851
|
+
had: SpWeightsWeightV2Weight;
|
|
3852
|
+
}
|
|
3853
|
+
>;
|
|
3854
|
+
|
|
3855
|
+
/**
|
|
3856
|
+
* Phase transition could not even begin becaseu of being out of weight.
|
|
3857
|
+
**/
|
|
3858
|
+
UnexpectedPhaseTransitionHalt: GenericPalletEvent<
|
|
3859
|
+
'MultiBlockElection',
|
|
3860
|
+
'UnexpectedPhaseTransitionHalt',
|
|
3861
|
+
{ required: SpWeightsWeightV2Weight; had: SpWeightsWeightV2Weight }
|
|
3862
|
+
>;
|
|
3863
|
+
|
|
3841
3864
|
/**
|
|
3842
3865
|
* Generic pallet event
|
|
3843
3866
|
**/
|