@dedot/chaintypes 0.0.1-next.f5bf4fc2.1 → 0.1.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/README.md +3 -1
- package/aleph/consts.d.ts +94 -13
- package/aleph/errors.d.ts +251 -182
- package/aleph/events.d.ts +319 -102
- package/aleph/index.d.ts +16 -11
- package/aleph/json-rpc.d.ts +76 -0
- package/aleph/query.d.ts +261 -168
- package/aleph/runtime.d.ts +90 -39
- package/aleph/tx.d.ts +1822 -1052
- package/aleph/types.d.ts +458 -138
- package/astar/consts.d.ts +112 -116
- package/astar/errors.d.ts +342 -409
- package/astar/events.d.ts +449 -358
- package/astar/index.d.ts +16 -11
- package/astar/json-rpc.d.ts +131 -0
- package/astar/query.d.ts +459 -367
- package/astar/runtime.d.ts +591 -98
- package/astar/tx.d.ts +2485 -3430
- package/astar/types.d.ts +1530 -4436
- package/index.d.ts +3 -0
- package/index.ts +3 -0
- package/kusama/consts.d.ts +54 -115
- package/kusama/errors.d.ts +696 -682
- package/kusama/events.d.ts +592 -407
- package/kusama/index.d.ts +16 -11
- package/kusama/json-rpc.d.ts +103 -0
- package/kusama/query.d.ts +840 -538
- package/kusama/runtime.d.ts +136 -65
- package/kusama/tx.d.ts +4557 -3051
- package/kusama/types.d.ts +1437 -1161
- package/kusamaAssetHub/consts.d.ts +66 -20
- package/kusamaAssetHub/errors.d.ts +428 -308
- package/kusamaAssetHub/events.d.ts +497 -305
- package/kusamaAssetHub/index.d.ts +16 -11
- package/kusamaAssetHub/json-rpc.d.ts +89 -0
- package/kusamaAssetHub/query.d.ts +376 -253
- package/kusamaAssetHub/runtime.d.ts +82 -41
- package/kusamaAssetHub/tx.d.ts +3264 -1955
- package/kusamaAssetHub/types.d.ts +1262 -726
- package/moonbeam/consts.d.ts +115 -170
- package/moonbeam/errors.d.ts +564 -787
- package/moonbeam/events.d.ts +583 -746
- package/moonbeam/index.d.ts +16 -11
- package/moonbeam/json-rpc.d.ts +137 -0
- package/moonbeam/query.d.ts +507 -607
- package/moonbeam/runtime.d.ts +132 -47
- package/moonbeam/tx.d.ts +3309 -3268
- package/moonbeam/types.d.ts +1484 -1375
- package/package.json +4 -14
- package/paseo/consts.d.ts +1331 -0
- package/paseo/errors.d.ts +2644 -0
- package/paseo/events.d.ts +2821 -0
- package/paseo/index.d.ts +27 -0
- package/paseo/json-rpc.d.ts +103 -0
- package/paseo/query.d.ts +3709 -0
- package/paseo/runtime.d.ts +1205 -0
- package/paseo/tx.d.ts +8024 -0
- package/paseo/types.d.ts +10194 -0
- package/polkadot/consts.d.ts +95 -50
- package/polkadot/errors.d.ts +619 -468
- package/polkadot/events.d.ts +582 -257
- package/polkadot/index.d.ts +16 -11
- package/polkadot/json-rpc.d.ts +103 -0
- package/polkadot/query.d.ts +770 -399
- package/polkadot/runtime.d.ts +136 -65
- package/polkadot/tx.d.ts +4268 -2368
- package/polkadot/types.d.ts +1570 -745
- package/polkadotAssetHub/consts.d.ts +154 -15
- package/polkadotAssetHub/errors.d.ts +615 -234
- package/polkadotAssetHub/events.d.ts +829 -270
- package/polkadotAssetHub/index.d.ts +16 -11
- package/polkadotAssetHub/json-rpc.d.ts +89 -0
- package/polkadotAssetHub/query.d.ts +438 -243
- package/polkadotAssetHub/runtime.d.ts +147 -40
- package/polkadotAssetHub/tx.d.ts +3747 -1643
- package/polkadotAssetHub/types.d.ts +2096 -806
- package/rococo/consts.d.ts +51 -32
- package/rococo/errors.d.ts +549 -605
- package/rococo/events.d.ts +447 -238
- package/rococo/index.d.ts +16 -11
- package/rococo/json-rpc.d.ts +103 -0
- package/rococo/query.d.ts +724 -426
- package/rococo/runtime.d.ts +366 -144
- package/rococo/tx.d.ts +6850 -3079
- package/rococo/types.d.ts +5959 -1619
- package/rococoAssetHub/consts.d.ts +92 -7
- package/rococoAssetHub/errors.d.ts +381 -285
- package/rococoAssetHub/events.d.ts +461 -140
- package/rococoAssetHub/index.d.ts +16 -11
- package/rococoAssetHub/json-rpc.d.ts +89 -0
- package/rococoAssetHub/query.d.ts +487 -174
- package/rococoAssetHub/runtime.d.ts +235 -51
- package/rococoAssetHub/tx.d.ts +6005 -2163
- package/rococoAssetHub/types.d.ts +6683 -1003
- package/substrate/consts.d.ts +233 -52
- package/substrate/errors.d.ts +966 -781
- package/substrate/events.d.ts +1226 -381
- package/substrate/index.d.ts +16 -11
- package/substrate/json-rpc.d.ts +103 -0
- package/substrate/query.d.ts +1090 -460
- package/substrate/runtime.d.ts +274 -71
- package/substrate/tx.d.ts +12313 -4510
- package/substrate/types.d.ts +11036 -1432
- package/westend/consts.d.ts +1349 -0
- package/westend/errors.d.ts +2736 -0
- package/westend/events.d.ts +2906 -0
- package/westend/index.d.ts +27 -0
- package/westend/json-rpc.d.ts +103 -0
- package/westend/query.d.ts +3855 -0
- package/westend/runtime.d.ts +1437 -0
- package/westend/tx.d.ts +10248 -0
- package/westend/types.d.ts +14769 -0
- package/westendAssetHub/consts.d.ts +126 -7
- package/westendAssetHub/errors.d.ts +426 -285
- package/westendAssetHub/events.d.ts +498 -140
- package/westendAssetHub/index.d.ts +16 -11
- package/westendAssetHub/json-rpc.d.ts +89 -0
- package/westendAssetHub/query.d.ts +526 -174
- package/westendAssetHub/runtime.d.ts +245 -56
- package/westendAssetHub/tx.d.ts +6196 -2166
- package/westendAssetHub/types.d.ts +6913 -1002
- package/westendPeople/consts.d.ts +434 -0
- package/westendPeople/errors.d.ts +769 -0
- package/westendPeople/events.d.ts +1082 -0
- package/westendPeople/index.d.ts +27 -0
- package/westendPeople/json-rpc.d.ts +89 -0
- package/westendPeople/query.d.ts +1209 -0
- package/westendPeople/runtime.d.ts +636 -0
- package/westendPeople/tx.d.ts +2891 -0
- package/westendPeople/types.d.ts +4984 -0
- package/aleph/rpc.d.ts +0 -727
- package/astar/rpc.d.ts +0 -974
- package/kusama/rpc.d.ts +0 -904
- package/kusamaAssetHub/rpc.d.ts +0 -746
- package/moonbeam/rpc.d.ts +0 -1015
- package/packageInfo.d.ts +0 -4
- package/packageInfo.js +0 -2
- package/packageInfo.ts +0 -3
- package/polkadot/rpc.d.ts +0 -904
- package/polkadotAssetHub/rpc.d.ts +0 -746
- package/rococo/rpc.d.ts +0 -904
- package/rococoAssetHub/rpc.d.ts +0 -746
- package/substrate/rpc.d.ts +0 -894
- package/westendAssetHub/rpc.d.ts +0 -746
package/kusama/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Generated by
|
|
1
|
+
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import { GenericSubstrateApi } from '
|
|
3
|
+
import type { GenericSubstrateApi, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types';
|
|
4
4
|
import { ChainConsts } from './consts';
|
|
5
5
|
import { ChainStorage } from './query';
|
|
6
|
-
import {
|
|
6
|
+
import { ChainJsonRpcApis } from './json-rpc';
|
|
7
7
|
import { ChainErrors } from './errors';
|
|
8
8
|
import { ChainEvents } from './events';
|
|
9
9
|
import { RuntimeApis } from './runtime';
|
|
@@ -11,12 +11,17 @@ import { ChainTx } from './tx';
|
|
|
11
11
|
|
|
12
12
|
export * from './types';
|
|
13
13
|
|
|
14
|
-
export interface
|
|
15
|
-
rpc:
|
|
16
|
-
consts: ChainConsts
|
|
17
|
-
query: ChainStorage
|
|
18
|
-
errors: ChainErrors
|
|
19
|
-
events: ChainEvents
|
|
20
|
-
call: RuntimeApis
|
|
21
|
-
tx: ChainTx
|
|
14
|
+
export interface VersionedKusamaApi<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 KusamaApi {
|
|
25
|
+
legacy: VersionedKusamaApi<RpcLegacy>;
|
|
26
|
+
v2: VersionedKusamaApi<RpcV2>;
|
|
22
27
|
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
| '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>;
|