@dedot/chaintypes 0.0.1-alpha.100

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 (105) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +5 -0
  3. package/aleph/consts.d.ts +676 -0
  4. package/aleph/errors.d.ts +1054 -0
  5. package/aleph/events.d.ts +1201 -0
  6. package/aleph/index.d.ts +27 -0
  7. package/aleph/json-rpc.d.ts +85 -0
  8. package/aleph/query.d.ts +1573 -0
  9. package/aleph/runtime.d.ts +596 -0
  10. package/aleph/tx.d.ts +3440 -0
  11. package/aleph/types.d.ts +3951 -0
  12. package/astar/consts.d.ts +737 -0
  13. package/astar/errors.d.ts +1508 -0
  14. package/astar/events.d.ts +1878 -0
  15. package/astar/index.d.ts +27 -0
  16. package/astar/json-rpc.d.ts +131 -0
  17. package/astar/query.d.ts +1851 -0
  18. package/astar/runtime.d.ts +803 -0
  19. package/astar/tx.d.ts +4516 -0
  20. package/astar/types.d.ts +6141 -0
  21. package/index.d.ts +11 -0
  22. package/index.js +1 -0
  23. package/index.ts +11 -0
  24. package/kusama/consts.d.ts +1578 -0
  25. package/kusama/errors.d.ts +3152 -0
  26. package/kusama/events.d.ts +3579 -0
  27. package/kusama/index.d.ts +27 -0
  28. package/kusama/json-rpc.d.ts +103 -0
  29. package/kusama/query.d.ts +4229 -0
  30. package/kusama/runtime.d.ts +1196 -0
  31. package/kusama/tx.d.ts +9040 -0
  32. package/kusama/types.d.ts +11369 -0
  33. package/kusamaAssetHub/consts.d.ts +759 -0
  34. package/kusamaAssetHub/errors.d.ts +1494 -0
  35. package/kusamaAssetHub/events.d.ts +2491 -0
  36. package/kusamaAssetHub/index.d.ts +27 -0
  37. package/kusamaAssetHub/json-rpc.d.ts +89 -0
  38. package/kusamaAssetHub/query.d.ts +1662 -0
  39. package/kusamaAssetHub/runtime.d.ts +555 -0
  40. package/kusamaAssetHub/tx.d.ts +6192 -0
  41. package/kusamaAssetHub/types.d.ts +6831 -0
  42. package/moonbeam/consts.d.ts +1010 -0
  43. package/moonbeam/errors.d.ts +1932 -0
  44. package/moonbeam/events.d.ts +2928 -0
  45. package/moonbeam/index.d.ts +27 -0
  46. package/moonbeam/json-rpc.d.ts +137 -0
  47. package/moonbeam/query.d.ts +2282 -0
  48. package/moonbeam/runtime.d.ts +724 -0
  49. package/moonbeam/tx.d.ts +6222 -0
  50. package/moonbeam/types.d.ts +8165 -0
  51. package/package.json +25 -0
  52. package/polkadot/consts.d.ts +1313 -0
  53. package/polkadot/errors.d.ts +2575 -0
  54. package/polkadot/events.d.ts +2757 -0
  55. package/polkadot/index.d.ts +27 -0
  56. package/polkadot/json-rpc.d.ts +103 -0
  57. package/polkadot/query.d.ts +3693 -0
  58. package/polkadot/runtime.d.ts +1196 -0
  59. package/polkadot/tx.d.ts +7706 -0
  60. package/polkadot/types.d.ts +9893 -0
  61. package/polkadotAssetHub/consts.d.ts +724 -0
  62. package/polkadotAssetHub/errors.d.ts +1465 -0
  63. package/polkadotAssetHub/events.d.ts +2462 -0
  64. package/polkadotAssetHub/index.d.ts +27 -0
  65. package/polkadotAssetHub/json-rpc.d.ts +89 -0
  66. package/polkadotAssetHub/query.d.ts +1640 -0
  67. package/polkadotAssetHub/runtime.d.ts +558 -0
  68. package/polkadotAssetHub/tx.d.ts +6121 -0
  69. package/polkadotAssetHub/types.d.ts +6739 -0
  70. package/rococo/consts.d.ts +1423 -0
  71. package/rococo/errors.d.ts +2783 -0
  72. package/rococo/events.d.ts +3361 -0
  73. package/rococo/index.d.ts +27 -0
  74. package/rococo/json-rpc.d.ts +103 -0
  75. package/rococo/query.d.ts +3561 -0
  76. package/rococo/runtime.d.ts +1257 -0
  77. package/rococo/tx.d.ts +10721 -0
  78. package/rococo/types.d.ts +14828 -0
  79. package/rococoAssetHub/consts.d.ts +787 -0
  80. package/rococoAssetHub/errors.d.ts +1523 -0
  81. package/rococoAssetHub/events.d.ts +2517 -0
  82. package/rococoAssetHub/index.d.ts +27 -0
  83. package/rococoAssetHub/json-rpc.d.ts +89 -0
  84. package/rococoAssetHub/query.d.ts +1682 -0
  85. package/rococoAssetHub/runtime.d.ts +704 -0
  86. package/rococoAssetHub/tx.d.ts +9013 -0
  87. package/rococoAssetHub/types.d.ts +12352 -0
  88. package/substrate/consts.d.ts +2223 -0
  89. package/substrate/errors.d.ts +4023 -0
  90. package/substrate/events.d.ts +5430 -0
  91. package/substrate/index.d.ts +27 -0
  92. package/substrate/json-rpc.d.ts +101 -0
  93. package/substrate/query.d.ts +4083 -0
  94. package/substrate/runtime.d.ts +971 -0
  95. package/substrate/tx.d.ts +12501 -0
  96. package/substrate/types.d.ts +13380 -0
  97. package/westendAssetHub/consts.d.ts +787 -0
  98. package/westendAssetHub/errors.d.ts +1523 -0
  99. package/westendAssetHub/events.d.ts +2477 -0
  100. package/westendAssetHub/index.d.ts +27 -0
  101. package/westendAssetHub/json-rpc.d.ts +89 -0
  102. package/westendAssetHub/query.d.ts +1656 -0
  103. package/westendAssetHub/runtime.d.ts +652 -0
  104. package/westendAssetHub/tx.d.ts +8984 -0
  105. package/westendAssetHub/types.d.ts +12292 -0
