@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,596 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types';
4
+ import type {
5
+ RuntimeVersion,
6
+ Header,
7
+ DispatchError,
8
+ Result,
9
+ UncheckedExtrinsicLike,
10
+ UncheckedExtrinsic,
11
+ H256,
12
+ Bytes,
13
+ BytesLike,
14
+ AccountId32Like,
15
+ AccountId32,
16
+ } from 'dedot/codecs';
17
+ import type {
18
+ SpRuntimeBlock,
19
+ SpCoreOpaqueMetadata,
20
+ SpRuntimeTransactionValidityTransactionValidityError,
21
+ SpInherentsInherentData,
22
+ SpInherentsCheckInherentsResult,
23
+ SpRuntimeTransactionValidityValidTransaction,
24
+ SpRuntimeTransactionValidityTransactionSource,
25
+ SpConsensusSlotsSlotDuration,
26
+ SpConsensusAuraSr25519AppSr25519Public,
27
+ SpCoreCryptoKeyTypeId,
28
+ PalletTransactionPaymentRuntimeDispatchInfo,
29
+ PalletTransactionPaymentFeeDetails,
30
+ SpWeightsWeightV2Weight,
31
+ PrimitivesAppPublic,
32
+ PrimitivesApiError,
33
+ PrimitivesSessionAuthorityData,
34
+ PrimitivesSessionCommittee,
35
+ PrimitivesSessionValidatorError,
36
+ PalletContractsPrimitivesContractResult,
37
+ PalletContractsPrimitivesContractResultResult,
38
+ PalletContractsPrimitivesCode,
39
+ PalletContractsPrimitivesCodeUploadReturnValue,
40
+ PalletContractsWasmDeterminism,
41
+ PalletContractsPrimitivesContractAccessError,
42
+ } from './types';
43
+
44
+ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
45
+ /**
46
+ * @runtimeapi: Core - 0xdf6acb689907609b
47
+ **/
48
+ core: {
49
+ /**
50
+ * Returns the version of the runtime.
51
+ *
52
+ * @callname: Core_version
53
+ **/
54
+ version: GenericRuntimeApiMethod<Rv, () => Promise<RuntimeVersion>>;
55
+
56
+ /**
57
+ * Execute the given block.
58
+ *
59
+ * @callname: Core_execute_block
60
+ * @param {SpRuntimeBlock} block
61
+ **/
62
+ executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock) => Promise<[]>>;
63
+
64
+ /**
65
+ * Initialize a block with the given header.
66
+ *
67
+ * @callname: Core_initialize_block
68
+ * @param {Header} header
69
+ **/
70
+ initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
71
+
72
+ /**
73
+ * Generic runtime api call
74
+ **/
75
+ [method: string]: GenericRuntimeApiMethod<Rv>;
76
+ };
77
+ /**
78
+ * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
79
+ **/
80
+ metadata: {
81
+ /**
82
+ * Returns the metadata of a runtime.
83
+ *
84
+ * @callname: Metadata_metadata
85
+ **/
86
+ metadata: GenericRuntimeApiMethod<Rv, () => Promise<SpCoreOpaqueMetadata>>;
87
+
88
+ /**
89
+ * Returns the metadata at a given version.
90
+ *
91
+ * If the given `version` isn't supported, this will return `None`.
92
+ * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
93
+ *
94
+ * @callname: Metadata_metadata_at_version
95
+ * @param {number} version
96
+ **/
97
+ metadataAtVersion: GenericRuntimeApiMethod<Rv, (version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
98
+
99
+ /**
100
+ * Returns the supported metadata versions.
101
+ *
102
+ * This can be used to call `metadata_at_version`.
103
+ *
104
+ * @callname: Metadata_metadata_versions
105
+ **/
106
+ metadataVersions: GenericRuntimeApiMethod<Rv, () => Promise<Array<number>>>;
107
+
108
+ /**
109
+ * Generic runtime api call
110
+ **/
111
+ [method: string]: GenericRuntimeApiMethod<Rv>;
112
+ };
113
+ /**
114
+ * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
115
+ **/
116
+ blockBuilder: {
117
+ /**
118
+ * Apply the given extrinsic.
119
+ *
120
+ * Returns an inclusion outcome which specifies if this extrinsic is included in
121
+ * this block or not.
122
+ *
123
+ * @callname: BlockBuilder_apply_extrinsic
124
+ * @param {UncheckedExtrinsicLike} extrinsic
125
+ **/
126
+ applyExtrinsic: GenericRuntimeApiMethod<
127
+ Rv,
128
+ (
129
+ extrinsic: UncheckedExtrinsicLike,
130
+ ) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
131
+ >;
132
+
133
+ /**
134
+ * Finish the current block.
135
+ *
136
+ * @callname: BlockBuilder_finalize_block
137
+ **/
138
+ finalizeBlock: GenericRuntimeApiMethod<Rv, () => Promise<Header>>;
139
+
140
+ /**
141
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
142
+ *
143
+ * @callname: BlockBuilder_inherent_extrinsics
144
+ * @param {SpInherentsInherentData} inherent
145
+ **/
146
+ inherentExtrinsics: GenericRuntimeApiMethod<
147
+ Rv,
148
+ (inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
149
+ >;
150
+
151
+ /**
152
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
153
+ *
154
+ * @callname: BlockBuilder_check_inherents
155
+ * @param {SpRuntimeBlock} block
156
+ * @param {SpInherentsInherentData} data
157
+ **/
158
+ checkInherents: GenericRuntimeApiMethod<
159
+ Rv,
160
+ (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
161
+ >;
162
+
163
+ /**
164
+ * Generic runtime api call
165
+ **/
166
+ [method: string]: GenericRuntimeApiMethod<Rv>;
167
+ };
168
+ /**
169
+ * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
170
+ **/
171
+ taggedTransactionQueue: {
172
+ /**
173
+ * Validate the transaction.
174
+ *
175
+ * This method is invoked by the transaction pool to learn details about given transaction.
176
+ * The implementation should make sure to verify the correctness of the transaction
177
+ * against current state. The given `block_hash` corresponds to the hash of the block
178
+ * that is used as current state.
179
+ *
180
+ * Note that this call may be performed by the pool multiple times and transactions
181
+ * might be verified in any possible order.
182
+ *
183
+ * @callname: TaggedTransactionQueue_validate_transaction
184
+ * @param {SpRuntimeTransactionValidityTransactionSource} source
185
+ * @param {UncheckedExtrinsicLike} tx
186
+ * @param {H256} block_hash
187
+ **/
188
+ validateTransaction: GenericRuntimeApiMethod<
189
+ Rv,
190
+ (
191
+ source: SpRuntimeTransactionValidityTransactionSource,
192
+ tx: UncheckedExtrinsicLike,
193
+ blockHash: H256,
194
+ ) => Promise<
195
+ Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
196
+ >
197
+ >;
198
+
199
+ /**
200
+ * Generic runtime api call
201
+ **/
202
+ [method: string]: GenericRuntimeApiMethod<Rv>;
203
+ };
204
+ /**
205
+ * @runtimeapi: AuraApi - 0xdd718d5cc53262d4
206
+ **/
207
+ auraApi: {
208
+ /**
209
+ * Returns the slot duration for Aura.
210
+ *
211
+ * Currently, only the value provided by this type at genesis will be used.
212
+ *
213
+ * @callname: AuraApi_slot_duration
214
+ **/
215
+ slotDuration: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusSlotsSlotDuration>>;
216
+
217
+ /**
218
+ * Return the current set of authorities.
219
+ *
220
+ * @callname: AuraApi_authorities
221
+ **/
222
+ authorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
223
+
224
+ /**
225
+ * Generic runtime api call
226
+ **/
227
+ [method: string]: GenericRuntimeApiMethod<Rv>;
228
+ };
229
+ /**
230
+ * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
231
+ **/
232
+ offchainWorkerApi: {
233
+ /**
234
+ * Starts the off-chain task for given block header.
235
+ *
236
+ * @callname: OffchainWorkerApi_offchain_worker
237
+ * @param {Header} header
238
+ **/
239
+ offchainWorker: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
240
+
241
+ /**
242
+ * Generic runtime api call
243
+ **/
244
+ [method: string]: GenericRuntimeApiMethod<Rv>;
245
+ };
246
+ /**
247
+ * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
248
+ **/
249
+ sessionKeys: {
250
+ /**
251
+ * Generate a set of session keys with optionally using the given seed.
252
+ * The keys should be stored within the keystore exposed via runtime
253
+ * externalities.
254
+ *
255
+ * The seed needs to be a valid `utf8` string.
256
+ *
257
+ * Returns the concatenated SCALE encoded public keys.
258
+ *
259
+ * @callname: SessionKeys_generate_session_keys
260
+ * @param {BytesLike | undefined} seed
261
+ **/
262
+ generateSessionKeys: GenericRuntimeApiMethod<Rv, (seed?: BytesLike | undefined) => Promise<Bytes>>;
263
+
264
+ /**
265
+ * Decode the given public session keys.
266
+ *
267
+ * Returns the list of public raw public keys + key type.
268
+ *
269
+ * @callname: SessionKeys_decode_session_keys
270
+ * @param {BytesLike} encoded
271
+ **/
272
+ decodeSessionKeys: GenericRuntimeApiMethod<
273
+ Rv,
274
+ (encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
275
+ >;
276
+
277
+ /**
278
+ * Generic runtime api call
279
+ **/
280
+ [method: string]: GenericRuntimeApiMethod<Rv>;
281
+ };
282
+ /**
283
+ * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
284
+ **/
285
+ accountNonceApi: {
286
+ /**
287
+ * Get current account nonce of given `AccountId`.
288
+ *
289
+ * @callname: AccountNonceApi_account_nonce
290
+ * @param {AccountId32Like} account
291
+ **/
292
+ accountNonce: GenericRuntimeApiMethod<Rv, (account: AccountId32Like) => Promise<number>>;
293
+
294
+ /**
295
+ * Generic runtime api call
296
+ **/
297
+ [method: string]: GenericRuntimeApiMethod<Rv>;
298
+ };
299
+ /**
300
+ * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
301
+ **/
302
+ transactionPaymentApi: {
303
+ /**
304
+ *
305
+ * @callname: TransactionPaymentApi_query_info
306
+ * @param {UncheckedExtrinsicLike} uxt
307
+ * @param {number} len
308
+ **/
309
+ queryInfo: GenericRuntimeApiMethod<
310
+ Rv,
311
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
312
+ >;
313
+
314
+ /**
315
+ *
316
+ * @callname: TransactionPaymentApi_query_fee_details
317
+ * @param {UncheckedExtrinsicLike} uxt
318
+ * @param {number} len
319
+ **/
320
+ queryFeeDetails: GenericRuntimeApiMethod<
321
+ Rv,
322
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
323
+ >;
324
+
325
+ /**
326
+ *
327
+ * @callname: TransactionPaymentApi_query_weight_to_fee
328
+ * @param {SpWeightsWeightV2Weight} weight
329
+ **/
330
+ queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
331
+
332
+ /**
333
+ *
334
+ * @callname: TransactionPaymentApi_query_length_to_fee
335
+ * @param {number} length
336
+ **/
337
+ queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
338
+
339
+ /**
340
+ * Generic runtime api call
341
+ **/
342
+ [method: string]: GenericRuntimeApiMethod<Rv>;
343
+ };
344
+ /**
345
+ * @runtimeapi: AlephSessionApi - 0x2be3f75b696ad1f6
346
+ **/
347
+ alephSessionApi: {
348
+ /**
349
+ *
350
+ * @callname: AlephSessionApi_next_session_authorities
351
+ **/
352
+ nextSessionAuthorities: GenericRuntimeApiMethod<
353
+ Rv,
354
+ () => Promise<Result<Array<PrimitivesAppPublic>, PrimitivesApiError>>
355
+ >;
356
+
357
+ /**
358
+ *
359
+ * @callname: AlephSessionApi_authorities
360
+ **/
361
+ authorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<PrimitivesAppPublic>>>;
362
+
363
+ /**
364
+ *
365
+ * @callname: AlephSessionApi_next_session_authority_data
366
+ **/
367
+ nextSessionAuthorityData: GenericRuntimeApiMethod<
368
+ Rv,
369
+ () => Promise<Result<PrimitivesSessionAuthorityData, PrimitivesApiError>>
370
+ >;
371
+
372
+ /**
373
+ *
374
+ * @callname: AlephSessionApi_authority_data
375
+ **/
376
+ authorityData: GenericRuntimeApiMethod<Rv, () => Promise<PrimitivesSessionAuthorityData>>;
377
+
378
+ /**
379
+ *
380
+ * @callname: AlephSessionApi_session_period
381
+ **/
382
+ sessionPeriod: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
383
+
384
+ /**
385
+ *
386
+ * @callname: AlephSessionApi_millisecs_per_block
387
+ **/
388
+ millisecsPerBlock: GenericRuntimeApiMethod<Rv, () => Promise<bigint>>;
389
+
390
+ /**
391
+ *
392
+ * @callname: AlephSessionApi_finality_version
393
+ **/
394
+ finalityVersion: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
395
+
396
+ /**
397
+ *
398
+ * @callname: AlephSessionApi_next_session_finality_version
399
+ **/
400
+ nextSessionFinalityVersion: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
401
+
402
+ /**
403
+ * Predict finality committee and block producers for the given session. `session` must be
404
+ * within the current era (current, in the staking context).
405
+ *
406
+ * If the active era `E` starts in the session `a`, and ends in session `b` then from
407
+ * session `a` to session `b-1` this function can answer question who will be in the
408
+ * committee in the era `E`. In the last session of the era `E` (`b`) this can be used to
409
+ * determine all of the sessions in the era `E+1`.
410
+ *
411
+ * @callname: AlephSessionApi_predict_session_committee
412
+ * @param {number} session
413
+ **/
414
+ predictSessionCommittee: GenericRuntimeApiMethod<
415
+ Rv,
416
+ (session: number) => Promise<Result<PrimitivesSessionCommittee, PrimitivesSessionValidatorError>>
417
+ >;
418
+
419
+ /**
420
+ *
421
+ * @callname: AlephSessionApi_next_session_aura_authorities
422
+ **/
423
+ nextSessionAuraAuthorities: GenericRuntimeApiMethod<
424
+ Rv,
425
+ () => Promise<Array<[AccountId32, SpConsensusAuraSr25519AppSr25519Public]>>
426
+ >;
427
+
428
+ /**
429
+ * Returns owner (`AccountId`) corresponding to an AuthorityId (in some contexts referenced
430
+ * also as `aleph_key` - consensus engine's part of session keys) in the current session
431
+ * of AlephBFT (finalisation committee).
432
+ *
433
+ * @callname: AlephSessionApi_key_owner
434
+ * @param {PrimitivesAppPublic} key
435
+ **/
436
+ keyOwner: GenericRuntimeApiMethod<Rv, (key: PrimitivesAppPublic) => Promise<AccountId32 | undefined>>;
437
+
438
+ /**
439
+ * Generic runtime api call
440
+ **/
441
+ [method: string]: GenericRuntimeApiMethod<Rv>;
442
+ };
443
+ /**
444
+ * @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
445
+ **/
446
+ nominationPoolsApi: {
447
+ /**
448
+ * Returns the pending rewards for the member that the AccountId was given for.
449
+ *
450
+ * @callname: NominationPoolsApi_pending_rewards
451
+ * @param {AccountId32Like} who
452
+ **/
453
+ pendingRewards: GenericRuntimeApiMethod<Rv, (who: AccountId32Like) => Promise<bigint>>;
454
+
455
+ /**
456
+ * Returns the equivalent balance of `points` for a given pool.
457
+ *
458
+ * @callname: NominationPoolsApi_points_to_balance
459
+ * @param {number} pool_id
460
+ * @param {bigint} points
461
+ **/
462
+ pointsToBalance: GenericRuntimeApiMethod<Rv, (poolId: number, points: bigint) => Promise<bigint>>;
463
+
464
+ /**
465
+ * Returns the equivalent points of `new_funds` for a given pool.
466
+ *
467
+ * @callname: NominationPoolsApi_balance_to_points
468
+ * @param {number} pool_id
469
+ * @param {bigint} new_funds
470
+ **/
471
+ balanceToPoints: GenericRuntimeApiMethod<Rv, (poolId: number, newFunds: bigint) => Promise<bigint>>;
472
+
473
+ /**
474
+ * Generic runtime api call
475
+ **/
476
+ [method: string]: GenericRuntimeApiMethod<Rv>;
477
+ };
478
+ /**
479
+ * @runtimeapi: StakingApi - 0x18ef58a3b67ba770
480
+ **/
481
+ stakingApi: {
482
+ /**
483
+ * Returns the nominations quota for a nominator with a given balance.
484
+ *
485
+ * @callname: StakingApi_nominations_quota
486
+ * @param {bigint} balance
487
+ **/
488
+ nominationsQuota: GenericRuntimeApiMethod<Rv, (balance: bigint) => Promise<number>>;
489
+
490
+ /**
491
+ * Generic runtime api call
492
+ **/
493
+ [method: string]: GenericRuntimeApiMethod<Rv>;
494
+ };
495
+ /**
496
+ * @runtimeapi: ContractsApi - 0x68b66ba122c93fa7
497
+ **/
498
+ contractsApi: {
499
+ /**
500
+ * Perform a call from a specified account to a given contract.
501
+ *
502
+ * See [`crate::Pallet::bare_call`].
503
+ *
504
+ * @callname: ContractsApi_call
505
+ * @param {AccountId32Like} origin
506
+ * @param {AccountId32Like} dest
507
+ * @param {bigint} value
508
+ * @param {SpWeightsWeightV2Weight | undefined} gas_limit
509
+ * @param {bigint | undefined} storage_deposit_limit
510
+ * @param {BytesLike} input_data
511
+ **/
512
+ call: GenericRuntimeApiMethod<
513
+ Rv,
514
+ (
515
+ origin: AccountId32Like,
516
+ dest: AccountId32Like,
517
+ value: bigint,
518
+ gasLimit: SpWeightsWeightV2Weight | undefined,
519
+ storageDepositLimit: bigint | undefined,
520
+ inputData: BytesLike,
521
+ ) => Promise<PalletContractsPrimitivesContractResult>
522
+ >;
523
+
524
+ /**
525
+ * Instantiate a new contract.
526
+ *
527
+ * See `[crate::Pallet::bare_instantiate]`.
528
+ *
529
+ * @callname: ContractsApi_instantiate
530
+ * @param {AccountId32Like} origin
531
+ * @param {bigint} value
532
+ * @param {SpWeightsWeightV2Weight | undefined} gas_limit
533
+ * @param {bigint | undefined} storage_deposit_limit
534
+ * @param {PalletContractsPrimitivesCode} code
535
+ * @param {BytesLike} data
536
+ * @param {BytesLike} salt
537
+ **/
538
+ instantiate: GenericRuntimeApiMethod<
539
+ Rv,
540
+ (
541
+ origin: AccountId32Like,
542
+ value: bigint,
543
+ gasLimit: SpWeightsWeightV2Weight | undefined,
544
+ storageDepositLimit: bigint | undefined,
545
+ code: PalletContractsPrimitivesCode,
546
+ data: BytesLike,
547
+ salt: BytesLike,
548
+ ) => Promise<PalletContractsPrimitivesContractResultResult>
549
+ >;
550
+
551
+ /**
552
+ * Upload new code without instantiating a contract from it.
553
+ *
554
+ * See [`crate::Pallet::bare_upload_code`].
555
+ *
556
+ * @callname: ContractsApi_upload_code
557
+ * @param {AccountId32Like} origin
558
+ * @param {BytesLike} code
559
+ * @param {bigint | undefined} storage_deposit_limit
560
+ * @param {PalletContractsWasmDeterminism} determinism
561
+ **/
562
+ uploadCode: GenericRuntimeApiMethod<
563
+ Rv,
564
+ (
565
+ origin: AccountId32Like,
566
+ code: BytesLike,
567
+ storageDepositLimit: bigint | undefined,
568
+ determinism: PalletContractsWasmDeterminism,
569
+ ) => Promise<Result<PalletContractsPrimitivesCodeUploadReturnValue, DispatchError>>
570
+ >;
571
+
572
+ /**
573
+ * Query a given storage key in a given contract.
574
+ *
575
+ * Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the
576
+ * specified account and `Ok(None)` if it doesn't. If the account specified by the address
577
+ * doesn't exist, or doesn't have a contract then `Err` is returned.
578
+ *
579
+ * @callname: ContractsApi_get_storage
580
+ * @param {AccountId32Like} address
581
+ * @param {BytesLike} key
582
+ **/
583
+ getStorage: GenericRuntimeApiMethod<
584
+ Rv,
585
+ (
586
+ address: AccountId32Like,
587
+ key: BytesLike,
588
+ ) => Promise<Result<Bytes | undefined, PalletContractsPrimitivesContractAccessError>>
589
+ >;
590
+
591
+ /**
592
+ * Generic runtime api call
593
+ **/
594
+ [method: string]: GenericRuntimeApiMethod<Rv>;
595
+ };
596
+ }