@dedot/chaintypes 0.261.0 → 0.262.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/basilisk/consts.d.ts +9 -0
- package/basilisk/index.d.ts +1 -1
- package/basilisk/query.d.ts +21 -0
- package/basilisk/runtime.d.ts +36 -0
- package/basilisk/types.d.ts +4 -0
- package/package.json +2 -2
- package/westend-asset-hub/index.d.ts +1 -1
package/basilisk/consts.d.ts
CHANGED
|
@@ -1103,6 +1103,15 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1103
1103
|
**/
|
|
1104
1104
|
[name: string]: any;
|
|
1105
1105
|
};
|
|
1106
|
+
/**
|
|
1107
|
+
* Pallet `Parameters`'s constants
|
|
1108
|
+
**/
|
|
1109
|
+
parameters: {
|
|
1110
|
+
/**
|
|
1111
|
+
* Generic pallet constant
|
|
1112
|
+
**/
|
|
1113
|
+
[name: string]: any;
|
|
1114
|
+
};
|
|
1106
1115
|
/**
|
|
1107
1116
|
* Pallet `EmaOracle`'s constants
|
|
1108
1117
|
**/
|
package/basilisk/index.d.ts
CHANGED
package/basilisk/query.d.ts
CHANGED
|
@@ -2159,6 +2159,27 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2159
2159
|
**/
|
|
2160
2160
|
[storage: string]: GenericStorageQuery;
|
|
2161
2161
|
};
|
|
2162
|
+
/**
|
|
2163
|
+
* Pallet `Parameters`'s storage queries
|
|
2164
|
+
**/
|
|
2165
|
+
parameters: {
|
|
2166
|
+
/**
|
|
2167
|
+
*
|
|
2168
|
+
* @param {Callback<boolean> =} callback
|
|
2169
|
+
**/
|
|
2170
|
+
isTestnet: GenericStorageQuery<() => boolean>;
|
|
2171
|
+
|
|
2172
|
+
/**
|
|
2173
|
+
*
|
|
2174
|
+
* @param {Callback<boolean> =} callback
|
|
2175
|
+
**/
|
|
2176
|
+
relayParentOffsetOverride: GenericStorageQuery<() => boolean>;
|
|
2177
|
+
|
|
2178
|
+
/**
|
|
2179
|
+
* Generic pallet storage query
|
|
2180
|
+
**/
|
|
2181
|
+
[storage: string]: GenericStorageQuery;
|
|
2182
|
+
};
|
|
2162
2183
|
/**
|
|
2163
2184
|
* Pallet `EmaOracle`'s storage queries
|
|
2164
2185
|
**/
|
package/basilisk/runtime.d.ts
CHANGED
|
@@ -42,6 +42,8 @@ import type {
|
|
|
42
42
|
XcmRuntimeApisDryRunXcmDryRunEffects,
|
|
43
43
|
XcmRuntimeApisConversionsError,
|
|
44
44
|
SpConsensusSlotsSlot,
|
|
45
|
+
PolkadotPrimitivesVstagingCoreSelector,
|
|
46
|
+
PolkadotPrimitivesVstagingClaimQueueOffset,
|
|
45
47
|
} from './types.js';
|
|
46
48
|
|
|
47
49
|
export interface RuntimeApis extends GenericRuntimeApis {
|
|
@@ -568,6 +570,40 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
568
570
|
**/
|
|
569
571
|
canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
|
|
570
572
|
|
|
573
|
+
/**
|
|
574
|
+
* Generic runtime api call
|
|
575
|
+
**/
|
|
576
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
577
|
+
};
|
|
578
|
+
/**
|
|
579
|
+
* @runtimeapi: RelayParentOffsetApi - 0x04e70521a0d3d2f8
|
|
580
|
+
**/
|
|
581
|
+
relayParentOffsetApi: {
|
|
582
|
+
/**
|
|
583
|
+
* Fetch the slot offset that is expected from the relay chain.
|
|
584
|
+
*
|
|
585
|
+
* @callname: RelayParentOffsetApi_relay_parent_offset
|
|
586
|
+
**/
|
|
587
|
+
relayParentOffset: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Generic runtime api call
|
|
591
|
+
**/
|
|
592
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
593
|
+
};
|
|
594
|
+
/**
|
|
595
|
+
* @runtimeapi: GetCoreSelectorApi - 0x695c80446b8b3d4e
|
|
596
|
+
**/
|
|
597
|
+
getCoreSelectorApi: {
|
|
598
|
+
/**
|
|
599
|
+
* Retrieve core selector and claim queue offset for the next block.
|
|
600
|
+
*
|
|
601
|
+
* @callname: GetCoreSelectorApi_core_selector
|
|
602
|
+
**/
|
|
603
|
+
coreSelector: GenericRuntimeApiMethod<
|
|
604
|
+
() => Promise<[PolkadotPrimitivesVstagingCoreSelector, PolkadotPrimitivesVstagingClaimQueueOffset]>
|
|
605
|
+
>;
|
|
606
|
+
|
|
571
607
|
/**
|
|
572
608
|
* Generic runtime api call
|
|
573
609
|
**/
|
package/basilisk/types.d.ts
CHANGED
|
@@ -13852,6 +13852,10 @@ export type XcmRuntimeApisDryRunXcmDryRunEffects = {
|
|
|
13852
13852
|
|
|
13853
13853
|
export type XcmRuntimeApisConversionsError = 'Unsupported' | 'VersionedConversionFailed';
|
|
13854
13854
|
|
|
13855
|
+
export type PolkadotPrimitivesVstagingCoreSelector = number;
|
|
13856
|
+
|
|
13857
|
+
export type PolkadotPrimitivesVstagingClaimQueueOffset = number;
|
|
13858
|
+
|
|
13855
13859
|
export type BasiliskRuntimeRuntimeError =
|
|
13856
13860
|
| { pallet: 'System'; palletError: FrameSystemError }
|
|
13857
13861
|
| { pallet: 'Balances'; palletError: PalletBalancesError }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.262.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": "
|
|
28
|
+
"gitHead": "8f3597407bc44c9db707464884bca8b9f2dfed02",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|