@dedot/chaintypes 0.0.1-alpha.133 → 0.0.1-alpha.134

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.
Files changed (100) hide show
  1. package/aleph/consts.d.ts +1 -1
  2. package/aleph/errors.d.ts +1 -1
  3. package/aleph/events.d.ts +1 -1
  4. package/aleph/index.d.ts +1 -1
  5. package/aleph/json-rpc.d.ts +1 -1
  6. package/aleph/query.d.ts +1 -1
  7. package/aleph/runtime.d.ts +1 -1
  8. package/aleph/tx.d.ts +1 -1
  9. package/aleph/types.d.ts +117 -102
  10. package/astar/consts.d.ts +6 -1
  11. package/astar/errors.d.ts +6 -1
  12. package/astar/events.d.ts +2 -1
  13. package/astar/index.d.ts +1 -1
  14. package/astar/json-rpc.d.ts +1 -1
  15. package/astar/query.d.ts +1 -1
  16. package/astar/runtime.d.ts +7 -3
  17. package/astar/tx.d.ts +20 -1
  18. package/astar/types.d.ts +436 -405
  19. package/kusama/consts.d.ts +1 -1
  20. package/kusama/errors.d.ts +1 -1
  21. package/kusama/events.d.ts +1 -1
  22. package/kusama/index.d.ts +1 -1
  23. package/kusama/json-rpc.d.ts +1 -1
  24. package/kusama/query.d.ts +1 -1
  25. package/kusama/runtime.d.ts +1 -1
  26. package/kusama/tx.d.ts +1 -1
  27. package/kusama/types.d.ts +663 -638
  28. package/kusamaAssetHub/consts.d.ts +1 -1
  29. package/kusamaAssetHub/errors.d.ts +1 -1
  30. package/kusamaAssetHub/events.d.ts +1 -1
  31. package/kusamaAssetHub/index.d.ts +1 -1
  32. package/kusamaAssetHub/json-rpc.d.ts +1 -1
  33. package/kusamaAssetHub/query.d.ts +1 -1
  34. package/kusamaAssetHub/runtime.d.ts +1 -1
  35. package/kusamaAssetHub/tx.d.ts +1 -1
  36. package/kusamaAssetHub/types.d.ts +480 -467
  37. package/moonbeam/consts.d.ts +1 -1
  38. package/moonbeam/errors.d.ts +1 -1
  39. package/moonbeam/events.d.ts +1 -1
  40. package/moonbeam/index.d.ts +1 -1
  41. package/moonbeam/json-rpc.d.ts +1 -9
  42. package/moonbeam/query.d.ts +1 -1
  43. package/moonbeam/runtime.d.ts +1 -1
  44. package/moonbeam/tx.d.ts +1 -1
  45. package/moonbeam/types.d.ts +595 -582
  46. package/package.json +3 -3
  47. package/polkadot/consts.d.ts +1 -1
  48. package/polkadot/errors.d.ts +1 -1
  49. package/polkadot/events.d.ts +1 -1
  50. package/polkadot/index.d.ts +1 -1
  51. package/polkadot/json-rpc.d.ts +1 -1
  52. package/polkadot/query.d.ts +1 -1
  53. package/polkadot/runtime.d.ts +1 -1
  54. package/polkadot/tx.d.ts +1 -1
  55. package/polkadot/types.d.ts +647 -622
  56. package/polkadotAssetHub/consts.d.ts +1 -1
  57. package/polkadotAssetHub/errors.d.ts +1 -1
  58. package/polkadotAssetHub/events.d.ts +1 -1
  59. package/polkadotAssetHub/index.d.ts +1 -1
  60. package/polkadotAssetHub/json-rpc.d.ts +1 -1
  61. package/polkadotAssetHub/query.d.ts +1 -1
  62. package/polkadotAssetHub/runtime.d.ts +1 -1
  63. package/polkadotAssetHub/tx.d.ts +1 -1
  64. package/polkadotAssetHub/types.d.ts +477 -464
  65. package/rococo/consts.d.ts +1 -1
  66. package/rococo/errors.d.ts +1 -1
  67. package/rococo/events.d.ts +1 -1
  68. package/rococo/index.d.ts +1 -1
  69. package/rococo/json-rpc.d.ts +1 -1
  70. package/rococo/query.d.ts +1 -1
  71. package/rococo/runtime.d.ts +1 -1
  72. package/rococo/tx.d.ts +1 -1
  73. package/rococo/types.d.ts +619 -606
  74. package/rococoAssetHub/consts.d.ts +1 -1
  75. package/rococoAssetHub/errors.d.ts +1 -1
  76. package/rococoAssetHub/events.d.ts +1 -1
  77. package/rococoAssetHub/index.d.ts +1 -1
  78. package/rococoAssetHub/json-rpc.d.ts +1 -1
  79. package/rococoAssetHub/query.d.ts +1 -1
  80. package/rococoAssetHub/runtime.d.ts +1 -1
  81. package/rococoAssetHub/tx.d.ts +1 -1
  82. package/rococoAssetHub/types.d.ts +480 -467
  83. package/substrate/consts.d.ts +1 -1
  84. package/substrate/errors.d.ts +1 -1
  85. package/substrate/events.d.ts +1 -1
  86. package/substrate/index.d.ts +1 -1
  87. package/substrate/json-rpc.d.ts +1 -1
  88. package/substrate/query.d.ts +1 -1
  89. package/substrate/runtime.d.ts +1 -1
  90. package/substrate/tx.d.ts +1 -1
  91. package/substrate/types.d.ts +261 -246
  92. package/westendAssetHub/consts.d.ts +1 -1
  93. package/westendAssetHub/errors.d.ts +1 -1
  94. package/westendAssetHub/events.d.ts +1 -1
  95. package/westendAssetHub/index.d.ts +1 -1
  96. package/westendAssetHub/json-rpc.d.ts +1 -1
  97. package/westendAssetHub/query.d.ts +1 -1
  98. package/westendAssetHub/runtime.d.ts +1 -1
  99. package/westendAssetHub/tx.d.ts +1 -1
  100. package/westendAssetHub/types.d.ts +485 -472
