@dedot/chaintypes 0.99.0 → 0.100.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 -0
- package/basilisk/consts.d.ts +1183 -0
- package/basilisk/errors.d.ts +2631 -0
- package/basilisk/events.d.ts +3297 -0
- package/basilisk/index.d.ts +31 -0
- package/basilisk/json-rpc.d.ts +92 -0
- package/basilisk/query.d.ts +2380 -0
- package/basilisk/runtime.d.ts +272 -0
- package/basilisk/tx.d.ts +9095 -0
- package/basilisk/types.d.ts +13749 -0
- package/hydration/consts.d.ts +1854 -0
- package/hydration/errors.d.ts +3914 -0
- package/hydration/events.d.ts +4364 -0
- package/hydration/index.d.ts +31 -0
- package/hydration/json-rpc.d.ts +141 -0
- package/hydration/query.d.ts +3243 -0
- package/hydration/runtime.d.ts +940 -0
- package/hydration/tx.d.ts +12766 -0
- package/hydration/types.d.ts +18995 -0
- package/index.d.ts +11 -4
- package/package.json +18 -3
- package/paseo-hydration/consts.d.ts +1854 -0
- package/paseo-hydration/errors.d.ts +3919 -0
- package/paseo-hydration/events.d.ts +4367 -0
- package/paseo-hydration/index.d.ts +31 -0
- package/paseo-hydration/json-rpc.d.ts +138 -0
- package/paseo-hydration/query.d.ts +3256 -0
- package/paseo-hydration/runtime.d.ts +968 -0
- package/paseo-hydration/tx.d.ts +12848 -0
- package/paseo-hydration/types.d.ts +19032 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
// Generated by dedot cli
|
|
2
|
+
|
|
3
|
+
import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type {
|
|
5
|
+
Option,
|
|
6
|
+
OpaqueMetadata,
|
|
7
|
+
ApplyExtrinsicResult,
|
|
8
|
+
OpaqueExtrinsicLike,
|
|
9
|
+
CheckInherentsResult,
|
|
10
|
+
Block,
|
|
11
|
+
InherentData,
|
|
12
|
+
OpaqueExtrinsic,
|
|
13
|
+
Header,
|
|
14
|
+
TransactionValidity,
|
|
15
|
+
TransactionSource,
|
|
16
|
+
BlockHash,
|
|
17
|
+
Bytes,
|
|
18
|
+
BytesLike,
|
|
19
|
+
KeyTypeId,
|
|
20
|
+
Nonce,
|
|
21
|
+
AccountId32Like,
|
|
22
|
+
RuntimeDispatchInfo,
|
|
23
|
+
FeeDetails,
|
|
24
|
+
Balance,
|
|
25
|
+
Weight,
|
|
26
|
+
Result,
|
|
27
|
+
Text,
|
|
28
|
+
} from 'dedot/codecs';
|
|
29
|
+
|
|
30
|
+
export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
|
|
31
|
+
/**
|
|
32
|
+
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
33
|
+
* @version: 2
|
|
34
|
+
**/
|
|
35
|
+
metadata: {
|
|
36
|
+
/**
|
|
37
|
+
* Returns the metadata at a given version.
|
|
38
|
+
*
|
|
39
|
+
* @callname: Metadata_metadata_at_version
|
|
40
|
+
* @param {number} version
|
|
41
|
+
**/
|
|
42
|
+
metadataAtVersion: GenericRuntimeApiMethod<Rv, (version: number) => Promise<Option<OpaqueMetadata>>>;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Returns the supported metadata versions.
|
|
46
|
+
*
|
|
47
|
+
* @callname: Metadata_metadata_versions
|
|
48
|
+
**/
|
|
49
|
+
metadataVersions: GenericRuntimeApiMethod<Rv, () => Promise<Array<number>>>;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Returns the metadata of a runtime.
|
|
53
|
+
*
|
|
54
|
+
* @callname: Metadata_metadata
|
|
55
|
+
**/
|
|
56
|
+
metadata: GenericRuntimeApiMethod<Rv, () => Promise<OpaqueMetadata>>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Generic runtime api call
|
|
60
|
+
**/
|
|
61
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
65
|
+
* @version: 6
|
|
66
|
+
**/
|
|
67
|
+
blockBuilder: {
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @callname: BlockBuilder_apply_extrinsic
|
|
71
|
+
* @param {OpaqueExtrinsicLike} extrinsic
|
|
72
|
+
**/
|
|
73
|
+
applyExtrinsic: GenericRuntimeApiMethod<Rv, (extrinsic: OpaqueExtrinsicLike) => Promise<ApplyExtrinsicResult>>;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @callname: BlockBuilder_check_inherents
|
|
78
|
+
* @param {Block} block
|
|
79
|
+
* @param {InherentData} data
|
|
80
|
+
**/
|
|
81
|
+
checkInherents: GenericRuntimeApiMethod<Rv, (block: Block, data: InherentData) => Promise<CheckInherentsResult>>;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @callname: BlockBuilder_inherent_extrinsics
|
|
86
|
+
* @param {InherentData} inherent
|
|
87
|
+
**/
|
|
88
|
+
inherentExtrinsics: GenericRuntimeApiMethod<Rv, (inherent: InherentData) => Promise<Array<OpaqueExtrinsic>>>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @callname: BlockBuilder_finalize_block
|
|
93
|
+
**/
|
|
94
|
+
finalizeBlock: GenericRuntimeApiMethod<Rv, () => Promise<Header>>;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Generic runtime api call
|
|
98
|
+
**/
|
|
99
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
103
|
+
* @version: 3
|
|
104
|
+
**/
|
|
105
|
+
taggedTransactionQueue: {
|
|
106
|
+
/**
|
|
107
|
+
* Validate the transaction.
|
|
108
|
+
*
|
|
109
|
+
* @callname: TaggedTransactionQueue_validate_transaction
|
|
110
|
+
* @param {TransactionSource} source
|
|
111
|
+
* @param {OpaqueExtrinsicLike} tx
|
|
112
|
+
* @param {BlockHash} blockHash
|
|
113
|
+
**/
|
|
114
|
+
validateTransaction: GenericRuntimeApiMethod<
|
|
115
|
+
Rv,
|
|
116
|
+
(source: TransactionSource, tx: OpaqueExtrinsicLike, blockHash: BlockHash) => Promise<TransactionValidity>
|
|
117
|
+
>;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Generic runtime api call
|
|
121
|
+
**/
|
|
122
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
126
|
+
* @version: 2
|
|
127
|
+
**/
|
|
128
|
+
offchainWorkerApi: {
|
|
129
|
+
/**
|
|
130
|
+
* Starts the off-chain task for given block header.
|
|
131
|
+
*
|
|
132
|
+
* @callname: OffchainWorkerApi_offchain_worker
|
|
133
|
+
* @param {Header} header
|
|
134
|
+
**/
|
|
135
|
+
offchainWorker: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Generic runtime api call
|
|
139
|
+
**/
|
|
140
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
144
|
+
* @version: 1
|
|
145
|
+
**/
|
|
146
|
+
sessionKeys: {
|
|
147
|
+
/**
|
|
148
|
+
* Generate a set of session keys with optionally using the given seed.
|
|
149
|
+
* The keys should be stored within the keystore exposed via runtime
|
|
150
|
+
* externalities.
|
|
151
|
+
*
|
|
152
|
+
* The seed needs to be a valid `utf8` string.
|
|
153
|
+
*
|
|
154
|
+
* Returns the concatenated SCALE encoded public keys.
|
|
155
|
+
*
|
|
156
|
+
* @callname: SessionKeys_generate_session_keys
|
|
157
|
+
* @param {Option<BytesLike>} seed
|
|
158
|
+
**/
|
|
159
|
+
generateSessionKeys: GenericRuntimeApiMethod<Rv, (seed?: Option<BytesLike>) => Promise<Bytes>>;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Decode the given public session key
|
|
163
|
+
*
|
|
164
|
+
* Returns the list of public raw public keys + key typ
|
|
165
|
+
*
|
|
166
|
+
* @callname: SessionKeys_decode_session_keys
|
|
167
|
+
* @param {BytesLike} encoded
|
|
168
|
+
**/
|
|
169
|
+
decodeSessionKeys: GenericRuntimeApiMethod<Rv, (encoded: BytesLike) => Promise<Option<Array<[Bytes, KeyTypeId]>>>>;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Generic runtime api call
|
|
173
|
+
**/
|
|
174
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
178
|
+
* @version: 1
|
|
179
|
+
**/
|
|
180
|
+
accountNonceApi: {
|
|
181
|
+
/**
|
|
182
|
+
* The API to query account nonce (aka transaction index)
|
|
183
|
+
*
|
|
184
|
+
* @callname: AccountNonceApi_account_nonce
|
|
185
|
+
* @param {AccountId32Like} accountId
|
|
186
|
+
**/
|
|
187
|
+
accountNonce: GenericRuntimeApiMethod<Rv, (accountId: AccountId32Like) => Promise<Nonce>>;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Generic runtime api call
|
|
191
|
+
**/
|
|
192
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
196
|
+
* @version: 4
|
|
197
|
+
**/
|
|
198
|
+
transactionPaymentApi: {
|
|
199
|
+
/**
|
|
200
|
+
* The transaction info
|
|
201
|
+
*
|
|
202
|
+
* @callname: TransactionPaymentApi_query_info
|
|
203
|
+
* @param {OpaqueExtrinsicLike} uxt
|
|
204
|
+
* @param {number} len
|
|
205
|
+
**/
|
|
206
|
+
queryInfo: GenericRuntimeApiMethod<Rv, (uxt: OpaqueExtrinsicLike, len: number) => Promise<RuntimeDispatchInfo>>;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* The transaction fee details
|
|
210
|
+
*
|
|
211
|
+
* @callname: TransactionPaymentApi_query_fee_details
|
|
212
|
+
* @param {OpaqueExtrinsicLike} uxt
|
|
213
|
+
* @param {number} len
|
|
214
|
+
**/
|
|
215
|
+
queryFeeDetails: GenericRuntimeApiMethod<Rv, (uxt: OpaqueExtrinsicLike, len: number) => Promise<FeeDetails>>;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Query the output of the current LengthToFee given some input
|
|
219
|
+
*
|
|
220
|
+
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
221
|
+
* @param {number} length
|
|
222
|
+
**/
|
|
223
|
+
queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<Balance>>;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Query the output of the current WeightToFee given some input
|
|
227
|
+
*
|
|
228
|
+
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
229
|
+
* @param {Weight} weight
|
|
230
|
+
**/
|
|
231
|
+
queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: Weight) => Promise<Balance>>;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Generic runtime api call
|
|
235
|
+
**/
|
|
236
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
240
|
+
* @version: 1
|
|
241
|
+
**/
|
|
242
|
+
genesisBuilder: {
|
|
243
|
+
/**
|
|
244
|
+
* Creates the default `GenesisConfig` and returns it as a JSON blob.
|
|
245
|
+
*
|
|
246
|
+
* This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON
|
|
247
|
+
* blob. It returns a `Vec<u8>` containing the JSON representation of the default `GenesisConfig`.
|
|
248
|
+
*
|
|
249
|
+
* @callname: GenesisBuilder_create_default_config
|
|
250
|
+
**/
|
|
251
|
+
createDefaultConfig: GenericRuntimeApiMethod<Rv, () => Promise<Bytes>>;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
|
255
|
+
*
|
|
256
|
+
* This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage.
|
|
257
|
+
* If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned.
|
|
258
|
+
* It is recommended to log any errors encountered during the process.
|
|
259
|
+
*
|
|
260
|
+
* Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used.
|
|
261
|
+
*
|
|
262
|
+
* @callname: GenesisBuilder_build_config
|
|
263
|
+
* @param {BytesLike} json
|
|
264
|
+
**/
|
|
265
|
+
buildConfig: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], Text>>>;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Generic runtime api call
|
|
269
|
+
**/
|
|
270
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
271
|
+
};
|
|
272
|
+
}
|