@dedot/chaintypes 0.10.0 → 0.12.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.
Files changed (54) hide show
  1. package/index.d.ts +5 -5
  2. package/index.ts +5 -5
  3. package/moonbeam/json-rpc.d.ts +12 -9
  4. package/package.json +2 -2
  5. package/paseo/consts.d.ts +9 -0
  6. package/paseo/events.d.ts +25 -0
  7. package/paseo/index.d.ts +1 -1
  8. package/paseo/tx.d.ts +47 -0
  9. package/paseo/types.d.ts +43 -3
  10. package/kusamaAssetHub/consts.d.ts +0 -765
  11. package/kusamaAssetHub/errors.d.ts +0 -1529
  12. package/kusamaAssetHub/events.d.ts +0 -2443
  13. package/kusamaAssetHub/index.d.ts +0 -27
  14. package/kusamaAssetHub/json-rpc.d.ts +0 -90
  15. package/kusamaAssetHub/query.d.ts +0 -1677
  16. package/kusamaAssetHub/runtime.d.ts +0 -555
  17. package/kusamaAssetHub/tx.d.ts +0 -6364
  18. package/kusamaAssetHub/types.d.ts +0 -6921
  19. package/polkadotAssetHub/consts.d.ts +0 -730
  20. package/polkadotAssetHub/errors.d.ts +0 -1500
  21. package/polkadotAssetHub/events.d.ts +0 -2414
  22. package/polkadotAssetHub/index.d.ts +0 -27
  23. package/polkadotAssetHub/json-rpc.d.ts +0 -90
  24. package/polkadotAssetHub/query.d.ts +0 -1655
  25. package/polkadotAssetHub/runtime.d.ts +0 -558
  26. package/polkadotAssetHub/tx.d.ts +0 -6293
  27. package/polkadotAssetHub/types.d.ts +0 -6829
  28. package/rococoAssetHub/consts.d.ts +0 -835
  29. package/rococoAssetHub/errors.d.ts +0 -1590
  30. package/rococoAssetHub/events.d.ts +0 -2573
  31. package/rococoAssetHub/index.d.ts +0 -27
  32. package/rococoAssetHub/json-rpc.d.ts +0 -90
  33. package/rococoAssetHub/query.d.ts +0 -1829
  34. package/rococoAssetHub/runtime.d.ts +0 -726
  35. package/rococoAssetHub/tx.d.ts +0 -9011
  36. package/rococoAssetHub/types.d.ts +0 -12431
  37. package/westendAssetHub/consts.d.ts +0 -869
  38. package/westendAssetHub/errors.d.ts +0 -1635
  39. package/westendAssetHub/events.d.ts +0 -2610
  40. package/westendAssetHub/index.d.ts +0 -27
  41. package/westendAssetHub/json-rpc.d.ts +0 -90
  42. package/westendAssetHub/query.d.ts +0 -1868
  43. package/westendAssetHub/runtime.d.ts +0 -798
  44. package/westendAssetHub/tx.d.ts +0 -9199
  45. package/westendAssetHub/types.d.ts +0 -12661
  46. package/westendPeople/consts.d.ts +0 -434
  47. package/westendPeople/errors.d.ts +0 -769
  48. package/westendPeople/events.d.ts +0 -1082
  49. package/westendPeople/index.d.ts +0 -27
  50. package/westendPeople/json-rpc.d.ts +0 -89
  51. package/westendPeople/query.d.ts +0 -1209
  52. package/westendPeople/runtime.d.ts +0 -636
  53. package/westendPeople/tx.d.ts +0 -2891
  54. package/westendPeople/types.d.ts +0 -4984
package/index.d.ts CHANGED
@@ -3,12 +3,12 @@ export type { PolkadotApi } from './polkadot';
3
3
  export type { KusamaApi } from './kusama';
4
4
  export type { MoonbeamApi } from './moonbeam';
5
5
  export type { AstarApi } from './astar';
6
- export type { KusamaAssetHubApi } from './kusamaAssetHub';
6
+ export type { KusamaAssetHubApi } from './kusama-asset-hub';
7
7
  export type { AlephApi } from './aleph';
8
- export type { PolkadotAssetHubApi } from './polkadotAssetHub';
8
+ export type { PolkadotAssetHubApi } from './polkadot-asset-hub';
9
9
  export type { RococoApi } from './rococo';
