@dedot/chaintypes 0.203.0 → 0.205.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/kusama/errors.d.ts +5 -0
- package/kusama/events.d.ts +20 -0
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +36 -5
- package/kusama/runtime.d.ts +25 -20
- package/kusama/tx.d.ts +19 -0
- package/kusama/types.d.ts +49 -6
- package/kusama-asset-hub/consts.d.ts +70 -1
- package/kusama-asset-hub/errors.d.ts +61 -1
- package/kusama-asset-hub/events.d.ts +10 -0
- package/kusama-asset-hub/index.d.ts +4 -1
- package/kusama-asset-hub/query.d.ts +77 -0
- package/kusama-asset-hub/runtime.d.ts +68 -1
- package/kusama-asset-hub/tx.d.ts +116 -37
- package/kusama-asset-hub/types.d.ts +483 -58
- package/kusama-people/consts.d.ts +9 -0
- package/kusama-people/index.d.ts +2 -1
- package/kusama-people/query.d.ts +10 -0
- package/kusama-people/runtime.d.ts +25 -0
- package/kusama-people/types.d.ts +23 -0
- package/package.json +2 -2
|
@@ -123,6 +123,15 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
123
123
|
**/
|
|
124
124
|
[name: string]: any;
|
|
125
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* Pallet `WeightReclaim`'s constants
|
|
128
|
+
**/
|
|
129
|
+
weightReclaim: {
|
|
130
|
+
/**
|
|
131
|
+
* Generic pallet constant
|
|
132
|
+
**/
|
|
133
|
+
[name: string]: any;
|
|
134
|
+
};
|
|
126
135
|
/**
|
|
127
136
|
* Pallet `Balances`'s constants
|
|
128
137
|
**/
|
package/kusama-people/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
|
41
41
|
FrameSystemExtensionsCheckWeight,
|
|
42
42
|
PalletTransactionPaymentChargeTransactionPayment,
|
|
43
43
|
FrameMetadataHashExtensionCheckMetadataHash,
|
|
44
|
+
[],
|
|
44
45
|
];
|
|
45
46
|
AssetId: undefined;
|
|
46
47
|
EventRecord: FrameSystemEventRecord;
|
|
@@ -48,7 +49,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
|
48
49
|
|
|
49
50
|
/**
|
|
50
51
|
* @name: KusamaPeopleApi
|
|
51
|
-
* @specVersion:
|
|
52
|
+
* @specVersion: 2000004
|
|
52
53
|
**/
|
|
53
54
|
export interface KusamaPeopleApi extends GenericSubstrateApi {
|
|
54
55
|
rpc: ChainJsonRpcApis;
|
package/kusama-people/query.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ import type {
|
|
|
39
39
|
FrameSupportTokensMiscIdAmount,
|
|
40
40
|
FrameSupportTokensMiscIdAmount002,
|
|
41
41
|
PalletTransactionPaymentReleases,
|
|
42
|
+
FrameSupportStorageNoDrop,
|
|
42
43
|
PalletCollatorSelectionCandidateInfo,
|
|
43
44
|
PeopleKusamaRuntimeSessionKeys,
|
|
44
45
|
SpStakingOffenceOffenceSeverity,
|
|
@@ -681,6 +682,15 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
681
682
|
**/
|
|
682
683
|
storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
|
|
683
684
|
|
|
685
|
+
/**
|
|
686
|
+
* The `OnChargeTransaction` stores the withdrawn tx fee here.
|
|
687
|
+
*
|
|
688
|
+
* Use `withdraw_txfee` and `remaining_txfee` to access from outside the crate.
|
|
689
|
+
*
|
|
690
|
+
* @param {Callback<FrameSupportStorageNoDrop | undefined> =} callback
|
|
691
|
+
**/
|
|
692
|
+
txPaymentCredit: GenericStorageQuery<() => FrameSupportStorageNoDrop | undefined>;
|
|
693
|
+
|
|
684
694
|
/**
|
|
685
695
|
* Generic pallet storage query
|
|
686
696
|
**/
|
|
@@ -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,
|
|
@@ -325,6 +327,29 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
325
327
|
**/
|
|
326
328
|
[method: string]: GenericRuntimeApiMethod;
|
|
327
329
|
};
|
|
330
|
+
/**
|
|
331
|
+
* @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
|
|
332
|
+
**/
|
|
333
|
+
runtimeViewFunction: {
|
|
334
|
+
/**
|
|
335
|
+
* Execute a view function query.
|
|
336
|
+
*
|
|
337
|
+
* @callname: RuntimeViewFunction_execute_view_function
|
|
338
|
+
* @param {FrameSupportViewFunctionsViewFunctionId} query_id
|
|
339
|
+
* @param {BytesLike} input
|
|
340
|
+
**/
|
|
341
|
+
executeViewFunction: GenericRuntimeApiMethod<
|
|
342
|
+
(
|
|
343
|
+
queryId: FrameSupportViewFunctionsViewFunctionId,
|
|
344
|
+
input: BytesLike,
|
|
345
|
+
) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>
|
|
346
|
+
>;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Generic runtime api call
|
|
350
|
+
**/
|
|
351
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
352
|
+
};
|
|
328
353
|
/**
|
|
329
354
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
330
355
|
**/
|
package/kusama-people/types.d.ts
CHANGED
|
@@ -5074,6 +5074,18 @@ export type SpRuntimeBlakeTwo256 = {};
|
|
|
5074
5074
|
|
|
5075
5075
|
export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrinsic> };
|
|
5076
5076
|
|
|
5077
|
+
export type CumulusPalletWeightReclaimStorageWeightReclaim = [
|
|
5078
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
5079
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
5080
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
5081
|
+
FrameSystemExtensionsCheckGenesis,
|
|
5082
|
+
FrameSystemExtensionsCheckMortality,
|
|
5083
|
+
FrameSystemExtensionsCheckNonce,
|
|
5084
|
+
FrameSystemExtensionsCheckWeight,
|
|
5085
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
5086
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
5087
|
+
];
|
|
5088
|
+
|
|
5077
5089
|
export type FrameSystemExtensionsCheckNonZeroSender = {};
|
|
5078
5090
|
|
|
5079
5091
|
export type FrameSystemExtensionsCheckSpecVersion = {};
|
|
@@ -5280,6 +5292,10 @@ export type PalletBalancesError =
|
|
|
5280
5292
|
|
|
5281
5293
|
export type PalletTransactionPaymentReleases = 'V1Ancient' | 'V2';
|
|
5282
5294
|
|
|
5295
|
+
export type FrameSupportStorageNoDrop = FrameSupportTokensFungibleImbalance;
|
|
5296
|
+
|
|
5297
|
+
export type FrameSupportTokensFungibleImbalance = { amount: bigint };
|
|
5298
|
+
|
|
5283
5299
|
export type PalletCollatorSelectionCandidateInfo = { who: AccountId32; deposit: bigint };
|
|
5284
5300
|
|
|
5285
5301
|
export type FrameSupportPalletId = FixedBytes<8>;
|
|
@@ -6018,6 +6034,13 @@ export type SpRuntimeTransactionValidityValidTransaction = {
|
|
|
6018
6034
|
propagate: boolean;
|
|
6019
6035
|
};
|
|
6020
6036
|
|
|
6037
|
+
export type FrameSupportViewFunctionsViewFunctionId = { prefix: FixedBytes<16>; suffix: FixedBytes<16> };
|
|
6038
|
+
|
|
6039
|
+
export type FrameSupportViewFunctionsViewFunctionDispatchError =
|
|
6040
|
+
| { type: 'NotImplemented' }
|
|
6041
|
+
| { type: 'NotFound'; value: FrameSupportViewFunctionsViewFunctionId }
|
|
6042
|
+
| { type: 'Codec' };
|
|
6043
|
+
|
|
6021
6044
|
export type PalletTransactionPaymentRuntimeDispatchInfo = {
|
|
6022
6045
|
weight: SpWeightsWeightV2Weight;
|
|
6023
6046
|
class: FrameSupportDispatchDispatchClass;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.205.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": "7188bd1ddb3f1a2e775cba258da26908c4c99936",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|