@dedot/chaintypes 0.4.0 → 0.6.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 (46) hide show
  1. package/kusama-asset-hub/consts.d.ts +765 -0
  2. package/kusama-asset-hub/errors.d.ts +1529 -0
  3. package/kusama-asset-hub/events.d.ts +2443 -0
  4. package/kusama-asset-hub/index.d.ts +27 -0
  5. package/kusama-asset-hub/json-rpc.d.ts +90 -0
  6. package/kusama-asset-hub/query.d.ts +1677 -0
  7. package/kusama-asset-hub/runtime.d.ts +555 -0
  8. package/kusama-asset-hub/tx.d.ts +6364 -0
  9. package/kusama-asset-hub/types.d.ts +6921 -0
  10. package/package.json +3 -3
  11. package/polkadot-asset-hub/consts.d.ts +730 -0
  12. package/polkadot-asset-hub/errors.d.ts +1500 -0
  13. package/polkadot-asset-hub/events.d.ts +2414 -0
  14. package/polkadot-asset-hub/index.d.ts +27 -0
  15. package/polkadot-asset-hub/json-rpc.d.ts +90 -0
  16. package/polkadot-asset-hub/query.d.ts +1655 -0
  17. package/polkadot-asset-hub/runtime.d.ts +558 -0
  18. package/polkadot-asset-hub/tx.d.ts +6293 -0
  19. package/polkadot-asset-hub/types.d.ts +6829 -0
  20. package/rococo-asset-hub/consts.d.ts +835 -0
  21. package/rococo-asset-hub/errors.d.ts +1590 -0
  22. package/rococo-asset-hub/events.d.ts +2573 -0
  23. package/rococo-asset-hub/index.d.ts +27 -0
  24. package/rococo-asset-hub/json-rpc.d.ts +90 -0
  25. package/rococo-asset-hub/query.d.ts +1829 -0
  26. package/rococo-asset-hub/runtime.d.ts +726 -0
  27. package/rococo-asset-hub/tx.d.ts +9011 -0
  28. package/rococo-asset-hub/types.d.ts +12431 -0
  29. package/westend-asset-hub/consts.d.ts +869 -0
  30. package/westend-asset-hub/errors.d.ts +1635 -0
  31. package/westend-asset-hub/events.d.ts +2610 -0
  32. package/westend-asset-hub/index.d.ts +27 -0
  33. package/westend-asset-hub/json-rpc.d.ts +90 -0
  34. package/westend-asset-hub/query.d.ts +1868 -0
  35. package/westend-asset-hub/runtime.d.ts +798 -0
  36. package/westend-asset-hub/tx.d.ts +9199 -0
  37. package/westend-asset-hub/types.d.ts +12661 -0
  38. package/westend-people/consts.d.ts +434 -0
  39. package/westend-people/errors.d.ts +769 -0
  40. package/westend-people/events.d.ts +1082 -0
  41. package/westend-people/index.d.ts +27 -0
  42. package/westend-people/json-rpc.d.ts +89 -0
  43. package/westend-people/query.d.ts +1209 -0
  44. package/westend-people/runtime.d.ts +636 -0
  45. package/westend-people/tx.d.ts +2891 -0
  46. package/westend-people/types.d.ts +4984 -0