10
- export type { RococoAssetHubApi } from './rococoAssetHub';
10
+ export type { RococoAssetHubApi } from './rococo-asset-hub';
11
11
  export type { WestendApi } from './westend';
12
- export type { WestendPeopleApi } from './westendPeople';
13
- export type { WestendAssetHubApi } from './westendAssetHub';
12
+ export type { WestendPeopleApi } from './westend-people';
13
+ export type { WestendAssetHubApi } from './westend-asset-hub';
14
14
  export type { PaseoApi } from './paseo';
package/index.ts CHANGED
@@ -3,12 +3,12 @@ export type { PolkadotApi } from './polkadot';
3
3
  export type { KusamaApi } from './kusama';
4
4
  export type { MoonbeamApi } from './moonbeam';
5
5
  export type { AstarApi } from './astar';
6
- export type { KusamaAssetHubApi } from './kusamaAssetHub';
6
+ export type { KusamaAssetHubApi } from './kusama-asset-hub';
7
7
  export type { AlephApi } from './aleph';
8
- export type { PolkadotAssetHubApi } from './polkadotAssetHub';
8
+ export type { PolkadotAssetHubApi } from './polkadot-asset-hub';
9
9
  export type { RococoApi } from './rococo';
10
- export type { RococoAssetHubApi } from './rococoAssetHub';
10
+ export type { RococoAssetHubApi } from './rococo-asset-hub';
11
11
  export type { WestendApi } from './westend';
12
- export type { WestendPeopleApi } from './westendPeople';
13
- export type { WestendAssetHubApi } from './westendAssetHub';
12
+ export type { WestendPeopleApi } from './westend-people';
13
+ export type { WestendAssetHubApi } from './westend-asset-hub';
14
14
  export type { PaseoApi } from './paseo';
@@ -20,14 +20,14 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
20
20
  | 'author_rotateKeys'
21
21
  | 'author_submitAndWatchExtrinsic'
22
22
  | 'author_submitExtrinsic'
23
- | 'chainHead_unstable_body'
24
- | 'chainHead_unstable_call'
25
- | 'chainHead_unstable_continue'
26
- | 'chainHead_unstable_follow'
27
- | 'chainHead_unstable_header'
28
- | 'chainHead_unstable_stopOperation'
29
- | 'chainHead_unstable_storage'
30
- | 'chainHead_unstable_unpin'
23
+ | 'chainHead_v1_body'
24
+ | 'chainHead_v1_call'
25
+ | 'chainHead_v1_continue'
26
+ | 'chainHead_v1_follow'
27
+ | 'chainHead_v1_header'
28
+ | 'chainHead_v1_stopOperation'
29
+ | 'chainHead_v1_storage'
30
+ | 'chainHead_v1_unpin'
31
31
  | 'chain_getBlock'
32
32
  | 'chain_getBlockHash'
33
33
  | 'chain_getFinalizedHead'
@@ -85,6 +85,7 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
85
85
  | 'eth_syncing'
86
86
  | 'eth_uninstallFilter'
87
87
  | 'eth_unsubscribe'
88
+ | 'moon_getLatestBlockHash'
88
89
  | 'moon_isBlockFinalized'
89
90
  | 'moon_isTxFinalized'
90
91
  | 'net_listening'
@@ -130,7 +131,9 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
130
131
  | 'system_syncState'
131
132
  | 'system_unstable_networkState'
132
133
  | 'system_version'
133
- | 'transactionWatch_unstable_submitAndWatch'
134
+ | 'transactionWatch_v1_submitAndWatch'
135
+ | 'transaction_v1_broadcast'
136
+ | 'transaction_v1_stop'
134
137
  | 'web3_clientVersion'
135
138
  | 'web3_sha3'
136
139
  > &
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -19,7 +19,7 @@
19
19
  "directory": "dist"
20
20
  },
21
21
  "license": "Apache-2.0",
22
- "gitHead": "e2dcff4ed6abb73b21c760c0954d0d4cb41d126b",
22
+ "gitHead": "a13655e8a823772147ecd2ccf6d9b28197c223d1",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts"
25
25
  }
package/paseo/consts.d.ts CHANGED
@@ -1328,4 +1328,13 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1328
1328
  **/
1329
1329
  [name: string]: any;
1330
1330
  };