package/aleph/consts.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainConsts, RpcVersion } from 'dedot/types';
4
4
  import type { RuntimeVersion, Permill, Perbill } from 'dedot/codecs';
package/aleph/errors.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainErrors, GenericPalletError, RpcVersion } from 'dedot/types';
4
4
 
package/aleph/events.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types';
4
4
  import type { DispatchInfo, DispatchError, AccountId32, H256, FixedBytes, Result, Perbill, Bytes } from 'dedot/codecs';
package/aleph/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type { GenericSubstrateApi, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types';
4
4
  import { ChainConsts } from './consts';
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type { GenericJsonRpcApis, RpcVersion } from 'dedot/types';
4
4
  import type { JsonRpcApis } from 'dedot/types/json-rpc';
package/aleph/query.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainStorage, GenericStorageQuery, Callback, RpcVersion } from 'dedot/types';
4
4
  import type {
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types';
4
4
  import type {
package/aleph/tx.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type {
4
4
  GenericChainTx,
package/aleph/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type {
4
4
  Phase,
@@ -327,11 +327,11 @@ export type PalletStakingPalletEvent =
327
327
  | { name: 'ForceEra'; data: { mode: PalletStakingForcing } };
328
328
 
329
329
  export type PalletStakingRewardDestination =
330
- | { tag: 'Staked' }
331
- | { tag: 'Stash' }
332
- | { tag: 'Controller' }
333
- | { tag: 'Account'; value: AccountId32 }
334
- | { tag: 'None' };
330
+ | { type: 'Staked' }
331
+ | { type: 'Stash' }
332
+ | { type: 'Controller' }
333
+ | { type: 'Account'; value: AccountId32 }
334
+ | { type: 'None' };
335
335
 
336
336
  export type PalletStakingValidatorPrefs = { commission: Perbill; blocked: boolean };
337
337
 
@@ -684,7 +684,7 @@ export type PalletContractsEvent =
684
684
  **/
685
685
  | { name: 'StorageDepositTransferredAndReleased'; data: { from: AccountId32; to: AccountId32; amount: bigint } };
686
686
 
687
- export type PalletContractsOrigin = { tag: 'Root' } | { tag: 'Signed'; value: AccountId32 };
687
+ export type PalletContractsOrigin = { type: 'Root' } | { type: 'Signed'; value: AccountId32 };
688
688
 
689
689
  export type AlephRuntimeRuntime = {};
690
690
 
@@ -849,7 +849,7 @@ export type PrimitivesBanConfig = {
849
849
 
850
850
  export type PrimitivesBanInfo = { reason: PrimitivesBanReason; start: number };
851
851
 
852
- export type PrimitivesBanReason = { tag: 'InsufficientUptime'; value: number } | { tag: 'OtherReason'; value: Bytes };
852
+ export type PrimitivesBanReason = { type: 'InsufficientUptime'; value: number } | { type: 'OtherReason'; value: Bytes };
853
853
 
854
854
  /**
855
855
  * The `Event` enum of this pallet
@@ -1037,9 +1037,9 @@ export type PalletSchedulerScheduled = {
1037
1037
  };
1038
1038
 
1039
1039
  export type FrameSupportPreimagesBounded =
1040
- | { tag: 'Legacy'; value: { hash: H256 } }
1041
- | { tag: 'Inline'; value: Bytes }
1042
- | { tag: 'Lookup'; value: { hash: H256; len: number } };
1040
+ | { type: 'Legacy'; value: { hash: H256 } }
1041
+ | { type: 'Inline'; value: Bytes }
1042
+ | { type: 'Lookup'; value: { hash: H256; len: number } };
1043
1043
 
1044
1044
  export type AlephRuntimeRuntimeCall =
1045
1045
  | { pallet: 'System'; palletCall: FrameSystemCall }
@@ -1519,13 +1519,19 @@ export type PalletStakingPalletCallLike =
1519
1519
  **/
1520
1520
  | { name: 'SetMinCommission'; params: { new: Perbill } };
1521
1521
 
1522
- export type PalletStakingPalletConfigOp = { tag: 'Noop' } | { tag: 'Set'; value: bigint } | { tag: 'Remove' };
1522
+ export type PalletStakingPalletConfigOp = { type: 'Noop' } | { type: 'Set'; value: bigint } | { type: 'Remove' };
1523
1523
 
1524
- export type PalletStakingPalletConfigOpU32 = { tag: 'Noop' } | { tag: 'Set'; value: number } | { tag: 'Remove' };
1524
+ export type PalletStakingPalletConfigOpU32 = { type: 'Noop' } | { type: 'Set'; value: number } | { type: 'Remove' };
1525
1525
 
1526
- export type PalletStakingPalletConfigOpPercent = { tag: 'Noop' } | { tag: 'Set'; value: Percent } | { tag: 'Remove' };
1526
+ export type PalletStakingPalletConfigOpPercent =
1527
+ | { type: 'Noop' }
1528
+ | { type: 'Set'; value: Percent }
1529
+ | { type: 'Remove' };
1527
1530
 
1528
- export type PalletStakingPalletConfigOpPerbill = { tag: 'Noop' } | { tag: 'Set'; value: Perbill } | { tag: 'Remove' };
1531
+ export type PalletStakingPalletConfigOpPerbill =
1532
+ | { type: 'Noop' }
1533
+ | { type: 'Set'; value: Perbill }
1534
+ | { type: 'Remove' };
1529
1535
 
1530
1536
  /**
1531
1537
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -1776,10 +1782,13 @@ export type PalletUtilityCallLike =
1776
1782
  | { name: 'WithWeight'; params: { call: AlephRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight } };
1777
1783
 
1778
1784
  export type AlephRuntimeOriginCaller =
1779
- | { tag: 'System'; value: FrameSupportDispatchRawOrigin }
1780
- | { tag: 'Void'; value: SpCoreVoid };
1785
+ | { type: 'System'; value: FrameSupportDispatchRawOrigin }
1786
+ | { type: 'Void'; value: SpCoreVoid };
1781
1787
 
1782
- export type FrameSupportDispatchRawOrigin = { tag: 'Root' } | { tag: 'Signed'; value: AccountId32 } | { tag: 'None' };
1788
+ export type FrameSupportDispatchRawOrigin =
1789
+ | { type: 'Root' }
1790
+ | { type: 'Signed'; value: AccountId32 }
1791
+ | { type: 'None' };
1783
1792
 
1784
1793
  export type SpCoreVoid = null;
1785
1794
 
@@ -2363,15 +2372,21 @@ export type PalletNominationPoolsCallLike =
2363
2372
  **/
2364
2373
  | { name: 'ClaimCommission'; params: { poolId: number } };
2365
2374
 
2366
- export type PalletNominationPoolsBondExtra = { tag: 'FreeBalance'; value: bigint } | { tag: 'Rewards' };
2375
+ export type PalletNominationPoolsBondExtra = { type: 'FreeBalance'; value: bigint } | { type: 'Rewards' };
2367
2376
 
2368
- export type PalletNominationPoolsConfigOp = { tag: 'Noop' } | { tag: 'Set'; value: bigint } | { tag: 'Remove' };
2377
+ export type PalletNominationPoolsConfigOp = { type: 'Noop' } | { type: 'Set'; value: bigint } | { type: 'Remove' };
2369
2378
 
2370
- export type PalletNominationPoolsConfigOpU32 = { tag: 'Noop' } | { tag: 'Set'; value: number } | { tag: 'Remove' };
2379
+ export type PalletNominationPoolsConfigOpU32 = { type: 'Noop' } | { type: 'Set'; value: number } | { type: 'Remove' };
2371
2380
 
2372
- export type PalletNominationPoolsConfigOpPerbill = { tag: 'Noop' } | { tag: 'Set'; value: Perbill } | { tag: 'Remove' };
2381
+ export type PalletNominationPoolsConfigOpPerbill =
2382
+ | { type: 'Noop' }
2383
+ | { type: 'Set'; value: Perbill }
2384
+ | { type: 'Remove' };
2373
2385
 
2374
- export type PalletNominationPoolsConfigOp004 = { tag: 'Noop' } | { tag: 'Set'; value: AccountId32 } | { tag: 'Remove' };
2386
+ export type PalletNominationPoolsConfigOp004 =
2387
+ | { type: 'Noop' }
2388
+ | { type: 'Set'; value: AccountId32 }
2389
+ | { type: 'Remove' };
2375
2390
 
2376
2391
  export type PalletNominationPoolsClaimPermission =
2377
2392
  | 'Permissioned'
@@ -2537,13 +2552,13 @@ export type PalletIdentityIdentityField =
2537
2552
  | 'Twitter';
2538
2553
 
2539
2554
  export type PalletIdentityJudgement =
2540
- | { tag: 'Unknown' }
2541
- | { tag: 'FeePaid'; value: bigint }
2542
- | { tag: 'Reasonable' }
2543
- | { tag: 'KnownGood' }
2544
- | { tag: 'OutOfDate' }
2545
- | { tag: 'LowQuality' }
2546
- | { tag: 'Erroneous' };
2555
+ | { type: 'Unknown' }
2556
+ | { type: 'FeePaid'; value: bigint }
2557
+ | { type: 'Reasonable' }
2558
+ | { type: 'KnownGood' }
2559
+ | { type: 'OutOfDate' }
2560
+ | { type: 'LowQuality' }
2561
+ | { type: 'Erroneous' };
2547
2562
 
2548
2563
  /**
2549
2564
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -2783,7 +2798,7 @@ export type PalletBalancesReserveData = { id: FixedBytes<8>; amount: bigint };
2783
2798
 
2784
2799
  export type PalletBalancesIdAmount = { id: AlephRuntimeRuntimeHoldReason; amount: bigint };
2785
2800
 
2786
- export type AlephRuntimeRuntimeHoldReason = { tag: 'Contracts'; value: PalletContractsHoldReason };
2801
+ export type AlephRuntimeRuntimeHoldReason = { type: 'Contracts'; value: PalletContractsHoldReason };
2787
2802
 
2788
2803
  export type PalletContractsHoldReason = 'CodeUploadDepositReserve' | 'StorageDepositReserve';
2789
2804
 
@@ -3507,37 +3522,37 @@ export type PalletNominationPoolsError =
3507
3522
  /**
3508
3523
  * A (bonded) pool id does not exist.
3509
3524
  **/
3510
- | { tag: 'PoolNotFound' }
3525
+ | { name: 'PoolNotFound' }
3511
3526
  /**
3512
3527
  * An account is not a member.
3513
3528
  **/
3514
- | { tag: 'PoolMemberNotFound' }
3529
+ | { name: 'PoolMemberNotFound' }
3515
3530
  /**
3516
3531
  * A reward pool does not exist. In all cases this is a system logic error.
3517
3532
  **/
3518
- | { tag: 'RewardPoolNotFound' }
3533
+ | { name: 'RewardPoolNotFound' }
3519
3534
  /**
3520
3535
  * A sub pool does not exist.
3521
3536
  **/
3522
- | { tag: 'SubPoolsNotFound' }
3537
+ | { name: 'SubPoolsNotFound' }
3523
3538
  /**
3524
3539
  * An account is already delegating in another pool. An account may only belong to one
3525
3540
  * pool at a time.
3526
3541
  **/
3527
- | { tag: 'AccountBelongsToOtherPool' }
3542
+ | { name: 'AccountBelongsToOtherPool' }
3528
3543
  /**
3529
3544
  * The member is fully unbonded (and thus cannot access the bonded and reward pool
3530
3545
  * anymore to, for example, collect rewards).
3531
3546
  **/
3532
- | { tag: 'FullyUnbonding' }
3547
+ | { name: 'FullyUnbonding' }
3533
3548
  /**
3534
3549
  * The member cannot unbond further chunks due to reaching the limit.
3535
3550
  **/
3536
- | { tag: 'MaxUnbondingLimit' }
3551
+ | { name: 'MaxUnbondingLimit' }
3537
3552
  /**
3538
3553
  * None of the funds can be withdrawn yet because the bonding duration has not passed.
3539
3554
  **/
3540
- | { tag: 'CannotWithdrawAny' }
3555
+ | { name: 'CannotWithdrawAny' }
3541
3556
  /**
3542
3557
  * The amount does not meet the minimum bond to either join or create a pool.
3543
3558
  *
@@ -3545,97 +3560,97 @@ export type PalletNominationPoolsError =
3545
3560
  * `Pallet::depositor_min_bond`. The caller does not have nominating
3546
3561
  * permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
3547
3562
  **/
3548
- | { tag: 'MinimumBondNotMet' }
3563
+ | { name: 'MinimumBondNotMet' }
3549
3564
  /**
3550
3565
  * The transaction could not be executed due to overflow risk for the pool.
3551
3566
  **/
3552
- | { tag: 'OverflowRisk' }
3567
+ | { name: 'OverflowRisk' }
3553
3568
  /**
3554
3569
  * A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
3555
3570
  * other members to be permissionlessly unbonded.
3556
3571
  **/
3557
- | { tag: 'NotDestroying' }
3572
+ | { name: 'NotDestroying' }
3558
3573
  /**
3559
3574
  * The caller does not have nominating permissions for the pool.
3560
3575
  **/
3561
- | { tag: 'NotNominator' }
3576
+ | { name: 'NotNominator' }
3562
3577
  /**
3563
3578
  * Either a) the caller cannot make a valid kick or b) the pool is not destroying.
3564
3579
  **/
3565
- | { tag: 'NotKickerOrDestroying' }
3580
+ | { name: 'NotKickerOrDestroying' }
3566
3581
  /**
3567
3582
  * The pool is not open to join
3568
3583
  **/
3569
- | { tag: 'NotOpen' }
3584
+ | { name: 'NotOpen' }
3570
3585
  /**
3571
3586
  * The system is maxed out on pools.
3572
3587
  **/
3573
- | { tag: 'MaxPools' }
3588
+ | { name: 'MaxPools' }
3574
3589
  /**
3575
3590
  * Too many members in the pool or system.
3576
3591
  **/
3577
- | { tag: 'MaxPoolMembers' }
3592
+ | { name: 'MaxPoolMembers' }
3578
3593
  /**
3579
3594
  * The pools state cannot be changed.
3580
3595
  **/
3581
- | { tag: 'CanNotChangeState' }
3596
+ | { name: 'CanNotChangeState' }
3582
3597
  /**
3583
3598
  * The caller does not have adequate permissions.
3584
3599
  **/
3585
- | { tag: 'DoesNotHavePermission' }
3600
+ | { name: 'DoesNotHavePermission' }
3586
3601
  /**
3587
3602
  * Metadata exceeds [`Config::MaxMetadataLen`]
3588
3603
  **/
3589
- | { tag: 'MetadataExceedsMaxLen' }
3604
+ | { name: 'MetadataExceedsMaxLen' }
3590
3605
  /**
3591
3606
  * Some error occurred that should never happen. This should be reported to the
3592
3607
  * maintainers.
3593
3608
  **/
3594
- | { tag: 'Defensive'; value: PalletNominationPoolsDefensiveError }
3609
+ | { name: 'Defensive'; data: PalletNominationPoolsDefensiveError }
3595
3610
  /**
3596
3611
  * Partial unbonding now allowed permissionlessly.
3597
3612
  **/
3598
- | { tag: 'PartialUnbondNotAllowedPermissionlessly' }
3613
+ | { name: 'PartialUnbondNotAllowedPermissionlessly' }
3599
3614
  /**
3600
3615
  * The pool's max commission cannot be set higher than the existing value.
3601
3616
  **/
3602
- | { tag: 'MaxCommissionRestricted' }
3617
+ | { name: 'MaxCommissionRestricted' }
3603
3618
  /**
3604
3619
  * The supplied commission exceeds the max allowed commission.
3605
3620
  **/
3606
- | { tag: 'CommissionExceedsMaximum' }
3621
+ | { name: 'CommissionExceedsMaximum' }
3607
3622
  /**
3608
3623
  * The supplied commission exceeds global maximum commission.
3609
3624
  **/
3610
- | { tag: 'CommissionExceedsGlobalMaximum' }
3625
+ | { name: 'CommissionExceedsGlobalMaximum' }
3611
3626
  /**
3612
3627
  * Not enough blocks have surpassed since the last commission update.
3613
3628
  **/
3614
- | { tag: 'CommissionChangeThrottled' }
3629
+ | { name: 'CommissionChangeThrottled' }
3615
3630
  /**
3616
3631
  * The submitted changes to commission change rate are not allowed.
3617
3632
  **/
3618
- | { tag: 'CommissionChangeRateNotAllowed' }
3633
+ | { name: 'CommissionChangeRateNotAllowed' }
3619
3634
  /**
3620
3635
  * There is no pending commission to claim.
3621
3636
  **/
3622
- | { tag: 'NoPendingCommission' }
3637
+ | { name: 'NoPendingCommission' }
3623
3638
  /**
3624
3639
  * No commission current has been set.
3625
3640
  **/
3626
- | { tag: 'NoCommissionCurrentSet' }
3641
+ | { name: 'NoCommissionCurrentSet' }
3627
3642
  /**
3628
3643
  * Pool id currently in use.
3629
3644
  **/
3630
- | { tag: 'PoolIdInUse' }
3645
+ | { name: 'PoolIdInUse' }
3631
3646
  /**
3632
3647
  * Pool id provided is not correct/usable.
3633
3648
  **/
3634
- | { tag: 'InvalidPoolId' }
3649
+ | { name: 'InvalidPoolId' }
3635
3650
  /**
3636
3651
  * Bonding extra is restricted to the exact pending reward amount.
3637
3652
  **/
3638
- | { tag: 'BondExtraRestricted' };
3653
+ | { name: 'BondExtraRestricted' };
3639
3654
 
3640
3655
  export type PalletNominationPoolsDefensiveError =
3641
3656
  | 'NotEnoughSpaceInUnbondPool'
@@ -3801,9 +3816,9 @@ export type PalletProxyError =
3801
3816
  | 'NoSelfProxy';
3802
3817
 
3803
3818
  export type SpRuntimeMultiSignature =
3804
- | { tag: 'Ed25519'; value: SpCoreEd25519Signature }
3805
- | { tag: 'Sr25519'; value: SpCoreSr25519Signature }
3806
- | { tag: 'Ecdsa'; value: SpCoreEcdsaSignature };
3819
+ | { type: 'Ed25519'; value: SpCoreEd25519Signature }
3820
+ | { type: 'Sr25519'; value: SpCoreSr25519Signature }
3821
+ | { type: 'Ecdsa'; value: SpCoreEcdsaSignature };
3807
3822
 
3808
3823
  export type SpCoreEd25519Signature = FixedBytes<64>;
3809
3824
 
@@ -3832,26 +3847,26 @@ export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrin
3832
3847
  export type SpCoreOpaqueMetadata = Bytes;
3833
3848
 
3834
3849
  export type SpRuntimeTransactionValidityTransactionValidityError =
3835
- | { tag: 'Invalid'; value: SpRuntimeTransactionValidityInvalidTransaction }
3836
- | { tag: 'Unknown'; value: SpRuntimeTransactionValidityUnknownTransaction };
3850
+ | { type: 'Invalid'; value: SpRuntimeTransactionValidityInvalidTransaction }
3851
+ | { type: 'Unknown'; value: SpRuntimeTransactionValidityUnknownTransaction };
3837
3852
 
3838
3853
  export type SpRuntimeTransactionValidityInvalidTransaction =
3839
- | { tag: 'Call' }
3840
- | { tag: 'Payment' }
3841
- | { tag: 'Future' }
3842
- | { tag: 'Stale' }
3843
- | { tag: 'BadProof' }
3844
- | { tag: 'AncientBirthBlock' }
3845
- | { tag: 'ExhaustsResources' }
3846
- | { tag: 'Custom'; value: number }
3847
- | { tag: 'BadMandatory' }
3848
- | { tag: 'MandatoryValidation' }
3849
- | { tag: 'BadSigner' };
3854
+ | { type: 'Call' }
3855
+ | { type: 'Payment' }
3856
+ | { type: 'Future' }
3857
+ | { type: 'Stale' }
3858
+ | { type: 'BadProof' }
3859
+ | { type: 'AncientBirthBlock' }
3860
+ | { type: 'ExhaustsResources' }
3861
+ | { type: 'Custom'; value: number }
3862
+ | { type: 'BadMandatory' }
3863
+ | { type: 'MandatoryValidation' }
3864
+ | { type: 'BadSigner' };
3850
3865
 
3851
3866
  export type SpRuntimeTransactionValidityUnknownTransaction =
3852
- | { tag: 'CannotLookup' }
3853
- | { tag: 'NoUnsignedValidator' }
3854
- | { tag: 'Custom'; value: number };
3867
+ | { type: 'CannotLookup' }
3868
+ | { type: 'NoUnsignedValidator' }
3869
+ | { type: 'Custom'; value: number };
3855
3870
 
3856
3871
  export type SpInherentsInherentData = { data: Array<[FixedBytes<8>, Bytes]> };
3857
3872
 
@@ -3892,8 +3907,8 @@ export type PrimitivesSessionAuthorityData = {
3892
3907
  export type PrimitivesSessionCommittee = { finalityCommittee: Array<AccountId32>; blockProducers: Array<AccountId32> };
3893
3908
 
3894
3909
  export type PrimitivesSessionValidatorError =
3895
- | { tag: 'SessionNotWithinRange'; value: { lowerLimit: number; upperLimit: number } }
3896
- | { tag: 'Other'; value: Bytes };
3910
+ | { type: 'SessionNotWithinRange'; value: { lowerLimit: number; upperLimit: number } }
3911
+ | { type: 'Other'; value: Bytes };
3897
3912
 
3898
3913
  export type PalletContractsPrimitivesContractResult = {
3899
3914
  gasConsumed: SpWeightsWeightV2Weight;
@@ -3909,10 +3924,10 @@ export type PalletContractsPrimitivesExecReturnValue = { flags: PalletContractsP
3909
3924
  export type PalletContractsPrimitivesReturnFlags = { bits: number };
3910
3925
 
3911
3926
  export type PalletContractsPrimitivesStorageDeposit =
3912
- | { tag: 'Refund'; value: bigint }
3913
- | { tag: 'Charge'; value: bigint };
3927
+ | { type: 'Refund'; value: bigint }
3928
+ | { type: 'Charge'; value: bigint };
3914
3929
 
3915
- export type PalletContractsPrimitivesCode = { tag: 'Upload'; value: Bytes } | { tag: 'Existing'; value: H256 };
3930
+ export type PalletContractsPrimitivesCode = { type: 'Upload'; value: Bytes } | { type: 'Existing'; value: H256 };
3916
3931
 
3917
3932
  export type PalletContractsPrimitivesContractResultResult = {
3918
3933
  gasConsumed: SpWeightsWeightV2Weight;
@@ -3933,19 +3948,19 @@ export type PalletContractsPrimitivesCodeUploadReturnValue = { codeHash: H256; d
3933
3948
  export type PalletContractsPrimitivesContractAccessError = 'DoesntExist' | 'KeyDecodingFailed' | 'MigrationInProgress';
3934
3949
 
3935
3950
  export type AlephRuntimeRuntimeError =
3936
- | { tag: 'System'; value: FrameSystemError }
3937
- | { tag: 'Scheduler'; value: PalletSchedulerError }
3938
- | { tag: 'Balances'; value: PalletBalancesError }
3939
- | { tag: 'Staking'; value: PalletStakingPalletError }
3940
- | { tag: 'Session'; value: PalletSessionError }
3941
- | { tag: 'Elections'; value: PalletElectionsError }
3942
- | { tag: 'Treasury'; value: PalletTreasuryError }
3943
- | { tag: 'Vesting'; value: PalletVestingError }
3944
- | { tag: 'Utility'; value: PalletUtilityError }
3945
- | { tag: 'Multisig'; value: PalletMultisigError }
3946
- | { tag: 'Sudo'; value: PalletSudoError }
3947
- | { tag: 'Contracts'; value: PalletContractsError }
3948
- | { tag: 'NominationPools'; value: PalletNominationPoolsError }
3949
- | { tag: 'Identity'; value: PalletIdentityError }
3950
- | { tag: 'CommitteeManagement'; value: PalletCommitteeManagementError }
3951
- | { tag: 'Proxy'; value: PalletProxyError };
3951
+ | { pallet: 'System'; palletError: FrameSystemError }
3952
+ | { pallet: 'Scheduler'; palletError: PalletSchedulerError }
3953
+ | { pallet: 'Balances'; palletError: PalletBalancesError }
3954
+ | { pallet: 'Staking'; palletError: PalletStakingPalletError }
3955
+ | { pallet: 'Session'; palletError: PalletSessionError }
3956
+ | { pallet: 'Elections'; palletError: PalletElectionsError }
3957
+ | { pallet: 'Treasury'; palletError: PalletTreasuryError }
3958
+ | { pallet: 'Vesting'; palletError: PalletVestingError }
3959
+ | { pallet: 'Utility'; palletError: PalletUtilityError }
3960
+ | { pallet: 'Multisig'; palletError: PalletMultisigError }
3961
+ | { pallet: 'Sudo'; palletError: PalletSudoError }
3962
+ | { pallet: 'Contracts'; palletError: PalletContractsError }
3963
+ | { pallet: 'NominationPools'; palletError: PalletNominationPoolsError }
3964
+ | { pallet: 'Identity'; palletError: PalletIdentityError }
3965
+ | { pallet: 'CommitteeManagement'; palletError: PalletCommitteeManagementError }
3966
+ | { pallet: 'Proxy'; palletError: PalletProxyError };
package/astar/consts.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainConsts, RpcVersion } from 'dedot/types';
4
4
  import type { RuntimeVersion, FixedU128, AccountId32, Perbill } from 'dedot/codecs';
@@ -396,6 +396,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
396
396
  **/
397
397
  numberOfTiers: number;
398
398
 
399
+ /**
400
+ * Tier ranking enabled.
401
+ **/
402
+ rankingEnabled: boolean;
403
+
399
404
  /**
400
405
  * Generic pallet constant
401
406
  **/
package/astar/errors.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainErrors, GenericPalletError, RpcVersion } from 'dedot/types';
4
4
 
@@ -626,6 +626,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
626
626
  **/
627
627
  ForceNotAllowed: GenericPalletError<Rv>;
628
628
 
629
+ /**
630
+ * Account doesn't have the freeze inconsistency
631
+ **/
632
+ AccountNotInconsistent: GenericPalletError<Rv>;
633
+
629
634
  /**
630
635
  * Generic pallet error
631
636
  **/
package/astar/events.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types';
4
4
  import type {
@@ -712,6 +712,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
712
712
  beneficiary: AccountId32;
713
713
  smartContract: AstarPrimitivesDappStakingSmartContract;
714
714
  tierId: number;
715
+ rank: number;
715
716
  era: number;
716
717
  amount: bigint;
717
718
  }
package/astar/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type { GenericSubstrateApi, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types';
4
4
  import { ChainConsts } from './consts';
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type { GenericJsonRpcApis, RpcVersion } from 'dedot/types';
4
4
  import type { JsonRpcApis } from 'dedot/types/json-rpc';
package/astar/query.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainStorage, GenericStorageQuery, Callback, RpcVersion } from 'dedot/types';
4
4
  import type {
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types';
4
4
  import type {
@@ -44,6 +44,7 @@ import type {
44
44
  PalletContractsPrimitivesCodeUploadReturnValue,
45
45
  PalletContractsWasmDeterminism,
46
46
  PalletContractsPrimitivesContractAccessError,
47
+ AstarPrimitivesDappStakingRankedTier,
47
48
  } from './types';
48
49
 
49
50
  export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
@@ -756,11 +757,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
756
757
  blocksPerEra: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
757
758
 
758
759
  /**
759
- * Get dApp tier assignment for the given dApp.
760
+ * Get dApp ranked tier assignment for the given dApp.
760
761
  *
761
762
  * @callname: DappStakingApi_get_dapp_tier_assignment
762
763
  **/
763
- getDappTierAssignment: GenericRuntimeApiMethod<Rv, () => Promise<Array<[number, number]>>>;
764
+ getDappTierAssignment: GenericRuntimeApiMethod<
765
+ Rv,
766
+ () => Promise<Array<[number, AstarPrimitivesDappStakingRankedTier]>>
767
+ >;
764
768
 
765
769
  /**
766
770
  * Generic runtime api call
package/astar/tx.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
3
  import type {
4
4
  GenericChainTx,
@@ -1951,6 +1951,25 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1951
1951
  >
1952
1952
  >;
1953
1953
 
1954
+ /**
1955
+ * See [`Pallet::fix_account`].
1956
+ *
1957
+ * @param {AccountId32Like} account
1958
+ **/
1959
+ fixAccount: GenericTxCall<
1960
+ Rv,
1961
+ (account: AccountId32Like) => ChainSubmittableExtrinsic<
1962
+ Rv,
1963
+ {
1964
+ pallet: 'DappStaking';
1965
+ palletCall: {
1966
+ name: 'FixAccount';
1967
+ params: { account: AccountId32Like };
1968
+ };
1969
+ }
1970
+ >
1971
+ >;
1972
+
1954
1973
  /**
1955
1974
  * Generic pallet tx call
1956
1975
  **/