@dedot/chaintypes 0.150.0 → 0.152.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/aleph/index.d.ts +32 -1
- package/astar/index.d.ts +32 -1
- package/astar/json-rpc.d.ts +0 -1
- package/basilisk/index.d.ts +30 -1
- package/hydration/index.d.ts +38 -1
- package/kusama/consts.d.ts +41 -2
- package/kusama/errors.d.ts +38 -0
- package/kusama/events.d.ts +132 -0
- package/kusama/index.d.ts +35 -2
- package/kusama/json-rpc.d.ts +0 -1
- package/kusama/query.d.ts +35 -0
- package/kusama/tx.d.ts +209 -15
- package/kusama/types.d.ts +465 -98
- package/kusama/view-functions.d.ts +80 -1
- package/kusama-asset-hub/consts.d.ts +48 -2
- package/kusama-asset-hub/errors.d.ts +52 -23
- package/kusama-asset-hub/events.d.ts +212 -36
- package/kusama-asset-hub/index.d.ts +35 -2
- package/kusama-asset-hub/json-rpc.d.ts +0 -1
- package/kusama-asset-hub/query.d.ts +79 -26
- package/kusama-asset-hub/runtime.d.ts +180 -13
- package/kusama-asset-hub/tx.d.ts +347 -143
- package/kusama-asset-hub/types.d.ts +1613 -1188
- package/kusama-asset-hub/view-functions.d.ts +34 -1
- package/kusama-people/consts.d.ts +21 -0
- package/kusama-people/errors.d.ts +8 -0
- package/kusama-people/events.d.ts +22 -0
- package/kusama-people/index.d.ts +35 -2
- package/kusama-people/json-rpc.d.ts +0 -1
- package/kusama-people/query.d.ts +25 -2
- package/kusama-people/runtime.d.ts +121 -0
- package/kusama-people/tx.d.ts +24 -12
- package/kusama-people/types.d.ts +1072 -954
- package/kusama-people/view-functions.d.ts +34 -1
- package/moonbeam/index.d.ts +38 -1
- package/moonbeam/json-rpc.d.ts +0 -1
- package/package.json +3 -3
- package/paseo/index.d.ts +36 -1
- package/paseo/json-rpc.d.ts +0 -1
- package/paseo-asset-hub/index.d.ts +34 -1
- package/paseo-asset-hub/json-rpc.d.ts +0 -1
- package/paseo-hydration/index.d.ts +38 -1
- package/paseo-people/index.d.ts +34 -1
- package/paseo-people/json-rpc.d.ts +0 -1
- package/polkadot/index.d.ts +36 -1
- package/polkadot/json-rpc.d.ts +0 -1
- package/polkadot-asset-hub/index.d.ts +34 -1
- package/polkadot-asset-hub/json-rpc.d.ts +0 -1
- package/polkadot-people/index.d.ts +34 -1
- package/polkadot-people/json-rpc.d.ts +0 -1
- package/substrate/index.d.ts +36 -1
- package/vara/index.d.ts +36 -1
- package/westend/index.d.ts +38 -1
- package/westend/json-rpc.d.ts +0 -1
- package/westend-asset-hub/index.d.ts +37 -1
- package/westend-asset-hub/json-rpc.d.ts +0 -1
- package/westend-people/index.d.ts +33 -1
- package/westend-people/json-rpc.d.ts +0 -1
package/aleph/index.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericSubstrateApi, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types';
|
|
3
|
+
import type { GenericSubstrateApi, GenericChainKnownTypes, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { MultiAddress } from 'dedot/codecs';
|
|
5
|
+
import type {
|
|
6
|
+
AlephRuntimeRuntimeCall,
|
|
7
|
+
SpRuntimeMultiSignature,
|
|
8
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
9
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
10
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
11
|
+
FrameSystemExtensionsCheckGenesis,
|
|
12
|
+
FrameSystemExtensionsCheckMortality,
|
|
13
|
+
FrameSystemExtensionsCheckNonce,
|
|
14
|
+
FrameSystemExtensionsCheckWeight,
|
|
15
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
16
|
+
} from './types.js';
|
|
4
17
|
import { ChainConsts } from './consts.js';
|
|
5
18
|
import { ChainStorage } from './query.js';
|
|
6
19
|
import { ChainJsonRpcApis } from './json-rpc.js';
|
|
@@ -12,6 +25,22 @@ import { ChainTx } from './tx.js';
|
|
|
12
25
|
|
|
13
26
|
export * from './types.js';
|
|
14
27
|
|
|
28
|
+
interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
29
|
+
Address: MultiAddress;
|
|
30
|
+
Signature: SpRuntimeMultiSignature;
|
|
31
|
+
RuntimeCall: AlephRuntimeRuntimeCall;
|
|
32
|
+
Extra: [
|
|
33
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
34
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
35
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
36
|
+
FrameSystemExtensionsCheckGenesis,
|
|
37
|
+
FrameSystemExtensionsCheckMortality,
|
|
38
|
+
FrameSystemExtensionsCheckNonce,
|
|
39
|
+
FrameSystemExtensionsCheckWeight,
|
|
40
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
|
|
15
44
|
export interface VersionedAlephApi<Rv extends RpcVersion> extends GenericSubstrateApi<Rv> {
|
|
16
45
|
rpc: ChainJsonRpcApis<Rv>;
|
|
17
46
|
consts: ChainConsts<Rv>;
|
|
@@ -21,6 +50,8 @@ export interface VersionedAlephApi<Rv extends RpcVersion> extends GenericSubstra
|
|
|
21
50
|
call: RuntimeApis<Rv>;
|
|
22
51
|
view: ChainViewFunctions<Rv>;
|
|
23
52
|
tx: ChainTx<Rv>;
|
|
53
|
+
|
|
54
|
+
types: ChainKnownTypes;
|
|
24
55
|
}
|
|
25
56
|
|
|
26
57
|
/**
|
package/astar/index.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericSubstrateApi, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types';
|
|
3
|
+
import type { GenericSubstrateApi, GenericChainKnownTypes, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { MultiAddress } from 'dedot/codecs';
|
|
5
|
+
import type {
|
|
6
|
+
AstarRuntimeRuntimeCall,
|
|
7
|
+
SpRuntimeMultiSignature,
|
|
8
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
9
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
10
|
+
FrameSystemExtensionsCheckGenesis,
|
|
11
|
+
FrameSystemExtensionsCheckMortality,
|
|
12
|
+
FrameSystemExtensionsCheckNonce,
|
|
13
|
+
FrameSystemExtensionsCheckWeight,
|
|
14
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
15
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
16
|
+
} from './types.js';
|
|
4
17
|
import { ChainConsts } from './consts.js';
|
|
5
18
|
import { ChainStorage } from './query.js';
|
|
6
19
|
import { ChainJsonRpcApis } from './json-rpc.js';
|
|
@@ -12,6 +25,22 @@ import { ChainTx } from './tx.js';
|
|
|
12
25
|
|
|
13
26
|
export * from './types.js';
|
|
14
27
|
|
|
28
|
+
interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
29
|
+
Address: MultiAddress;
|
|
30
|
+
Signature: SpRuntimeMultiSignature;
|
|
31
|
+
RuntimeCall: AstarRuntimeRuntimeCall;
|
|
32
|
+
Extra: [
|
|
33
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
34
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
35
|
+
FrameSystemExtensionsCheckGenesis,
|
|
36
|
+
FrameSystemExtensionsCheckMortality,
|
|
37
|
+
FrameSystemExtensionsCheckNonce,
|
|
38
|
+
FrameSystemExtensionsCheckWeight,
|
|
39
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
40
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
|
|
15
44
|
export interface VersionedAstarApi<Rv extends RpcVersion> extends GenericSubstrateApi<Rv> {
|
|
16
45
|
rpc: ChainJsonRpcApis<Rv>;
|
|
17
46
|
consts: ChainConsts<Rv>;
|
|
@@ -21,6 +50,8 @@ export interface VersionedAstarApi<Rv extends RpcVersion> extends GenericSubstra
|
|
|
21
50
|
call: RuntimeApis<Rv>;
|
|
22
51
|
view: ChainViewFunctions<Rv>;
|
|
23
52
|
tx: ChainTx<Rv>;
|
|
53
|
+
|
|
54
|
+
types: ChainKnownTypes;
|
|
24
55
|
}
|
|
25
56
|
|
|
26
57
|
/**
|
package/astar/json-rpc.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
|
|
|
11
11
|
| 'archive_unstable_genesisHash'
|
|
12
12
|
| 'archive_unstable_hashByHeight'
|
|
13
13
|
| 'archive_unstable_header'
|
|
14
|
-
| 'archive_unstable_stopStorage'
|
|
15
14
|
| 'archive_unstable_storage'
|
|
16
15
|
| 'archive_unstable_storageDiff'
|
|
17
16
|
| 'archive_unstable_storageDiff_stopStorageDiff'
|
package/basilisk/index.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericSubstrateApi, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types';
|
|
3
|
+
import type { GenericSubstrateApi, GenericChainKnownTypes, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { AccountId32 } from 'dedot/codecs';
|
|
5
|
+
import type {
|
|
6
|
+
BasiliskRuntimeRuntimeCall,
|
|
7
|
+
SpRuntimeMultiSignature,
|
|
8
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
9
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
10
|
+
FrameSystemExtensionsCheckGenesis,
|
|
11
|
+
FrameSystemExtensionsCheckMortality,
|
|
12
|
+
FrameSystemExtensionsCheckNonce,
|
|
13
|
+
FrameSystemExtensionsCheckWeight,
|
|
14
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
15
|
+
} from './types.js';
|
|
4
16
|
import { ChainConsts } from './consts.js';
|
|
5
17
|
import { ChainStorage } from './query.js';
|
|
6
18
|
import { ChainJsonRpcApis } from './json-rpc.js';
|
|
@@ -12,6 +24,21 @@ import { ChainTx } from './tx.js';
|
|
|
12
24
|
|
|
13
25
|
export * from './types.js';
|
|
14
26
|
|
|
27
|
+
interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
28
|
+
Address: AccountId32;
|
|
29
|
+
Signature: SpRuntimeMultiSignature;
|
|
30
|
+
RuntimeCall: BasiliskRuntimeRuntimeCall;
|
|
31
|
+
Extra: [
|
|
32
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
33
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
34
|
+
FrameSystemExtensionsCheckGenesis,
|
|
35
|
+
FrameSystemExtensionsCheckMortality,
|
|
36
|
+
FrameSystemExtensionsCheckNonce,
|
|
37
|
+
FrameSystemExtensionsCheckWeight,
|
|
38
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
39
|
+
];
|
|
40
|
+
}
|
|
41
|
+
|
|
15
42
|
export interface VersionedBasiliskApi<Rv extends RpcVersion> extends GenericSubstrateApi<Rv> {
|
|
16
43
|
rpc: ChainJsonRpcApis<Rv>;
|
|
17
44
|
consts: ChainConsts<Rv>;
|
|
@@ -21,6 +48,8 @@ export interface VersionedBasiliskApi<Rv extends RpcVersion> extends GenericSubs
|
|
|
21
48
|
call: RuntimeApis<Rv>;
|
|
22
49
|
view: ChainViewFunctions<Rv>;
|
|
23
50
|
tx: ChainTx<Rv>;
|
|
51
|
+
|
|
52
|
+
types: ChainKnownTypes;
|
|
24
53
|
}
|
|
25
54
|
|
|
26
55
|
/**
|
package/hydration/index.d.ts
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericSubstrateApi, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types';
|
|
3
|
+
import type { GenericSubstrateApi, GenericChainKnownTypes, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { AccountId32 } from 'dedot/codecs';
|
|
5
|
+
import type {
|
|
6
|
+
HydradxRuntimeRuntimeCall,
|
|
7
|
+
SpRuntimeMultiSignature,
|
|
8
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
9
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
10
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
11
|
+
FrameSystemExtensionsCheckGenesis,
|
|
12
|
+
FrameSystemExtensionsCheckMortality,
|
|
13
|
+
FrameSystemExtensionsCheckNonce,
|
|
14
|
+
FrameSystemExtensionsCheckWeight,
|
|
15
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
16
|
+
PalletClaimsValidateClaim,
|
|
17
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
18
|
+
CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim,
|
|
19
|
+
} from './types.js';
|
|
4
20
|
import { ChainConsts } from './consts.js';
|
|
5
21
|
import { ChainStorage } from './query.js';
|
|
6
22
|
import { ChainJsonRpcApis } from './json-rpc.js';
|
|
@@ -12,6 +28,25 @@ import { ChainTx } from './tx.js';
|
|
|
12
28
|
|
|
13
29
|
export * from './types.js';
|
|
14
30
|
|
|
31
|
+
interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
32
|
+
Address: AccountId32;
|
|
33
|
+
Signature: SpRuntimeMultiSignature;
|
|
34
|
+
RuntimeCall: HydradxRuntimeRuntimeCall;
|
|
35
|
+
Extra: [
|
|
36
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
37
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
38
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
39
|
+
FrameSystemExtensionsCheckGenesis,
|
|
40
|
+
FrameSystemExtensionsCheckMortality,
|
|
41
|
+
FrameSystemExtensionsCheckNonce,
|
|
42
|
+
FrameSystemExtensionsCheckWeight,
|
|
43
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
44
|
+
PalletClaimsValidateClaim,
|
|
45
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
46
|
+
CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim,
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
|
|
15
50
|
export interface VersionedHydrationApi<Rv extends RpcVersion> extends GenericSubstrateApi<Rv> {
|
|
16
51
|
rpc: ChainJsonRpcApis<Rv>;
|
|
17
52
|
consts: ChainConsts<Rv>;
|
|
@@ -21,6 +56,8 @@ export interface VersionedHydrationApi<Rv extends RpcVersion> extends GenericSub
|
|
|
21
56
|
call: RuntimeApis<Rv>;
|
|
22
57
|
view: ChainViewFunctions<Rv>;
|
|
23
58
|
tx: ChainTx<Rv>;
|
|
59
|
+
|
|
60
|
+
types: ChainKnownTypes;
|
|
24
61
|
}
|
|
25
62
|
|
|
26
63
|
/**
|
package/kusama/consts.d.ts
CHANGED
|
@@ -269,6 +269,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
269
269
|
**/
|
|
270
270
|
maxExposurePageSize: number;
|
|
271
271
|
|
|
272
|
+
/**
|
|
273
|
+
* The absolute maximum of winner validators this pallet should return.
|
|
274
|
+
**/
|
|
275
|
+
maxValidatorSet: number;
|
|
276
|
+
|
|
272
277
|
/**
|
|
273
278
|
* The maximum number of `unlocking` chunks a [`StakingLedger`] can
|
|
274
279
|
* have. Effectively determines how many unique eras a staker may be
|
|
@@ -310,6 +315,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
310
315
|
* Pallet `Session`'s constants
|
|
311
316
|
**/
|
|
312
317
|
session: {
|
|
318
|
+
/**
|
|
319
|
+
* The amount to be held when setting keys.
|
|
320
|
+
**/
|
|
321
|
+
keyDeposit: bigint;
|
|
322
|
+
|
|
313
323
|
/**
|
|
314
324
|
* Generic pallet constant
|
|
315
325
|
**/
|
|
@@ -941,12 +951,18 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
941
951
|
signedDepositWeight: bigint;
|
|
942
952
|
|
|
943
953
|
/**
|
|
944
|
-
*
|
|
945
|
-
* implementation.
|
|
954
|
+
* Maximum number of winners that an election supports.
|
|
946
955
|
*
|
|
947
956
|
* Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
|
|
948
957
|
**/
|
|
949
958
|
maxWinners: number;
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* Maximum number of voters that can support a winner in an election solution.
|
|
962
|
+
*
|
|
963
|
+
* This is needed to ensure election computation is bounded.
|
|
964
|
+
**/
|
|
965
|
+
maxBackersPerWinner: number;
|
|
950
966
|
minerMaxLength: number;
|
|
951
967
|
minerMaxWeight: SpWeightsWeightV2Weight;
|
|
952
968
|
minerMaxVotesPerVoter: number;
|
|
@@ -1125,6 +1141,14 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1125
1141
|
**/
|
|
1126
1142
|
bagThresholds: Array<bigint>;
|
|
1127
1143
|
|
|
1144
|
+
/**
|
|
1145
|
+
* Maximum number of accounts that may be re-bagged automatically in `on_idle`.
|
|
1146
|
+
*
|
|
1147
|
+
* A value of `0` (obtained by configuring `type MaxAutoRebagPerBlock = ();`) disables
|
|
1148
|
+
* the feature.
|
|
1149
|
+
**/
|
|
1150
|
+
maxAutoRebagPerBlock: number;
|
|
1151
|
+
|
|
1128
1152
|
/**
|
|
1129
1153
|
* Generic pallet constant
|
|
1130
1154
|
**/
|
|
@@ -1463,12 +1487,27 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1463
1487
|
* Pallet `XcmPallet`'s constants
|
|
1464
1488
|
**/
|
|
1465
1489
|
xcmPallet: {
|
|
1490
|
+
/**
|
|
1491
|
+
* This chain's Universal Location.
|
|
1492
|
+
**/
|
|
1493
|
+
universalLocation: StagingXcmV5Junctions;
|
|
1494
|
+
|
|
1466
1495
|
/**
|
|
1467
1496
|
* The latest supported version that we advertise. Generally just set it to
|
|
1468
1497
|
* `pallet_xcm::CurrentXcmVersion`.
|
|
1469
1498
|
**/
|
|
1470
1499
|
advertisedXcmVersion: number;
|
|
1471
1500
|
|
|
1501
|
+
/**
|
|
1502
|
+
* The maximum number of local XCM locks that a single account may have.
|
|
1503
|
+
**/
|
|
1504
|
+
maxLockers: number;
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* The maximum number of consumers a single remote lock may have.
|
|
1508
|
+
**/
|
|
1509
|
+
maxRemoteLockConsumers: number;
|
|
1510
|
+
|
|
1472
1511
|
/**
|
|
1473
1512
|
* Generic pallet constant
|
|
1474
1513
|
**/
|
package/kusama/errors.d.ts
CHANGED
|
@@ -1066,6 +1066,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1066
1066
|
**/
|
|
1067
1067
|
NoVotes: GenericPalletError<Rv>;
|
|
1068
1068
|
|
|
1069
|
+
/**
|
|
1070
|
+
* There is no deposit associated with a bid.
|
|
1071
|
+
**/
|
|
1072
|
+
NoDeposit: GenericPalletError<Rv>;
|
|
1073
|
+
|
|
1069
1074
|
/**
|
|
1070
1075
|
* Generic pallet error
|
|
1071
1076
|
**/
|
|
@@ -1467,6 +1472,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1467
1472
|
**/
|
|
1468
1473
|
TooManyQueued: GenericPalletError<Rv>;
|
|
1469
1474
|
|
|
1475
|
+
/**
|
|
1476
|
+
* User is not the proposer of the bounty.
|
|
1477
|
+
**/
|
|
1478
|
+
NotProposer: GenericPalletError<Rv>;
|
|
1479
|
+
|
|
1470
1480
|
/**
|
|
1471
1481
|
* Generic pallet error
|
|
1472
1482
|
**/
|
|
@@ -1743,6 +1753,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1743
1753
|
**/
|
|
1744
1754
|
List: GenericPalletError<Rv>;
|
|
1745
1755
|
|
|
1756
|
+
/**
|
|
1757
|
+
* Could not update a node, because the pallet is locked.
|
|
1758
|
+
**/
|
|
1759
|
+
Locked: GenericPalletError<Rv>;
|
|
1760
|
+
|
|
1746
1761
|
/**
|
|
1747
1762
|
* Generic pallet error
|
|
1748
1763
|
**/
|
|
@@ -2281,6 +2296,21 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2281
2296
|
**/
|
|
2282
2297
|
InvalidCode: GenericPalletError<Rv>;
|
|
2283
2298
|
|
|
2299
|
+
/**
|
|
2300
|
+
* No upgrade authorized.
|
|
2301
|
+
**/
|
|
2302
|
+
NothingAuthorized: GenericPalletError<Rv>;
|
|
2303
|
+
|
|
2304
|
+
/**
|
|
2305
|
+
* The submitted code is not authorized.
|
|
2306
|
+
**/
|
|
2307
|
+
Unauthorized: GenericPalletError<Rv>;
|
|
2308
|
+
|
|
2309
|
+
/**
|
|
2310
|
+
* Invalid block number.
|
|
2311
|
+
**/
|
|
2312
|
+
InvalidBlockNumber: GenericPalletError<Rv>;
|
|
2313
|
+
|
|
2284
2314
|
/**
|
|
2285
2315
|
* Generic pallet error
|
|
2286
2316
|
**/
|
|
@@ -2954,6 +2984,8 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2954
2984
|
|
|
2955
2985
|
/**
|
|
2956
2986
|
* Too many locations authorized to alias origin.
|
|
2987
|
+
*
|
|
2988
|
+
* @deprecated Use `LocalExecutionIncompleteWithError` instead (since 20.0.0)
|
|
2957
2989
|
**/
|
|
2958
2990
|
TooManyAuthorizedAliases: GenericPalletError<Rv>;
|
|
2959
2991
|
|
|
@@ -2967,6 +2999,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2967
2999
|
**/
|
|
2968
3000
|
AliasNotFound: GenericPalletError<Rv>;
|
|
2969
3001
|
|
|
3002
|
+
/**
|
|
3003
|
+
* Local XCM execution incomplete with the actual XCM error and the index of the
|
|
3004
|
+
* instruction that caused the error.
|
|
3005
|
+
**/
|
|
3006
|
+
LocalExecutionIncompleteWithError: GenericPalletError<Rv>;
|
|
3007
|
+
|
|
2970
3008
|
/**
|
|
2971
3009
|
* Generic pallet error
|
|
2972
3010
|
**/
|
package/kusama/events.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import type {
|
|
|
16
16
|
import type {
|
|
17
17
|
FrameSystemDispatchEventInfo,
|
|
18
18
|
FrameSupportTokensMiscBalanceStatus,
|
|
19
|
+
PalletBalancesUnexpectedKind,
|
|
19
20
|
PalletStakingRewardDestination,
|
|
20
21
|
PalletStakingValidatorPrefs,
|
|
21
22
|
PalletStakingForcing,
|
|
@@ -32,6 +33,7 @@ import type {
|
|
|
32
33
|
StagingKusamaRuntimeRuntimeParametersKey,
|
|
33
34
|
StagingKusamaRuntimeRuntimeParametersValue,
|
|
34
35
|
PalletSocietyGroupParams,
|
|
36
|
+
PalletRecoveryDepositKind,
|
|
35
37
|
KusamaRuntimeConstantsProxyProxyType,
|
|
36
38
|
PalletProxyDepositKind,
|
|
37
39
|
PalletMultisigTimepoint,
|
|
@@ -285,6 +287,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
285
287
|
**/
|
|
286
288
|
TotalIssuanceForced: GenericPalletEvent<Rv, 'Balances', 'TotalIssuanceForced', { old: bigint; new: bigint }>;
|
|
287
289
|
|
|
290
|
+
/**
|
|
291
|
+
* An unexpected/defensive event was triggered.
|
|
292
|
+
**/
|
|
293
|
+
Unexpected: GenericPalletEvent<Rv, 'Balances', 'Unexpected', PalletBalancesUnexpectedKind>;
|
|
294
|
+
|
|
288
295
|
/**
|
|
289
296
|
* Generic pallet event
|
|
290
297
|
**/
|
|
@@ -473,6 +480,25 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
473
480
|
**/
|
|
474
481
|
[prop: string]: GenericPalletEvent<Rv>;
|
|
475
482
|
};
|
|
483
|
+
/**
|
|
484
|
+
* Pallet `Historical`'s events
|
|
485
|
+
**/
|
|
486
|
+
historical: {
|
|
487
|
+
/**
|
|
488
|
+
* The merkle root of the validators of the said session were stored
|
|
489
|
+
**/
|
|
490
|
+
RootStored: GenericPalletEvent<Rv, 'Historical', 'RootStored', { index: number }>;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* The merkle roots of up to this session index were pruned
|
|
494
|
+
**/
|
|
495
|
+
RootsPruned: GenericPalletEvent<Rv, 'Historical', 'RootsPruned', { upTo: number }>;
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Generic pallet event
|
|
499
|
+
**/
|
|
500
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
501
|
+
};
|
|
476
502
|
/**
|
|
477
503
|
* Pallet `Session`'s events
|
|
478
504
|
**/
|
|
@@ -483,6 +509,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
483
509
|
**/
|
|
484
510
|
NewSession: GenericPalletEvent<Rv, 'Session', 'NewSession', { sessionIndex: number }>;
|
|
485
511
|
|
|
512
|
+
/**
|
|
513
|
+
* The `NewSession` event in the current block also implies a new validator set to be
|
|
514
|
+
* queued.
|
|
515
|
+
**/
|
|
516
|
+
NewQueued: GenericPalletEvent<Rv, 'Session', 'NewQueued', null>;
|
|
517
|
+
|
|
486
518
|
/**
|
|
487
519
|
* Validator has been disabled.
|
|
488
520
|
**/
|
|
@@ -1610,6 +1642,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1610
1642
|
**/
|
|
1611
1643
|
Elevated: GenericPalletEvent<Rv, 'Society', 'Elevated', { member: AccountId32; rank: number }>;
|
|
1612
1644
|
|
|
1645
|
+
/**
|
|
1646
|
+
* A deposit was poked / adjusted.
|
|
1647
|
+
**/
|
|
1648
|
+
DepositPoked: GenericPalletEvent<
|
|
1649
|
+
Rv,
|
|
1650
|
+
'Society',
|
|
1651
|
+
'DepositPoked',
|
|
1652
|
+
{ who: AccountId32; oldDeposit: bigint; newDeposit: bigint }
|
|
1653
|
+
>;
|
|
1654
|
+
|
|
1613
1655
|
/**
|
|
1614
1656
|
* Generic pallet event
|
|
1615
1657
|
**/
|
|
@@ -1669,6 +1711,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1669
1711
|
**/
|
|
1670
1712
|
RecoveryRemoved: GenericPalletEvent<Rv, 'Recovery', 'RecoveryRemoved', { lostAccount: AccountId32 }>;
|
|
1671
1713
|
|
|
1714
|
+
/**
|
|
1715
|
+
* A deposit has been updated.
|
|
1716
|
+
**/
|
|
1717
|
+
DepositPoked: GenericPalletEvent<
|
|
1718
|
+
Rv,
|
|
1719
|
+
'Recovery',
|
|
1720
|
+
'DepositPoked',
|
|
1721
|
+
{ who: AccountId32; kind: PalletRecoveryDepositKind; oldDeposit: bigint; newDeposit: bigint }
|
|
1722
|
+
>;
|
|
1723
|
+
|
|
1672
1724
|
/**
|
|
1673
1725
|
* Generic pallet event
|
|
1674
1726
|
**/
|
|
@@ -1678,6 +1730,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1678
1730
|
* Pallet `Vesting`'s events
|
|
1679
1731
|
**/
|
|
1680
1732
|
vesting: {
|
|
1733
|
+
/**
|
|
1734
|
+
* A vesting schedule has been created.
|
|
1735
|
+
**/
|
|
1736
|
+
VestingCreated: GenericPalletEvent<
|
|
1737
|
+
Rv,
|
|
1738
|
+
'Vesting',
|
|
1739
|
+
'VestingCreated',
|
|
1740
|
+
{ account: AccountId32; scheduleIndex: number }
|
|
1741
|
+
>;
|
|
1742
|
+
|
|
1681
1743
|
/**
|
|
1682
1744
|
* The amount vested has been updated. This could indicate a change in funds available.
|
|
1683
1745
|
* The balance given is the amount which is left unvested (and thus locked).
|
|
@@ -1814,6 +1876,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1814
1876
|
}
|
|
1815
1877
|
>;
|
|
1816
1878
|
|
|
1879
|
+
/**
|
|
1880
|
+
* A pure proxy was killed by its spawner.
|
|
1881
|
+
**/
|
|
1882
|
+
PureKilled: GenericPalletEvent<
|
|
1883
|
+
Rv,
|
|
1884
|
+
'Proxy',
|
|
1885
|
+
'PureKilled',
|
|
1886
|
+
{
|
|
1887
|
+
pure: AccountId32;
|
|
1888
|
+
spawner: AccountId32;
|
|
1889
|
+
proxyType: KusamaRuntimeConstantsProxyProxyType;
|
|
1890
|
+
disambiguationIndex: number;
|
|
1891
|
+
}
|
|
1892
|
+
>;
|
|
1893
|
+
|
|
1817
1894
|
/**
|
|
1818
1895
|
* An announcement was placed to make a call in the future.
|
|
1819
1896
|
**/
|
|
@@ -2007,6 +2084,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2007
2084
|
**/
|
|
2008
2085
|
CuratorAccepted: GenericPalletEvent<Rv, 'Bounties', 'CuratorAccepted', { bountyId: number; curator: AccountId32 }>;
|
|
2009
2086
|
|
|
2087
|
+
/**
|
|
2088
|
+
* A bounty deposit has been poked.
|
|
2089
|
+
**/
|
|
2090
|
+
DepositPoked: GenericPalletEvent<
|
|
2091
|
+
Rv,
|
|
2092
|
+
'Bounties',
|
|
2093
|
+
'DepositPoked',
|
|
2094
|
+
{ bountyId: number; proposer: AccountId32; oldDeposit: bigint; newDeposit: bigint }
|
|
2095
|
+
>;
|
|
2096
|
+
|
|
2010
2097
|
/**
|
|
2011
2098
|
* Generic pallet event
|
|
2012
2099
|
**/
|
|
@@ -2352,6 +2439,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2352
2439
|
{ old: bigint; new: bigint }
|
|
2353
2440
|
>;
|
|
2354
2441
|
|
|
2442
|
+
/**
|
|
2443
|
+
* An unexpected/defensive event was triggered.
|
|
2444
|
+
**/
|
|
2445
|
+
Unexpected: GenericPalletEvent<Rv, 'NisCounterpartBalances', 'Unexpected', PalletBalancesUnexpectedKind>;
|
|
2446
|
+
|
|
2355
2447
|
/**
|
|
2356
2448
|
* Generic pallet event
|
|
2357
2449
|
**/
|
|
@@ -2849,6 +2941,46 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2849
2941
|
[PolkadotParachainPrimitivesPrimitivesValidationCodeHash, PolkadotParachainPrimitivesPrimitivesId]
|
|
2850
2942
|
>;
|
|
2851
2943
|
|
|
2944
|
+
/**
|
|
2945
|
+
* The upgrade cooldown was removed.
|
|
2946
|
+
**/
|
|
2947
|
+
UpgradeCooldownRemoved: GenericPalletEvent<
|
|
2948
|
+
Rv,
|
|
2949
|
+
'Paras',
|
|
2950
|
+
'UpgradeCooldownRemoved',
|
|
2951
|
+
{
|
|
2952
|
+
/**
|
|
2953
|
+
* The parachain for which the cooldown got removed.
|
|
2954
|
+
**/
|
|
2955
|
+
paraId: PolkadotParachainPrimitivesPrimitivesId;
|
|
2956
|
+
}
|
|
2957
|
+
>;
|
|
2958
|
+
|
|
2959
|
+
/**
|
|
2960
|
+
* A new code hash has been authorized for a Para.
|
|
2961
|
+
**/
|
|
2962
|
+
CodeAuthorized: GenericPalletEvent<
|
|
2963
|
+
Rv,
|
|
2964
|
+
'Paras',
|
|
2965
|
+
'CodeAuthorized',
|
|
2966
|
+
{
|
|
2967
|
+
/**
|
|
2968
|
+
* Para
|
|
2969
|
+
**/
|
|
2970
|
+
paraId: PolkadotParachainPrimitivesPrimitivesId;
|
|
2971
|
+
|
|
2972
|
+
/**
|
|
2973
|
+
* Authorized code hash.
|
|
2974
|
+
**/
|
|
2975
|
+
codeHash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash;
|
|
2976
|
+
|
|
2977
|
+
/**
|
|
2978
|
+
* Block at which authorization expires and will be removed.
|
|
2979
|
+
**/
|
|
2980
|
+
expireAt: number;
|
|
2981
|
+
}
|
|
2982
|
+
>;
|
|
2983
|
+
|
|
2852
2984
|
/**
|
|
2853
2985
|
* Generic pallet event
|
|
2854
2986
|
**/
|
package/kusama/index.d.ts
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericSubstrateApi, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types';
|
|
3
|
+
import type { GenericSubstrateApi, GenericChainKnownTypes, RpcLegacy, RpcV2, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { MultiAddress } from 'dedot/codecs';
|
|
5
|
+
import type {
|
|
6
|
+
StagingKusamaRuntimeRuntimeCall,
|
|
7
|
+
SpRuntimeMultiSignature,
|
|
8
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
9
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
10
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
11
|
+
FrameSystemExtensionsCheckGenesis,
|
|
12
|
+
FrameSystemExtensionsCheckMortality,
|
|
13
|
+
FrameSystemExtensionsCheckNonce,
|
|
14
|
+
FrameSystemExtensionsCheckWeight,
|
|
15
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
16
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
17
|
+
} from './types.js';
|
|
4
18
|
import { ChainConsts } from './consts.js';
|
|
5
19
|
import { ChainStorage } from './query.js';
|
|
6
20
|
import { ChainJsonRpcApis } from './json-rpc.js';
|
|
@@ -12,6 +26,23 @@ import { ChainTx } from './tx.js';
|
|
|
12
26
|
|
|
13
27
|
export * from './types.js';
|
|
14
28
|
|
|
29
|
+
interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
30
|
+
Address: MultiAddress;
|
|
31
|
+
Signature: SpRuntimeMultiSignature;
|
|
32
|
+
RuntimeCall: StagingKusamaRuntimeRuntimeCall;
|
|
33
|
+
Extra: [
|
|
34
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
35
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
36
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
37
|
+
FrameSystemExtensionsCheckGenesis,
|
|
38
|
+
FrameSystemExtensionsCheckMortality,
|
|
39
|
+
FrameSystemExtensionsCheckNonce,
|
|
40
|
+
FrameSystemExtensionsCheckWeight,
|
|
41
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
42
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
|
|
15
46
|
export interface VersionedKusamaApi<Rv extends RpcVersion> extends GenericSubstrateApi<Rv> {
|
|
16
47
|
rpc: ChainJsonRpcApis<Rv>;
|
|
17
48
|
consts: ChainConsts<Rv>;
|
|
@@ -21,11 +52,13 @@ export interface VersionedKusamaApi<Rv extends RpcVersion> extends GenericSubstr
|
|
|
21
52
|
call: RuntimeApis<Rv>;
|
|
22
53
|
view: ChainViewFunctions<Rv>;
|
|
23
54
|
tx: ChainTx<Rv>;
|
|
55
|
+
|
|
56
|
+
types: ChainKnownTypes;
|
|
24
57
|
}
|
|
25
58
|
|
|
26
59
|
/**
|
|
27
60
|
* @name: KusamaApi
|
|
28
|
-
* @specVersion:
|
|
61
|
+
* @specVersion: 1007001
|
|
29
62
|
**/
|
|
30
63
|
export interface KusamaApi {
|
|
31
64
|
legacy: VersionedKusamaApi<RpcLegacy>;
|
package/kusama/json-rpc.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
|
|
|
11
11
|
| 'archive_v1_genesisHash'
|
|
12
12
|
| 'archive_v1_hashByHeight'
|
|
13
13
|
| 'archive_v1_header'
|
|
14
|
-
| 'archive_v1_stopStorage'
|
|
15
14
|
| 'archive_v1_storage'
|
|
16
15
|
| 'archive_v1_storageDiff'
|
|
17
16
|
| 'archive_v1_storageDiff_stopStorageDiff'
|