1331
+ /**
1332
+ * Pallet `IdentityMigrator`'s constants
1333
+ **/
1334
+ identityMigrator: {
1335
+ /**
1336
+ * Generic pallet constant
1337
+ **/
1338
+ [name: string]: any;
1339
+ };
1331
1340
  }
package/paseo/events.d.ts CHANGED
@@ -2813,6 +2813,31 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2813
2813
  }
2814
2814
  >;
2815
2815
 
2816
+ /**
2817
+ * Generic pallet event
2818
+ **/
2819
+ [prop: string]: GenericPalletEvent<Rv>;
2820
+ };
2821
+ /**
2822
+ * Pallet `IdentityMigrator`'s events
2823
+ **/
2824
+ identityMigrator: {
2825
+ /**
2826
+ * The identity and all sub accounts were reaped for `who`.
2827
+ **/
2828
+ IdentityReaped: GenericPalletEvent<Rv, 'IdentityMigrator', 'IdentityReaped', { who: AccountId32 }>;
2829
+
2830
+ /**
2831
+ * The deposits held for `who` were updated. `identity` is the new deposit held for
2832
+ * identity info, and `subs` is the new deposit held for the sub-accounts.
2833
+ **/
2834
+ DepositUpdated: GenericPalletEvent<
2835
+ Rv,
2836
+ 'IdentityMigrator',
2837
+ 'DepositUpdated',
2838
+ { who: AccountId32; identity: bigint; subs: bigint }
2839
+ >;
2840
+
2816
2841
  /**
2817
2842
  * Generic pallet event
2818
2843
  **/
package/paseo/index.d.ts CHANGED
@@ -23,7 +23,7 @@ export interface VersionedPaseoApi<Rv extends RpcVersion> extends GenericSubstra
23
23
 
24
24
  /**
25
25
  * @name: PaseoApi
26
- * @specVersion: 1002005
26
+ * @specVersion: 1002006
27
27
  **/
28
28
  export interface PaseoApi {
29
29
  legacy: VersionedPaseoApi<RpcLegacy>;
package/paseo/tx.d.ts CHANGED
@@ -8016,6 +8016,53 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8016
8016
  >
8017
8017
  >;
8018
8018
 
8019
+ /**
8020
+ * Generic pallet tx call
8021
+ **/
8022
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
8023
+ };
8024
+ /**
8025
+ * Pallet `IdentityMigrator`'s transaction calls
8026
+ **/
8027
+ identityMigrator: {
8028
+ /**
8029
+ * See [`Pallet::reap_identity`].
8030
+ *
8031
+ * @param {AccountId32Like} who
8032
+ **/
8033
+ reapIdentity: GenericTxCall<
8034
+ Rv,
8035
+ (who: AccountId32Like) => ChainSubmittableExtrinsic<
8036
+ Rv,
8037
+ {
8038
+ pallet: 'IdentityMigrator';
8039
+ palletCall: {
8040
+ name: 'ReapIdentity';
8041
+ params: { who: AccountId32Like };
8042
+ };
8043
+ }
8044
+ >
8045
+ >;
8046
+
8047
+ /**
8048
+ * See [`Pallet::poke_deposit`].
8049
+ *
8050
+ * @param {AccountId32Like} who
8051
+ **/
8052
+ pokeDeposit: GenericTxCall<
8053
+ Rv,
8054
+ (who: AccountId32Like) => ChainSubmittableExtrinsic<
8055
+ Rv,
8056
+ {
8057
+ pallet: 'IdentityMigrator';
8058
+ palletCall: {
8059
+ name: 'PokeDeposit';
8060
+ params: { who: AccountId32Like };
8061
+ };
8062
+ }
8063
+ >
8064
+ >;
8065
+
8019
8066
  /**
8020
8067
  * Generic pallet tx call
8021
8068
  **/
package/paseo/types.d.ts CHANGED
@@ -95,7 +95,8 @@ export type PaseoRuntimeRuntimeEvent =
95
95
  | { pallet: 'XcmPallet'; palletEvent: PalletXcmEvent }
96
96
  | { pallet: 'MessageQueue'; palletEvent: PalletMessageQueueEvent }
97
97
  | { pallet: 'AssetRate'; palletEvent: PalletAssetRateEvent }
98
- | { pallet: 'Sudo'; palletEvent: PalletSudoEvent };
98
+ | { pallet: 'Sudo'; palletEvent: PalletSudoEvent }
99
+ | { pallet: 'IdentityMigrator'; palletEvent: PolkadotRuntimeCommonIdentityMigratorPalletEvent };
99
100
 
100
101
  /**
101
102
  * Event for the System pallet.
@@ -1079,7 +1080,8 @@ export type PaseoRuntimeRuntimeCall =
1079
1080
  | { pallet: 'AssetRate'; palletCall: PalletAssetRateCall }
1080
1081
  | { pallet: 'Beefy'; palletCall: PalletBeefyCall }
1081
1082
  | { pallet: 'ParaSudoWrapper'; palletCall: PolkadotRuntimeCommonParasSudoWrapperPalletCall }
1082
- | { pallet: 'Sudo'; palletCall: PalletSudoCall };
1083
+ | { pallet: 'Sudo'; palletCall: PalletSudoCall }
1084
+ | { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCall };
1083
1085
 
1084
1086
  export type PaseoRuntimeRuntimeCallLike =
1085
1087
  | { pallet: 'System'; palletCall: FrameSystemCallLike }
@@ -1127,7 +1129,8 @@ export type PaseoRuntimeRuntimeCallLike =
1127
1129
  | { pallet: 'AssetRate'; palletCall: PalletAssetRateCallLike }
1128
1130
  | { pallet: 'Beefy'; palletCall: PalletBeefyCallLike }
1129
1131
  | { pallet: 'ParaSudoWrapper'; palletCall: PolkadotRuntimeCommonParasSudoWrapperPalletCallLike }
1130
- | { pallet: 'Sudo'; palletCall: PalletSudoCallLike };
1132
+ | { pallet: 'Sudo'; palletCall: PalletSudoCallLike }
1133
+ | { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCallLike };
1131
1134
 
1132
1135
  /**
1133
1136
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -5993,6 +5996,29 @@ export type PalletSudoCallLike =
5993
5996
  **/
5994
5997
  | { name: 'RemoveKey' };
5995
5998
 
5999
+ /**
6000
+ * Contains a variant per dispatchable extrinsic that this pallet has.
6001
+ **/
6002
+ export type PolkadotRuntimeCommonIdentityMigratorPalletCall =
6003
+ /**
6004
+ * See [`Pallet::reap_identity`].
6005
+ **/
6006
+ | { name: 'ReapIdentity'; params: { who: AccountId32 } }
6007
+ /**
6008
+ * See [`Pallet::poke_deposit`].
6009
+ **/
6010
+ | { name: 'PokeDeposit'; params: { who: AccountId32 } };
6011
+
6012
+ export type PolkadotRuntimeCommonIdentityMigratorPalletCallLike =
6013
+ /**
6014
+ * See [`Pallet::reap_identity`].
6015
+ **/
6016
+ | { name: 'ReapIdentity'; params: { who: AccountId32Like } }
6017
+ /**
6018
+ * See [`Pallet::poke_deposit`].
6019
+ **/
6020
+ | { name: 'PokeDeposit'; params: { who: AccountId32Like } };
6021
+
5996
6022
  export type SpRuntimeBlakeTwo256 = {};
5997
6023
 
5998
6024
  export type PalletConvictionVotingTally = { ayes: bigint; nays: bigint; support: bigint };
@@ -7273,6 +7299,20 @@ export type PalletSudoEvent =
7273
7299
  };
7274
7300
  };
7275
7301
 
7302
+ /**
7303
+ * The `Event` enum of this pallet
7304
+ **/
7305
+ export type PolkadotRuntimeCommonIdentityMigratorPalletEvent =
7306
+ /**
7307
+ * The identity and all sub accounts were reaped for `who`.
7308
+ **/
7309
+ | { name: 'IdentityReaped'; data: { who: AccountId32 } }
7310
+ /**
7311
+ * The deposits held for `who` were updated. `identity` is the new deposit held for
7312
+ * identity info, and `subs` is the new deposit held for the sub-accounts.
7313
+ **/
7314
+ | { name: 'DepositUpdated'; data: { who: AccountId32; identity: bigint; subs: bigint } };
7315
+
7276
7316
  export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string };
7277
7317
 
7278
7318
  export type FrameSystemCodeUpgradeAuthorization = { codeHash: H256; checkVersion: boolean };