@dedot/chaintypes 0.176.0 → 0.177.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.176.0",
3
+ "version": "0.177.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -25,7 +25,7 @@
25
25
  "directory": "dist"
26
26
  },
27
27
  "license": "Apache-2.0",
28
- "gitHead": "958ce1b488ca31d53f3426dd03a69aa5eb888f0b",
28
+ "gitHead": "4c3b334cb8f5f577a10de5c825932c35d6ac92d7",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -58,7 +58,7 @@ export interface VersionedPolkadotPeopleApi<Rv extends RpcVersion> extends Gener
58
58
 
59
59
  /**
60
60
  * @name: PolkadotPeopleApi
61
- * @specVersion: 1007001
61
+ * @specVersion: 2000000
62
62
  **/
63
63
  export interface PolkadotPeopleApi {
64
64
  legacy: VersionedPolkadotPeopleApi<RpcLegacy>;
@@ -27,6 +27,8 @@ import type {
27
27
  SpRuntimeTransactionValidityValidTransaction,
28
28
  SpRuntimeTransactionValidityTransactionSource,
29
29
  SpCoreCryptoKeyTypeId,
30
+ FrameSupportViewFunctionsViewFunctionDispatchError,
31
+ FrameSupportViewFunctionsViewFunctionId,
30
32
  PalletTransactionPaymentRuntimeDispatchInfo,
31
33
  PalletTransactionPaymentFeeDetails,
32
34
  SpWeightsWeightV2Weight,
@@ -330,6 +332,30 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
330
332
  **/
331
333
  [method: string]: GenericRuntimeApiMethod<Rv>;
332
334
  };
335
+ /**
336
+ * @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
337
+ **/
338
+ runtimeViewFunction: {
339
+ /**
340
+ * Execute a view function query.
341
+ *
342
+ * @callname: RuntimeViewFunction_execute_view_function
343
+ * @param {FrameSupportViewFunctionsViewFunctionId} query_id
344
+ * @param {BytesLike} input
345
+ **/
346
+ executeViewFunction: GenericRuntimeApiMethod<
347
+ Rv,
348
+ (
349
+ queryId: FrameSupportViewFunctionsViewFunctionId,
350
+ input: BytesLike,
351
+ ) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>
352
+ >;
353
+
354
+ /**
355
+ * Generic runtime api call
356
+ **/
357
+ [method: string]: GenericRuntimeApiMethod<Rv>;
358
+ };
333
359
  /**
334
360
  * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
335
361
  **/
@@ -6037,6 +6037,13 @@ export type SpRuntimeTransactionValidityValidTransaction = {
6037
6037
  propagate: boolean;
6038
6038
  };
6039
6039
 
6040
+ export type FrameSupportViewFunctionsViewFunctionId = { prefix: FixedBytes<16>; suffix: FixedBytes<16> };
6041
+
6042
+ export type FrameSupportViewFunctionsViewFunctionDispatchError =
6043
+ | { type: 'NotImplemented' }
6044
+ | { type: 'NotFound'; value: FrameSupportViewFunctionsViewFunctionId }
6045
+ | { type: 'Codec' };
6046
+
6040
6047
  export type PalletTransactionPaymentRuntimeDispatchInfo = {
6041
6048
  weight: SpWeightsWeightV2Weight;
6042
6049
  class: FrameSupportDispatchDispatchClass;