@@ -0,0 +1,27 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericSubstrateApi, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types';
4
+ import { ChainConsts } from './consts';
5
+ import { ChainStorage } from './query';
6
+ import { ChainJsonRpcApis } from './json-rpc';
7
+ import { ChainErrors } from './errors';
8
+ import { ChainEvents } from './events';
9
+ import { RuntimeApis } from './runtime';
10
+ import { ChainTx } from './tx';
11
+
12
+ export * from './types';
13
+
14
+ export interface VersionedKusamaAssetHubApi<Rv extends RpcVersion> extends GenericSubstrateApi<Rv> {
15
+ rpc: ChainJsonRpcApis<Rv>;
16
+ consts: ChainConsts<Rv>;
17
+ query: ChainStorage<Rv>;
18
+ errors: ChainErrors<Rv>;
19
+ events: ChainEvents<Rv>;
20
+ call: RuntimeApis<Rv>;
21
+ tx: ChainTx<Rv>;
22
+ }
23
+
24
+ export interface KusamaAssetHubApi {
25
+ legacy: VersionedKusamaAssetHubApi<RpcLegacy>;
26
+ v2: VersionedKusamaAssetHubApi<RpcV2>;
27
+ }
@@ -0,0 +1,90 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericJsonRpcApis, RpcVersion } from 'dedot/types';
4
+ import type { JsonRpcApis } from 'dedot/types/json-rpc';
5
+
6
+ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
7
+ JsonRpcApis,
8
+ | 'archive_unstable_body'
9
+ | 'archive_unstable_call'
10
+ | 'archive_unstable_finalizedHeight'
11
+ | 'archive_unstable_genesisHash'
12
+ | 'archive_unstable_hashByHeight'
13
+ | 'archive_unstable_header'
14
+ | 'archive_unstable_storage'
15
+ | 'author_hasKey'
16
+ | 'author_hasSessionKeys'
17
+ | 'author_insertKey'
18
+ | 'author_pendingExtrinsics'
19
+ | 'author_removeExtrinsic'
20
+ | 'author_rotateKeys'
21
+ | 'author_submitAndWatchExtrinsic'
22
+ | 'author_submitExtrinsic'
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
+ | 'chain_getBlock'
32
+ | 'chain_getBlockHash'
33
+ | 'chain_getFinalizedHead'
34
+ | 'chain_getHeader'
35
+ | 'chain_subscribeAllHeads'
36
+ | 'chain_subscribeFinalizedHeads'
37
+ | 'chain_subscribeNewHeads'
38
+ | 'childstate_getKeys'
39
+ | 'childstate_getKeysPaged'
40
+ | 'childstate_getStorage'
41
+ | 'childstate_getStorageEntries'
42
+ | 'childstate_getStorageHash'
43
+ | 'childstate_getStorageSize'
44
+ | 'dev_getBlockStats'
45
+ | 'offchain_localStorageGet'
46
+ | 'offchain_localStorageSet'
47
+ | 'payment_queryFeeDetails'
48
+ | 'payment_queryInfo'
49
+ | 'rpc_methods'
50
+ | 'state_call'
51
+ | 'state_getChildReadProof'
52
+ | 'state_getKeys'
53
+ | 'state_getKeysPaged'
54
+ | 'state_getMetadata'
55
+ | 'state_getPairs'
56
+ | 'state_getReadProof'
57
+ | 'state_getRuntimeVersion'
58
+ | 'state_getStorage'
59
+ | 'state_getStorageHash'
60
+ | 'state_getStorageSize'
61
+ | 'state_queryStorage'
62
+ | 'state_queryStorageAt'
63
+ | 'state_subscribeRuntimeVersion'
64
+ | 'state_subscribeStorage'
65
+ | 'state_traceBlock'
66
+ | 'state_trieMigrationStatus'
67
+ | 'system_accountNextIndex'
68
+ | 'system_addLogFilter'
69
+ | 'system_addReservedPeer'
70
+ | 'system_chain'
71
+ | 'system_chainType'
72
+ | 'system_dryRun'
73
+ | 'system_health'
74
+ | 'system_localListenAddresses'
75
+ | 'system_localPeerId'
76
+ | 'system_name'
77
+ | 'system_nodeRoles'
78
+ | 'system_peers'
79
+ | 'system_properties'
80
+ | 'system_removeReservedPeer'
81
+ | 'system_reservedPeers'
82
+ | 'system_resetLogFilter'
83
+ | 'system_syncState'
84
+ | 'system_unstable_networkState'
85
+ | 'system_version'
86
+ | 'transactionWatch_v1_submitAndWatch'
87
+ | 'transaction_v1_broadcast'
88
+ | 'transaction_v1_stop'
89
+ > &
90
+ GenericJsonRpcApis<Rv>;