@dedot/chaintypes 0.0.1-next.ebf1326c.6 → 0.0.1-next.f5bf4fc2.1

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.
@@ -2,13 +2,13 @@
2
2
 
3
3
  import type { GenericRuntimeApis, GenericRuntimeApiMethod } from '@dedot/types';
4
4
  import type {
5
+ H256,
5
6
  RuntimeVersion,
6
7
  Header,
7
8
  DispatchError,
8
9
  Result,
9
10
  UncheckedExtrinsicLike,
10
11
  UncheckedExtrinsic,
11
- H256,
12
12
  Bytes,
13
13
  BytesLike,
14
14
  AccountId32Like,
@@ -17,6 +17,7 @@ import type {
17
17
  import type {
18
18
  SpConsensusSlotsSlotDuration,
19
19
  SpConsensusAuraSr25519AppSr25519Public,
20
+ SpConsensusSlotsSlot,
20
21
  SpRuntimeBlock,
21
22
  SpCoreOpaqueMetadata,
22
23
  SpRuntimeTransactionValidityTransactionValidityError,
@@ -61,6 +62,33 @@ export interface RuntimeApis extends GenericRuntimeApis {
61
62
  **/
62
63
  [method: string]: GenericRuntimeApiMethod;
63
64
  };
65
+ /**
66
+ * @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
67
+ **/
68
+ auraUnincludedSegmentApi: {
69
+ /**
70
+ * Whether it is legal to extend the chain, assuming the given block is the most
71
+ * recently included one as-of the relay parent that will be built against, and
72
+ * the given slot.
73
+ *
74
+ * This should be consistent with the logic the runtime uses when validating blocks to
75
+ * avoid issues.
76
+ *
77
+ * When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block
78
+ * whose state we are querying against, this must always return `true` as long as the slot
79
+ * is more recent than the included block itself.
80
+ *
81
+ * @callname: AuraUnincludedSegmentApi_can_build_upon
82
+ * @param {H256} included_hash
83
+ * @param {SpConsensusSlotsSlot} slot
84
+ **/
85
+ canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
86
+
87
+ /**
88
+ * Generic runtime api call
89
+ **/
90
+ [method: string]: GenericRuntimeApiMethod;
91
+ };
64
92
  /**
65
93
  * @runtimeapi: Core - 0xdf6acb689907609b
66
94
  **/