@@ -0,0 +1,27 @@
1
+ // Generated by @dedot/codegen
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 VersionedRococoApi<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 RococoApi {
25
+ legacy: VersionedRococoApi<RpcLegacy>;
26
+ v2: VersionedRococoApi<RpcV2>;
27
+ }
@@ -0,0 +1,103 @@
1
+ // Generated by @dedot/codegen
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
+ | 'babe_epochAuthorship'
24
+ | 'beefy_getFinalizedHead'
25
+ | 'beefy_subscribeJustifications'
26
+ | 'chainHead_v1_body'
27
+ | 'chainHead_v1_call'
28
+ | 'chainHead_v1_continue'
29
+ | 'chainHead_v1_follow'
30
+ | 'chainHead_v1_header'
31
+ | 'chainHead_v1_stopOperation'
32
+ | 'chainHead_v1_storage'
33
+ | 'chainHead_v1_unpin'
34
+ | 'chainSpec_v1_chainName'
35
+ | 'chainSpec_v1_genesisHash'
36
+ | 'chainSpec_v1_properties'
37
+ | 'chain_getBlock'
38
+ | 'chain_getBlockHash'
39
+ | 'chain_getFinalizedHead'
40
+ | 'chain_getHeader'
41
+ | 'chain_subscribeAllHeads'
42
+ | 'chain_subscribeFinalizedHeads'
43
+ | 'chain_subscribeNewHeads'
44
+ | 'childstate_getKeys'
45
+ | 'childstate_getKeysPaged'
46
+ | 'childstate_getStorage'
47
+ | 'childstate_getStorageEntries'
48
+ | 'childstate_getStorageHash'
49
+ | 'childstate_getStorageSize'
50
+ | 'grandpa_proveFinality'
51
+ | 'grandpa_roundState'
52
+ | 'grandpa_subscribeJustifications'
53
+ | 'mmr_generateProof'
54
+ | 'mmr_root'
55
+ | 'mmr_verifyProof'
56
+ | 'mmr_verifyProofStateless'
57
+ | 'offchain_localStorageGet'
58
+ | 'offchain_localStorageSet'
59
+ | 'payment_queryFeeDetails'
60
+ | 'payment_queryInfo'
61
+ | 'rpc_methods'
62
+ | 'state_call'
63
+ | 'state_getChildReadProof'
64
+ | 'state_getKeys'
65
+ | 'state_getKeysPaged'
66
+ | 'state_getMetadata'
67
+ | 'state_getPairs'
68
+ | 'state_getReadProof'
69
+ | 'state_getRuntimeVersion'
70
+ | 'state_getStorage'
71
+ | 'state_getStorageHash'
72
+ | 'state_getStorageSize'
73
+ | 'state_queryStorage'
74
+ | 'state_queryStorageAt'
75
+ | 'state_subscribeRuntimeVersion'
76
+ | 'state_subscribeStorage'
77
+ | 'state_traceBlock'
78
+ | 'state_trieMigrationStatus'
79
+ | 'sync_state_genSyncSpec'
80
+ | 'system_accountNextIndex'
81
+ | 'system_addLogFilter'
82
+ | 'system_addReservedPeer'
83
+ | 'system_chain'
84
+ | 'system_chainType'
85
+ | 'system_dryRun'
86
+ | 'system_health'
87
+ | 'system_localListenAddresses'
88
+ | 'system_localPeerId'
89
+ | 'system_name'
90
+ | 'system_nodeRoles'
91
+ | 'system_peers'
92
+ | 'system_properties'
93
+ | 'system_removeReservedPeer'
94
+ | 'system_reservedPeers'
95
+ | 'system_resetLogFilter'
96
+ | 'system_syncState'
97
+ | 'system_unstable_networkState'
98
+ | 'system_version'
99
+ | 'transactionWatch_v1_submitAndWatch'
100
+ | 'transaction_v1_broadcast'
101
+ | 'transaction_v1_stop'
102
+ > &
103
+ GenericJsonRpcApis<Rv>;