@dedot/chaintypes 0.253.0 → 0.255.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.
@@ -20,6 +20,7 @@ export type ChainJsonRpcApis = Pick<
20
20
  | 'author_pendingExtrinsics'
21
21
  | 'author_removeExtrinsic'
22
22
  | 'author_rotateKeys'
23
+ | 'author_rotateKeysWithOwner'
23
24
  | 'author_submitAndWatchExtrinsic'
24
25
  | 'author_submitExtrinsic'
25
26
  | 'babe_epochAuthorship'
@@ -20,6 +20,7 @@ export type ChainJsonRpcApis = Pick<
20
20
  | 'author_pendingExtrinsics'
21
21
  | 'author_removeExtrinsic'
22
22
  | 'author_rotateKeys'
23
+ | 'author_rotateKeysWithOwner'
23
24
  | 'author_submitAndWatchExtrinsic'
24
25
  | 'author_submitExtrinsic'
25
26
  | 'chainHead_v1_body'
@@ -20,6 +20,7 @@ export type ChainJsonRpcApis = Pick<
20
20
  | 'author_pendingExtrinsics'
21
21
  | 'author_removeExtrinsic'
22
22
  | 'author_rotateKeys'
23
+ | 'author_rotateKeysWithOwner'
23
24
  | 'author_submitAndWatchExtrinsic'
24
25
  | 'author_submitExtrinsic'
25
26
  | 'chainHead_v1_body'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.253.0",
3
+ "version": "0.255.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": "eef06781de98944ffc23033a61898edd0e7f1f72",
28
+ "gitHead": "f1cb895f75baa278782dc3405a3b32ca88fea375",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -20,7 +20,6 @@ export type ChainJsonRpcApis = Pick<
20
20
  | 'author_pendingExtrinsics'
21
21
  | 'author_removeExtrinsic'
22
22
  | 'author_rotateKeys'
23
- | 'author_rotateKeysWithOwner'
24
23
  | 'author_submitAndWatchExtrinsic'
25
24
  | 'author_submitExtrinsic'
26
25
  | 'chainHead_v1_body'
@@ -20,6 +20,7 @@ export type ChainJsonRpcApis = Pick<
20
20
  | 'author_pendingExtrinsics'
21
21
  | 'author_removeExtrinsic'
22
22
  | 'author_rotateKeys'
23
+ | 'author_rotateKeysWithOwner'
23
24
  | 'author_submitAndWatchExtrinsic'
24
25
  | 'author_submitExtrinsic'
25
26
  | 'babe_epochAuthorship'
@@ -20,6 +20,7 @@ export type ChainJsonRpcApis = Pick<
20
20
  | 'author_pendingExtrinsics'
21
21
  | 'author_removeExtrinsic'
22
22
  | 'author_rotateKeys'
23
+ | 'author_rotateKeysWithOwner'
23
24
  | 'author_submitAndWatchExtrinsic'
24
25
  | 'author_submitExtrinsic'
25
26
  | 'chainHead_v1_body'
@@ -20,6 +20,7 @@ export type ChainJsonRpcApis = Pick<
20
20
  | 'author_pendingExtrinsics'
21
21
  | 'author_removeExtrinsic'
22
22
  | 'author_rotateKeys'
23
+ | 'author_rotateKeysWithOwner'
23
24
  | 'author_submitAndWatchExtrinsic'
24
25
  | 'author_submitExtrinsic'
25
26
  | 'chainHead_v1_body'
@@ -52,7 +52,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
52
52
 
53
53
  /**
54
54
  * @name: WestendApi
55
- * @specVersion: 1022001
55
+ * @specVersion: 1022002
56
56
  **/
57
57
  export interface WestendApi extends GenericSubstrateApi {
58
58
  rpc: ChainJsonRpcApis;
@@ -696,15 +696,21 @@ export interface RuntimeApis extends GenericRuntimeApis {
696
696
  maxRelayParentSessionAge: GenericRuntimeApiMethod<() => Promise<number>>;
697
697
 
698
698
  /**
699
- * Retrieve the relay parent info (block number and state root) for a given
700
- * session index and relay parent hash. Returns `None` if the relay parent
701
- * is not found in the allowed relay parents for that session.
699
+ * Look up relay parent info for a block that is an **ancestor** of the block
700
+ * this API is called at. Returns `None` if the relay parent is not found
701
+ * in the allowed relay parents for the given session.
702
702
  *
703
- * @callname: ParachainHost_allowed_relay_parent_info
703
+ * NOTE: A block is not in its own `AllowedRelayParents` storage (it gets
704
+ * added during the next block's inherent). Querying a block about itself
705
+ * will always return `None`. Use the node-side `check_relay_parent_session`
706
+ * utility for a general-purpose check that handles both the self and
707
+ * ancestor cases.
708
+ *
709
+ * @callname: ParachainHost_ancestor_relay_parent_info
704
710
  * @param {number} session_index
705
711
  * @param {H256} relay_parent
706
712
  **/
707
- allowedRelayParentInfo: GenericRuntimeApiMethod<
713
+ ancestorRelayParentInfo: GenericRuntimeApiMethod<
708
714
  (sessionIndex: number, relayParent: H256) => Promise<PolkadotPrimitivesVstagingRelayParentInfo | undefined>
709
715
  >;
710
716
 
@@ -6953,12 +6953,15 @@ export type PolkadotPrimitivesV9ExecutorParamsExecutorParam =
6953
6953
  | { type: 'PrecheckingMaxMemory'; value: bigint }
6954
6954
  | { type: 'PvfPrepTimeout'; value: [PolkadotPrimitivesV9PvfPrepKind, bigint] }
6955
6955
  | { type: 'PvfExecTimeout'; value: [PolkadotPrimitivesV9PvfExecKind, bigint] }
6956
- | { type: 'WasmExtBulkMemory' };
6956
+ | { type: 'WasmExtBulkMemory' }
6957
+ | { type: 'EnabledHostFunction'; value: PolkadotPrimitivesV9ExecutorParamsExecutorHostFunction };
6957
6958
 
6958
6959
  export type PolkadotPrimitivesV9PvfPrepKind = 'Precheck' | 'Prepare';
6959
6960
 
6960
6961
  export type PolkadotPrimitivesV9PvfExecKind = 'Backing' | 'Approval';
6961
6962
 
6963
+ export type PolkadotPrimitivesV9ExecutorParamsExecutorHostFunction = 'EccRfc163';
6964
+
6962
6965
  export type PolkadotPrimitivesV9ApprovalVotingParams = { maxApprovalCoalesceCount: number };
6963
6966
 
6964
6967
  export type PolkadotPrimitivesVstagingSchedulerParams = {
@@ -54,7 +54,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
54
54
 
55
55
  /**
56
56
  * @name: WestendAssetHubApi
57
- * @specVersion: 1022001
57
+ * @specVersion: 1022002
58
58
  **/
59
59
  export interface WestendAssetHubApi extends GenericSubstrateApi {
60
60
  rpc: ChainJsonRpcApis;
@@ -51,7 +51,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
51
51
 
52
52
  /**
53
53
  * @name: WestendPeopleApi
54
- * @specVersion: 1022001
54
+ * @specVersion: 1022002
55
55
  **/
56
56
  export interface WestendPeopleApi extends GenericSubstrateApi {
57
57
  rpc: ChainJsonRpcApis;