@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
|
@@ -598,7 +598,10 @@ export type PalletSchedulerCall =
|
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
600
|
/**
|
|
601
|
-
* Cancel
|
|
601
|
+
* Cancel a scheduled task (named or anonymous), by providing the block it is scheduled for
|
|
602
|
+
* execution in, as well as the index of the task in that block's agenda.
|
|
603
|
+
*
|
|
604
|
+
* In the case of a named task, it will remove it from the lookup table as well.
|
|
602
605
|
**/
|
|
603
606
|
| { name: 'Cancel'; params: { when: number; index: number } }
|
|
604
607
|
/**
|
|
@@ -656,6 +659,8 @@ export type PalletSchedulerCall =
|
|
|
656
659
|
* clones of the original task. Their retry configuration will be derived from the
|
|
657
660
|
* original task's configuration, but will have a lower value for `remaining` than the
|
|
658
661
|
* original `total_retries`.
|
|
662
|
+
*
|
|
663
|
+
* This call **cannot** be used to set a retry configuration for a named task.
|
|
659
664
|
**/
|
|
660
665
|
| { name: 'SetRetry'; params: { task: [number, number]; retries: number; period: number } }
|
|
661
666
|
/**
|
|
@@ -671,6 +676,8 @@ export type PalletSchedulerCall =
|
|
|
671
676
|
* clones of the original task. Their retry configuration will be derived from the
|
|
672
677
|
* original task's configuration, but will have a lower value for `remaining` than the
|
|
673
678
|
* original `total_retries`.
|
|
679
|
+
*
|
|
680
|
+
* This is the only way to set a retry configuration for a named task.
|
|
674
681
|
**/
|
|
675
682
|
| { name: 'SetRetryNamed'; params: { id: FixedBytes<32>; retries: number; period: number } }
|
|
676
683
|
/**
|
|
@@ -696,7 +703,10 @@ export type PalletSchedulerCallLike =
|
|
|
696
703
|
};
|
|
697
704
|
}
|
|
698
705
|
/**
|
|
699
|
-
* Cancel
|
|
706
|
+
* Cancel a scheduled task (named or anonymous), by providing the block it is scheduled for
|
|
707
|
+
* execution in, as well as the index of the task in that block's agenda.
|
|
708
|
+
*
|
|
709
|
+
* In the case of a named task, it will remove it from the lookup table as well.
|
|
700
710
|
**/
|
|
701
711
|
| { name: 'Cancel'; params: { when: number; index: number } }
|
|
702
712
|
/**
|
|
@@ -754,6 +764,8 @@ export type PalletSchedulerCallLike =
|
|
|
754
764
|
* clones of the original task. Their retry configuration will be derived from the
|
|
755
765
|
* original task's configuration, but will have a lower value for `remaining` than the
|
|
756
766
|
* original `total_retries`.
|
|
767
|
+
*
|
|
768
|
+
* This call **cannot** be used to set a retry configuration for a named task.
|
|
757
769
|
**/
|
|
758
770
|
| { name: 'SetRetry'; params: { task: [number, number]; retries: number; period: number } }
|
|
759
771
|
/**
|
|
@@ -769,6 +781,8 @@ export type PalletSchedulerCallLike =
|
|
|
769
781
|
* clones of the original task. Their retry configuration will be derived from the
|
|
770
782
|
* original task's configuration, but will have a lower value for `remaining` than the
|
|
771
783
|
* original `total_retries`.
|
|
784
|
+
*
|
|
785
|
+
* This is the only way to set a retry configuration for a named task.
|
|
772
786
|
**/
|
|
773
787
|
| { name: 'SetRetryNamed'; params: { id: FixedBytes<32>; retries: number; period: number } }
|
|
774
788
|
/**
|
|
@@ -1408,14 +1422,16 @@ export type PalletCollatorSelectionCallLike =
|
|
|
1408
1422
|
export type PalletSessionCall =
|
|
1409
1423
|
/**
|
|
1410
1424
|
* Sets the session key(s) of the function caller to `keys`.
|
|
1425
|
+
*
|
|
1411
1426
|
* Allows an account to set its session key prior to becoming a validator.
|
|
1412
1427
|
* This doesn't take effect until the next session.
|
|
1413
1428
|
*
|
|
1414
|
-
* The dispatch origin of this function must be signed.
|
|
1415
|
-
*
|
|
1416
|
-
*
|
|
1417
|
-
* - `
|
|
1418
|
-
*
|
|
1429
|
+
* - `origin`: The dispatch origin of this function must be signed.
|
|
1430
|
+
* - `keys`: The new session keys to set. These are the public keys of all sessions keys
|
|
1431
|
+
* setup in the runtime.
|
|
1432
|
+
* - `proof`: The proof that `origin` has access to the private keys of `keys`. See
|
|
1433
|
+
* [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the
|
|
1434
|
+
* proof format.
|
|
1419
1435
|
**/
|
|
1420
1436
|
| { name: 'SetKeys'; params: { keys: AssetHubWestendRuntimeSessionKeys; proof: Bytes } }
|
|
1421
1437
|
/**
|
|
@@ -1427,24 +1443,22 @@ export type PalletSessionCall =
|
|
|
1427
1443
|
* convertible to a validator ID using the chain's typical addressing system (this usually
|
|
1428
1444
|
* means being a controller account) or directly convertible into a validator ID (which
|
|
1429
1445
|
* usually means being a stash account).
|
|
1430
|
-
*
|
|
1431
|
-
* ## Complexity
|
|
1432
|
-
* - `O(1)` in number of key types. Actual cost depends on the number of length of
|
|
1433
|
-
* `T::Keys::key_ids()` which is fixed.
|
|
1434
1446
|
**/
|
|
1435
1447
|
| { name: 'PurgeKeys' };
|
|
1436
1448
|
|
|
1437
1449
|
export type PalletSessionCallLike =
|
|
1438
1450
|
/**
|
|
1439
1451
|
* Sets the session key(s) of the function caller to `keys`.
|
|
1452
|
+
*
|
|
1440
1453
|
* Allows an account to set its session key prior to becoming a validator.
|
|
1441
1454
|
* This doesn't take effect until the next session.
|
|
1442
1455
|
*
|
|
1443
|
-
* The dispatch origin of this function must be signed.
|
|
1444
|
-
*
|
|
1445
|
-
*
|
|
1446
|
-
* - `
|
|
1447
|
-
*
|
|
1456
|
+
* - `origin`: The dispatch origin of this function must be signed.
|
|
1457
|
+
* - `keys`: The new session keys to set. These are the public keys of all sessions keys
|
|
1458
|
+
* setup in the runtime.
|
|
1459
|
+
* - `proof`: The proof that `origin` has access to the private keys of `keys`. See
|
|
1460
|
+
* [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the
|
|
1461
|
+
* proof format.
|
|
1448
1462
|
**/
|
|
1449
1463
|
| { name: 'SetKeys'; params: { keys: AssetHubWestendRuntimeSessionKeys; proof: BytesLike } }
|
|
1450
1464
|
/**
|
|
@@ -1456,10 +1470,6 @@ export type PalletSessionCallLike =
|
|
|
1456
1470
|
* convertible to a validator ID using the chain's typical addressing system (this usually
|
|
1457
1471
|
* means being a controller account) or directly convertible into a validator ID (which
|
|
1458
1472
|
* usually means being a stash account).
|
|
1459
|
-
*
|
|
1460
|
-
* ## Complexity
|
|
1461
|
-
* - `O(1)` in number of key types. Actual cost depends on the number of length of
|
|
1462
|
-
* `T::Keys::key_ids()` which is fixed.
|
|
1463
1473
|
**/
|
|
1464
1474
|
| { name: 'PurgeKeys' };
|
|
1465
1475
|
|
|
@@ -3444,7 +3454,9 @@ export type PalletMultisigCall =
|
|
|
3444
3454
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
3445
3455
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
3446
3456
|
*
|
|
3447
|
-
* If
|
|
3457
|
+
* **If the approval threshold is met (including the sender's approval), this will
|
|
3458
|
+
* immediately execute the call.** This is the only way to execute a multisig call -
|
|
3459
|
+
* `approve_as_multi` will never trigger execution.
|
|
3448
3460
|
*
|
|
3449
3461
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
3450
3462
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
@@ -3460,8 +3472,9 @@ export type PalletMultisigCall =
|
|
|
3460
3472
|
* transaction index) of the first approval transaction.
|
|
3461
3473
|
* - `call`: The call to be executed.
|
|
3462
3474
|
*
|
|
3463
|
-
* NOTE:
|
|
3464
|
-
* `approve_as_multi` instead, since it only requires a hash of the call
|
|
3475
|
+
* NOTE: For intermediate approvals (not the final approval), you should generally use
|
|
3476
|
+
* `approve_as_multi` instead, since it only requires a hash of the call and is more
|
|
3477
|
+
* efficient.
|
|
3465
3478
|
*
|
|
3466
3479
|
* Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
|
|
3467
3480
|
* on success, result is `Ok` and the result from the interior call, if it was executed,
|
|
@@ -3495,6 +3508,13 @@ export type PalletMultisigCall =
|
|
|
3495
3508
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
3496
3509
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
3497
3510
|
*
|
|
3511
|
+
* **This function will NEVER execute the call, even if the approval threshold is
|
|
3512
|
+
* reached.** It only registers approval. To actually execute the call, `as_multi` must
|
|
3513
|
+
* be called with the full call data by any of the signatories.
|
|
3514
|
+
*
|
|
3515
|
+
* This function is more efficient than `as_multi` for intermediate approvals since it
|
|
3516
|
+
* only requires the call hash, not the full call data.
|
|
3517
|
+
*
|
|
3498
3518
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
3499
3519
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
3500
3520
|
* is cancelled.
|
|
@@ -3509,7 +3529,8 @@ export type PalletMultisigCall =
|
|
|
3509
3529
|
* transaction index) of the first approval transaction.
|
|
3510
3530
|
* - `call_hash`: The hash of the call to be executed.
|
|
3511
3531
|
*
|
|
3512
|
-
* NOTE:
|
|
3532
|
+
* NOTE: To execute the call after approvals are gathered, any signatory must call
|
|
3533
|
+
* `as_multi` with the full call data. This function cannot execute the call.
|
|
3513
3534
|
*
|
|
3514
3535
|
* ## Complexity
|
|
3515
3536
|
* - `O(S)`.
|
|
@@ -3608,7 +3629,9 @@ export type PalletMultisigCallLike =
|
|
|
3608
3629
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
3609
3630
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
3610
3631
|
*
|
|
3611
|
-
* If
|
|
3632
|
+
* **If the approval threshold is met (including the sender's approval), this will
|
|
3633
|
+
* immediately execute the call.** This is the only way to execute a multisig call -
|
|
3634
|
+
* `approve_as_multi` will never trigger execution.
|
|
3612
3635
|
*
|
|
3613
3636
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
3614
3637
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
@@ -3624,8 +3647,9 @@ export type PalletMultisigCallLike =
|
|
|
3624
3647
|
* transaction index) of the first approval transaction.
|
|
3625
3648
|
* - `call`: The call to be executed.
|
|
3626
3649
|
*
|
|
3627
|
-
* NOTE:
|
|
3628
|
-
* `approve_as_multi` instead, since it only requires a hash of the call
|
|
3650
|
+
* NOTE: For intermediate approvals (not the final approval), you should generally use
|
|
3651
|
+
* `approve_as_multi` instead, since it only requires a hash of the call and is more
|
|
3652
|
+
* efficient.
|
|
3629
3653
|
*
|
|
3630
3654
|
* Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
|
|
3631
3655
|
* on success, result is `Ok` and the result from the interior call, if it was executed,
|
|
@@ -3659,6 +3683,13 @@ export type PalletMultisigCallLike =
|
|
|
3659
3683
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
3660
3684
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
3661
3685
|
*
|
|
3686
|
+
* **This function will NEVER execute the call, even if the approval threshold is
|
|
3687
|
+
* reached.** It only registers approval. To actually execute the call, `as_multi` must
|
|
3688
|
+
* be called with the full call data by any of the signatories.
|
|
3689
|
+
*
|
|
3690
|
+
* This function is more efficient than `as_multi` for intermediate approvals since it
|
|
3691
|
+
* only requires the call hash, not the full call data.
|
|
3692
|
+
*
|
|
3662
3693
|
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
3663
3694
|
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
3664
3695
|
* is cancelled.
|
|
@@ -3673,7 +3704,8 @@ export type PalletMultisigCallLike =
|
|
|
3673
3704
|
* transaction index) of the first approval transaction.
|
|
3674
3705
|
* - `call_hash`: The hash of the call to be executed.
|
|
3675
3706
|
*
|
|
3676
|
-
* NOTE:
|
|
3707
|
+
* NOTE: To execute the call after approvals are gathered, any signatory must call
|
|
3708
|
+
* `as_multi` with the full call data. This function cannot execute the call.
|
|
3677
3709
|
*
|
|
3678
3710
|
* ## Complexity
|
|
3679
3711
|
* - `O(S)`.
|
|
@@ -11585,12 +11617,6 @@ export type PalletStakingAsyncPalletCall =
|
|
|
11585
11617
|
* have enough blocks to get a result.
|
|
11586
11618
|
**/
|
|
11587
11619
|
| { name: 'ForceNewEra' }
|
|
11588
|
-
/**
|
|
11589
|
-
* Set the validators who cannot be slashed (if any).
|
|
11590
|
-
*
|
|
11591
|
-
* The dispatch origin must be Root.
|
|
11592
|
-
**/
|
|
11593
|
-
| { name: 'SetInvulnerables'; params: { invulnerables: Array<AccountId32> } }
|
|
11594
11620
|
/**
|
|
11595
11621
|
* Force a current staker to become completely unstaked, immediately.
|
|
11596
11622
|
*
|
|
@@ -12047,12 +12073,6 @@ export type PalletStakingAsyncPalletCallLike =
|
|
|
12047
12073
|
* have enough blocks to get a result.
|
|
12048
12074
|
**/
|
|
12049
12075
|
| { name: 'ForceNewEra' }
|
|
12050
|
-
/**
|
|
12051
|
-
* Set the validators who cannot be slashed (if any).
|
|
12052
|
-
*
|
|
12053
|
-
* The dispatch origin must be Root.
|
|
12054
|
-
**/
|
|
12055
|
-
| { name: 'SetInvulnerables'; params: { invulnerables: Array<AccountId32Like> } }
|
|
12056
12076
|
/**
|
|
12057
12077
|
* Force a current staker to become completely unstaked, immediately.
|
|
12058
12078
|
*
|
|
@@ -13240,16 +13260,17 @@ export type PalletStakingAsyncRcClientCall =
|
|
|
13240
13260
|
* Set session keys for a validator. Keys are validated on AssetHub and forwarded to RC.
|
|
13241
13261
|
*
|
|
13242
13262
|
* **Validation on AssetHub:**
|
|
13243
|
-
* Keys are decoded as `T::RelayChainSessionKeys` to ensure they match RC's expected
|
|
13244
|
-
* format.
|
|
13245
|
-
*
|
|
13263
|
+
* - Keys are decoded as `T::RelayChainSessionKeys` to ensure they match RC's expected
|
|
13264
|
+
* format.
|
|
13265
|
+
* - Ownership proof is validated using `OpaqueKeys::ownership_proof_is_valid`.
|
|
13266
|
+
*
|
|
13267
|
+
* If validation passes, only the validated keys are sent to RC (with empty proof),
|
|
13268
|
+
* since RC trusts AH's validation. This prevents malicious validators from bloating
|
|
13269
|
+
* the XCM queue with garbage data.
|
|
13246
13270
|
*
|
|
13247
13271
|
* This, combined with the enforcement of a high minimum validator bond, makes it
|
|
13248
13272
|
* reasonable not to require a deposit.
|
|
13249
13273
|
*
|
|
13250
|
-
* Note: Ownership proof validation requires PR #1739 which is not backported to
|
|
13251
|
-
* stable2512. The proof parameter will be added when that PR is backported.
|
|
13252
|
-
*
|
|
13253
13274
|
* **Fees:**
|
|
13254
13275
|
* The actual cost of this call is higher than what the weight-based fee estimate shows.
|
|
13255
13276
|
* In addition to the local transaction weight fee, the stash account is charged an XCM
|
|
@@ -13269,7 +13290,7 @@ export type PalletStakingAsyncRcClientCall =
|
|
|
13269
13290
|
* users on Asset Hub MUST call bond and validate BEFORE calling set_keys. Attempting to
|
|
13270
13291
|
* set keys before declaring intent to validate will fail with NotValidator.
|
|
13271
13292
|
**/
|
|
13272
|
-
| { name: 'SetKeys'; params: { keys: Bytes; maxDeliveryAndRemoteExecutionFee?: bigint | undefined } }
|
|
13293
|
+
| { name: 'SetKeys'; params: { keys: Bytes; proof: Bytes; maxDeliveryAndRemoteExecutionFee?: bigint | undefined } }
|
|
13273
13294
|
/**
|
|
13274
13295
|
* Remove session keys for a validator.
|
|
13275
13296
|
*
|
|
@@ -13310,16 +13331,17 @@ export type PalletStakingAsyncRcClientCallLike =
|
|
|
13310
13331
|
* Set session keys for a validator. Keys are validated on AssetHub and forwarded to RC.
|
|
13311
13332
|
*
|
|
13312
13333
|
* **Validation on AssetHub:**
|
|
13313
|
-
* Keys are decoded as `T::RelayChainSessionKeys` to ensure they match RC's expected
|
|
13314
|
-
* format.
|
|
13315
|
-
*
|
|
13334
|
+
* - Keys are decoded as `T::RelayChainSessionKeys` to ensure they match RC's expected
|
|
13335
|
+
* format.
|
|
13336
|
+
* - Ownership proof is validated using `OpaqueKeys::ownership_proof_is_valid`.
|
|
13337
|
+
*
|
|
13338
|
+
* If validation passes, only the validated keys are sent to RC (with empty proof),
|
|
13339
|
+
* since RC trusts AH's validation. This prevents malicious validators from bloating
|
|
13340
|
+
* the XCM queue with garbage data.
|
|
13316
13341
|
*
|
|
13317
13342
|
* This, combined with the enforcement of a high minimum validator bond, makes it
|
|
13318
13343
|
* reasonable not to require a deposit.
|
|
13319
13344
|
*
|
|
13320
|
-
* Note: Ownership proof validation requires PR #1739 which is not backported to
|
|
13321
|
-
* stable2512. The proof parameter will be added when that PR is backported.
|
|
13322
|
-
*
|
|
13323
13345
|
* **Fees:**
|
|
13324
13346
|
* The actual cost of this call is higher than what the weight-based fee estimate shows.
|
|
13325
13347
|
* In addition to the local transaction weight fee, the stash account is charged an XCM
|
|
@@ -13339,7 +13361,10 @@ export type PalletStakingAsyncRcClientCallLike =
|
|
|
13339
13361
|
* users on Asset Hub MUST call bond and validate BEFORE calling set_keys. Attempting to
|
|
13340
13362
|
* set keys before declaring intent to validate will fail with NotValidator.
|
|
13341
13363
|
**/
|
|
13342
|
-
| {
|
|
13364
|
+
| {
|
|
13365
|
+
name: 'SetKeys';
|
|
13366
|
+
params: { keys: BytesLike; proof: BytesLike; maxDeliveryAndRemoteExecutionFee?: bigint | undefined };
|
|
13367
|
+
}
|
|
13343
13368
|
/**
|
|
13344
13369
|
* Remove session keys for a validator.
|
|
13345
13370
|
*
|
|
@@ -17740,7 +17765,13 @@ export type PalletStakingAsyncPalletEvent =
|
|
|
17740
17765
|
|
|
17741
17766
|
export type PalletStakingAsyncForcing = 'NotForcing' | 'ForceNew' | 'ForceNone' | 'ForceAlways';
|
|
17742
17767
|
|
|
17743
|
-
export type PalletStakingAsyncPalletUnexpectedKind =
|
|
17768
|
+
export type PalletStakingAsyncPalletUnexpectedKind =
|
|
17769
|
+
| { type: 'EraDurationBoundExceeded' }
|
|
17770
|
+
| { type: 'UnknownValidatorActivation' }
|
|
17771
|
+
| {
|
|
17772
|
+
type: 'PagedElectionOutOfWeight';
|
|
17773
|
+
value: { page: number; required: SpWeightsWeightV2Weight; had: SpWeightsWeightV2Weight };
|
|
17774
|
+
};
|
|
17744
17775
|
|
|
17745
17776
|
/**
|
|
17746
17777
|
* Events of this pallet.
|
|
@@ -17979,13 +18010,32 @@ export type PalletElectionProviderMultiBlockEvent =
|
|
|
17979
18010
|
};
|
|
17980
18011
|
}
|
|
17981
18012
|
/**
|
|
17982
|
-
* Target snapshot creation failed
|
|
18013
|
+
* Target snapshot creation failed.
|
|
17983
18014
|
**/
|
|
17984
18015
|
| { name: 'UnexpectedTargetSnapshotFailed' }
|
|
17985
18016
|
/**
|
|
17986
|
-
* Voter snapshot creation failed
|
|
18017
|
+
* Voter snapshot creation failed.
|
|
18018
|
+
**/
|
|
18019
|
+
| { name: 'UnexpectedVoterSnapshotFailed' }
|
|
18020
|
+
/**
|
|
18021
|
+
* Phase transition could not proceed due to being out of weight.
|
|
18022
|
+
**/
|
|
18023
|
+
| {
|
|
18024
|
+
name: 'UnexpectedPhaseTransitionOutOfWeight';
|
|
18025
|
+
data: {
|
|
18026
|
+
from: PalletElectionProviderMultiBlockPhase;
|
|
18027
|
+
to: PalletElectionProviderMultiBlockPhase;
|
|
18028
|
+
required: SpWeightsWeightV2Weight;
|
|
18029
|
+
had: SpWeightsWeightV2Weight;
|
|
18030
|
+
};
|
|
18031
|
+
}
|
|
18032
|
+
/**
|
|
18033
|
+
* Phase transition could not even begin becaseu of being out of weight.
|
|
17987
18034
|
**/
|
|
17988
|
-
| {
|
|
18035
|
+
| {
|
|
18036
|
+
name: 'UnexpectedPhaseTransitionHalt';
|
|
18037
|
+
data: { required: SpWeightsWeightV2Weight; had: SpWeightsWeightV2Weight };
|
|
18038
|
+
};
|
|
17989
18039
|
|
|
17990
18040
|
/**
|
|
17991
18041
|
* The `Event` enum of this pallet
|
|
@@ -18655,7 +18705,10 @@ export type FrameSystemLimitsWeightsPerClass = {
|
|
|
18655
18705
|
reserved?: SpWeightsWeightV2Weight | undefined;
|
|
18656
18706
|
};
|
|
18657
18707
|
|
|
18658
|
-
export type FrameSystemLimitsBlockLength = {
|
|
18708
|
+
export type FrameSystemLimitsBlockLength = {
|
|
18709
|
+
max: FrameSupportDispatchPerDispatchClassU32;
|
|
18710
|
+
maxHeaderSize?: number | undefined;
|
|
18711
|
+
};
|
|
18659
18712
|
|
|
18660
18713
|
export type FrameSupportDispatchPerDispatchClassU32 = { normal: number; operational: number; mandatory: number };
|
|
18661
18714
|
|
|
@@ -18835,6 +18888,21 @@ export type PalletMigrationsError =
|
|
|
18835
18888
|
**/
|
|
18836
18889
|
'Ongoing';
|
|
18837
18890
|
|
|
18891
|
+
export type PalletMigrationsMbmIsOngoing = 'Yes' | 'No' | 'Stuck';
|
|
18892
|
+
|
|
18893
|
+
export type PalletMigrationsMbmProgress = {
|
|
18894
|
+
currentMigration: number;
|
|
18895
|
+
totalMigrations: number;
|
|
18896
|
+
currentMigrationSteps: number;
|
|
18897
|
+
currentMigrationMaxSteps?: number | undefined;
|
|
18898
|
+
};
|
|
18899
|
+
|
|
18900
|
+
export type PalletMigrationsMbmStatus = {
|
|
18901
|
+
ongoing: PalletMigrationsMbmIsOngoing;
|
|
18902
|
+
progress?: PalletMigrationsMbmProgress | undefined;
|
|
18903
|
+
prefixes: Array<Bytes>;
|
|
18904
|
+
};
|
|
18905
|
+
|
|
18838
18906
|
export type PalletPreimageOldRequestStatus =
|
|
18839
18907
|
| { type: 'Unrequested'; value: { deposit: [AccountId32, bigint]; len: number } }
|
|
18840
18908
|
| {
|
|
@@ -20545,6 +20613,7 @@ export type PalletReviveDebugDebugSettings = {
|
|
|
20545
20613
|
allowUnlimitedContractSize: boolean;
|
|
20546
20614
|
bypassEip3607: boolean;
|
|
20547
20615
|
pvmLogs: boolean;
|
|
20616
|
+
disableExecutionTracing: boolean;
|
|
20548
20617
|
};
|
|
20549
20618
|
|
|
20550
20619
|
/**
|
|
@@ -21409,6 +21478,10 @@ export type PalletStakingAsyncRcClientError =
|
|
|
21409
21478
|
* The session keys could not be decoded as the expected RelayChainSessionKeys type.
|
|
21410
21479
|
**/
|
|
21411
21480
|
| 'InvalidKeys'
|
|
21481
|
+
/**
|
|
21482
|
+
* Invalid ownership proof for the session keys.
|
|
21483
|
+
**/
|
|
21484
|
+
| 'InvalidProof'
|
|
21412
21485
|
/**
|
|
21413
21486
|
* Delivery fees exceeded the specified maximum.
|
|
21414
21487
|
**/
|
|
@@ -22041,6 +22114,8 @@ export type SpRuntimeTransactionValidityValidTransaction = {
|
|
|
22041
22114
|
propagate: boolean;
|
|
22042
22115
|
};
|
|
22043
22116
|
|
|
22117
|
+
export type SpSessionRuntimeApiOpaqueGeneratedSessionKeys = { keys: Bytes; proof: Bytes };
|
|
22118
|
+
|
|
22044
22119
|
export type PalletTransactionPaymentRuntimeDispatchInfo = {
|
|
22045
22120
|
weight: SpWeightsWeightV2Weight;
|
|
22046
22121
|
class: FrameSupportDispatchDispatchClass;
|
|
@@ -22186,7 +22261,8 @@ export type PalletRevivePrimitivesContractAccessError =
|
|
|
22186
22261
|
|
|
22187
22262
|
export type PalletReviveEvmApiDebugRpcTypesTracerType =
|
|
22188
22263
|
| { type: 'CallTracer'; value?: PalletReviveEvmApiDebugRpcTypesCallTracerConfig | undefined }
|
|
22189
|
-
| { type: 'PrestateTracer'; value?: PalletReviveEvmApiDebugRpcTypesPrestateTracerConfig | undefined }
|
|
22264
|
+
| { type: 'PrestateTracer'; value?: PalletReviveEvmApiDebugRpcTypesPrestateTracerConfig | undefined }
|
|
22265
|
+
| { type: 'ExecutionTracer'; value?: PalletReviveEvmApiDebugRpcTypesExecutionTracerConfig | undefined };
|
|
22190
22266
|
|
|
22191
22267
|
export type PalletReviveEvmApiDebugRpcTypesCallTracerConfig = { withLogs: boolean; onlyTopCall: boolean };
|
|
22192
22268
|
|
|
@@ -22196,14 +22272,25 @@ export type PalletReviveEvmApiDebugRpcTypesPrestateTracerConfig = {
|
|
|
22196
22272
|
disableCode: boolean;
|
|
22197
22273
|
};
|
|
22198
22274
|
|
|
22275
|
+
export type PalletReviveEvmApiDebugRpcTypesExecutionTracerConfig = {
|
|
22276
|
+
enableMemory: boolean;
|
|
22277
|
+
disableStack: boolean;
|
|
22278
|
+
disableStorage: boolean;
|
|
22279
|
+
enableReturnData: boolean;
|
|
22280
|
+
disableSyscallDetails: boolean;
|
|
22281
|
+
limit?: bigint | undefined;
|
|
22282
|
+
memoryWordLimit: number;
|
|
22283
|
+
};
|
|
22284
|
+
|
|
22199
22285
|
export type PalletReviveEvmApiDebugRpcTypesTrace =
|
|
22200
22286
|
| { type: 'Call'; value: PalletReviveEvmApiDebugRpcTypesCallTrace }
|
|
22201
|
-
| { type: 'Prestate'; value: PalletReviveEvmApiDebugRpcTypesPrestateTrace }
|
|
22287
|
+
| { type: 'Prestate'; value: PalletReviveEvmApiDebugRpcTypesPrestateTrace }
|
|
22288
|
+
| { type: 'Execution'; value: PalletReviveEvmApiDebugRpcTypesExecutionTrace };
|
|
22202
22289
|
|
|
22203
22290
|
export type PalletReviveEvmApiDebugRpcTypesCallTrace = {
|
|
22204
22291
|
from: H160;
|
|
22205
|
-
gas:
|
|
22206
|
-
gasUsed:
|
|
22292
|
+
gas: bigint;
|
|
22293
|
+
gasUsed: bigint;
|
|
22207
22294
|
to: H160;
|
|
22208
22295
|
input: PalletReviveEvmApiByteBytes;
|
|
22209
22296
|
output: PalletReviveEvmApiByteBytes;
|
|
@@ -22248,6 +22335,38 @@ export type PalletReviveEvmApiDebugRpcTypesPrestateTraceInfo = {
|
|
|
22248
22335
|
storage: Array<[PalletReviveEvmApiByteBytes, PalletReviveEvmApiByteBytes | undefined]>;
|
|
22249
22336
|
};
|
|
22250
22337
|
|
|
22338
|
+
export type PalletReviveEvmApiDebugRpcTypesExecutionTrace = {
|
|
22339
|
+
gas: bigint;
|
|
22340
|
+
weightConsumed: SpWeightsWeightV2Weight;
|
|
22341
|
+
baseCallWeight: SpWeightsWeightV2Weight;
|
|
22342
|
+
failed: boolean;
|
|
22343
|
+
returnValue: PalletReviveEvmApiByteBytes;
|
|
22344
|
+
structLogs: Array<PalletReviveEvmApiDebugRpcTypesExecutionStep>;
|
|
22345
|
+
};
|
|
22346
|
+
|
|
22347
|
+
export type PalletReviveEvmApiDebugRpcTypesExecutionStep = {
|
|
22348
|
+
gas: bigint;
|
|
22349
|
+
gasCost: bigint;
|
|
22350
|
+
weightCost: SpWeightsWeightV2Weight;
|
|
22351
|
+
depth: number;
|
|
22352
|
+
returnData: PalletReviveEvmApiByteBytes;
|
|
22353
|
+
error?: string | undefined;
|
|
22354
|
+
kind: PalletReviveEvmApiDebugRpcTypesExecutionStepKind;
|
|
22355
|
+
};
|
|
22356
|
+
|
|
22357
|
+
export type PalletReviveEvmApiDebugRpcTypesExecutionStepKind =
|
|
22358
|
+
| {
|
|
22359
|
+
type: 'EvmOpcode';
|
|
22360
|
+
value: {
|
|
22361
|
+
pc: number;
|
|
22362
|
+
op: number;
|
|
22363
|
+
stack: Array<PalletReviveEvmApiByteBytes>;
|
|
22364
|
+
memory: Array<PalletReviveEvmApiByteBytes>;
|
|
22365
|
+
storage?: Array<[PalletReviveEvmApiByteBytes, PalletReviveEvmApiByteBytes]> | undefined;
|
|
22366
|
+
};
|
|
22367
|
+
}
|
|
22368
|
+
| { type: 'PvmSyscall'; value: { op: number; args: Array<bigint>; returned?: bigint | undefined } };
|
|
22369
|
+
|
|
22251
22370
|
export type PalletRevivePrimitivesBalanceConversionError = 'Value' | 'Dust';
|
|
22252
22371
|
|
|
22253
22372
|
export type AssetHubWestendRuntimeRuntimeError =
|
|
@@ -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
|
AssetHubWestendRuntimeRuntimeCallLike,
|
|
7
10
|
AssetHubWestendRuntimeProxyType,
|
|
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
|
|
@@ -103,11 +103,13 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
103
103
|
blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* Total
|
|
106
|
+
* Total size (in bytes) of the current block.
|
|
107
|
+
*
|
|
108
|
+
* Tracks the size of the header and all extrinsics.
|
|
107
109
|
*
|
|
108
110
|
* @param {Callback<number | undefined> =} callback
|
|
109
111
|
**/
|
|
110
|
-
|
|
112
|
+
blockSize: GenericStorageQuery<() => number | undefined>;
|
|
111
113
|
|
|
112
114
|
/**
|
|
113
115
|
* Map of block numbers to block hashes.
|
|
@@ -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
|
PalletTransactionPaymentRuntimeDispatchInfo,
|
|
31
32
|
PalletTransactionPaymentFeeDetails,
|
|
@@ -47,10 +48,6 @@ import type {
|
|
|
47
48
|
XcmRuntimeApisAuthorizedAliasesError,
|
|
48
49
|
CumulusPrimitivesCoreCollationInfo,
|
|
49
50
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
50
|
-
SpStatementStoreRuntimeApiValidStatement,
|
|
51
|
-
SpStatementStoreRuntimeApiInvalidStatement,
|
|
52
|
-
SpStatementStoreRuntimeApiStatementSource,
|
|
53
|
-
SpStatementStoreStatement,
|
|
54
51
|
} from './types.js';
|
|
55
52
|
|
|
56
53
|
export interface RuntimeApis extends GenericRuntimeApis {
|
|
@@ -308,9 +305,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
308
305
|
* Returns the concatenated SCALE encoded public keys.
|
|
309
306
|
*
|
|
310
307
|
* @callname: SessionKeys_generate_session_keys
|
|
308
|
+
* @param {BytesLike} owner
|
|
311
309
|
* @param {BytesLike | undefined} seed
|
|
312
310
|
**/
|
|
313
|
-
generateSessionKeys: GenericRuntimeApiMethod<
|
|
311
|
+
generateSessionKeys: GenericRuntimeApiMethod<
|
|
312
|
+
(owner: BytesLike, seed?: BytesLike | undefined) => Promise<SpSessionRuntimeApiOpaqueGeneratedSessionKeys>
|
|
313
|
+
>;
|
|
314
314
|
|
|
315
315
|
/**
|
|
316
316
|
* Decode the given public session keys.
|
|
@@ -758,29 +758,6 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
758
758
|
**/
|
|
759
759
|
targetBlockRate: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
760
760
|
|
|
761
|
-
/**
|
|
762
|
-
* Generic runtime api call
|
|
763
|
-
**/
|
|
764
|
-
[method: string]: GenericRuntimeApiMethod;
|
|
765
|
-
};
|
|
766
|
-
/**
|
|
767
|
-
* @runtimeapi: ValidateStatement - 0xbe9fb0c91a8046cf
|
|
768
|
-
**/
|
|
769
|
-
validateStatement: {
|
|
770
|
-
/**
|
|
771
|
-
* Validate the statement.
|
|
772
|
-
*
|
|
773
|
-
* @callname: ValidateStatement_validate_statement
|
|
774
|
-
* @param {SpStatementStoreRuntimeApiStatementSource} source
|
|
775
|
-
* @param {SpStatementStoreStatement} statement
|
|
776
|
-
**/
|
|
777
|
-
validateStatement: GenericRuntimeApiMethod<
|
|
778
|
-
(
|
|
779
|
-
source: SpStatementStoreRuntimeApiStatementSource,
|
|
780
|
-
statement: SpStatementStoreStatement,
|
|
781
|
-
) => Promise<Result<SpStatementStoreRuntimeApiValidStatement, SpStatementStoreRuntimeApiInvalidStatement>>
|
|
782
|
-
>;
|
|
783
|
-
|
|
784
761
|
/**
|
|
785
762
|
* Generic runtime api call
|
|
786
763
|
**/
|