@dedot/chaintypes 0.151.0 → 0.153.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/index.d.ts +34 -1
- package/kusama/json-rpc.d.ts +0 -1
- package/kusama-asset-hub/index.d.ts +34 -1
- package/kusama-asset-hub/json-rpc.d.ts +0 -1
- package/kusama-people/index.d.ts +34 -1
- package/kusama-people/json-rpc.d.ts +0 -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/events.d.ts +79 -5
- package/westend/index.d.ts +39 -2
- package/westend/json-rpc.d.ts +0 -1
- package/westend/types.d.ts +70 -23
- package/westend-asset-hub/consts.d.ts +14 -0
- package/westend-asset-hub/errors.d.ts +29 -9
- package/westend-asset-hub/events.d.ts +95 -12
- package/westend-asset-hub/index.d.ts +38 -2
- package/westend-asset-hub/json-rpc.d.ts +0 -1
- package/westend-asset-hub/query.d.ts +27 -4
- package/westend-asset-hub/runtime.d.ts +17 -0
- package/westend-asset-hub/tx.d.ts +110 -26
- package/westend-asset-hub/types.d.ts +281 -102
- package/westend-people/consts.d.ts +27 -0
- package/westend-people/errors.d.ts +26 -12
- package/westend-people/events.d.ts +181 -3
- package/westend-people/index.d.ts +36 -2
- package/westend-people/json-rpc.d.ts +0 -1
- package/westend-people/query.d.ts +40 -2
- package/westend-people/runtime.d.ts +131 -31
- package/westend-people/tx.d.ts +156 -12
- package/westend-people/types.d.ts +1153 -783
- package/westend-people/view-functions.d.ts +34 -1
|
@@ -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 VersionedPaseoHydrationApi<Rv extends RpcVersion> extends GenericSubstrateApi<Rv> {
|
|
16
51
|
rpc: ChainJsonRpcApis<Rv>;
|
|
17
52
|
consts: ChainConsts<Rv>;
|
|
@@ -21,6 +56,8 @@ export interface VersionedPaseoHydrationApi<Rv extends RpcVersion> extends Gener
|
|
|
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/paseo-people/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
|
+
PeoplePaseoRuntimeRuntimeCall,
|
|
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: PeoplePaseoRuntimeRuntimeCall;
|
|
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 VersionedPaseoPeopleApi<Rv extends RpcVersion> extends GenericSubstrateApi<Rv> {
|
|
16
47
|
rpc: ChainJsonRpcApis<Rv>;
|
|
17
48
|
consts: ChainConsts<Rv>;
|
|
@@ -21,6 +52,8 @@ export interface VersionedPaseoPeopleApi<Rv extends RpcVersion> extends GenericS
|
|
|
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
|
/**
|
|
@@ -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'
|
package/polkadot/index.d.ts
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
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
|
+
PolkadotRuntimeRuntimeCall,
|
|
7
|
+
SpRuntimeMultiSignature,
|
|
8
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
9
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
10
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
11
|
+
FrameSystemExtensionsCheckGenesis,
|
|
12
|
+
FrameSystemExtensionsCheckMortality,
|
|
13
|
+
FrameSystemExtensionsCheckNonce,
|
|
14
|
+
FrameSystemExtensionsCheckWeight,
|
|
15
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
16
|
+
PolkadotRuntimeCommonClaimsPrevalidateAttests,
|
|
17
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
18
|
+
} from './types.js';
|
|
4
19
|
import { ChainConsts } from './consts.js';
|
|
5
20
|
import { ChainStorage } from './query.js';
|
|
6
21
|
import { ChainJsonRpcApis } from './json-rpc.js';
|
|
@@ -12,6 +27,24 @@ import { ChainTx } from './tx.js';
|
|
|
12
27
|
|
|
13
28
|
export * from './types.js';
|
|
14
29
|
|
|
30
|
+
interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
31
|
+
Address: MultiAddress;
|
|
32
|
+
Signature: SpRuntimeMultiSignature;
|
|
33
|
+
RuntimeCall: PolkadotRuntimeRuntimeCall;
|
|
34
|
+
Extra: [
|
|
35
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
36
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
37
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
38
|
+
FrameSystemExtensionsCheckGenesis,
|
|
39
|
+
FrameSystemExtensionsCheckMortality,
|
|
40
|
+
FrameSystemExtensionsCheckNonce,
|
|
41
|
+
FrameSystemExtensionsCheckWeight,
|
|
42
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
43
|
+
PolkadotRuntimeCommonClaimsPrevalidateAttests,
|
|
44
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
|
|
15
48
|
export interface VersionedPolkadotApi<Rv extends RpcVersion> extends GenericSubstrateApi<Rv> {
|
|
16
49
|
rpc: ChainJsonRpcApis<Rv>;
|
|
17
50
|
consts: ChainConsts<Rv>;
|
|
@@ -21,6 +54,8 @@ export interface VersionedPolkadotApi<Rv extends RpcVersion> extends GenericSubs
|
|
|
21
54
|
call: RuntimeApis<Rv>;
|
|
22
55
|
view: ChainViewFunctions<Rv>;
|
|
23
56
|
tx: ChainTx<Rv>;
|
|
57
|
+
|
|
58
|
+
types: ChainKnownTypes;
|
|
24
59
|
}
|
|
25
60
|
|
|
26
61
|
/**
|
package/polkadot/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'
|
|
@@ -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
|
+
AssetHubPolkadotRuntimeRuntimeCall,
|
|
7
|
+
SpRuntimeMultiSignature,
|
|
8
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
9
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
10
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
11
|
+
FrameSystemExtensionsCheckGenesis,
|
|
12
|
+
FrameSystemExtensionsCheckMortality,
|
|
13
|
+
FrameSystemExtensionsCheckNonce,
|
|
14
|
+
FrameSystemExtensionsCheckWeight,
|
|
15
|
+
PalletAssetConversionTxPaymentChargeAssetTxPayment,
|
|
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: AssetHubPolkadotRuntimeRuntimeCall;
|
|
33
|
+
Extra: [
|
|
34
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
35
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
36
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
37
|
+
FrameSystemExtensionsCheckGenesis,
|
|
38
|
+
FrameSystemExtensionsCheckMortality,
|
|
39
|
+
FrameSystemExtensionsCheckNonce,
|
|
40
|
+
FrameSystemExtensionsCheckWeight,
|
|
41
|
+
PalletAssetConversionTxPaymentChargeAssetTxPayment,
|
|
42
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
|
|
15
46
|
export interface VersionedPolkadotAssetHubApi<Rv extends RpcVersion> extends GenericSubstrateApi<Rv> {
|
|
16
47
|
rpc: ChainJsonRpcApis<Rv>;
|
|
17
48
|
consts: ChainConsts<Rv>;
|
|
@@ -21,6 +52,8 @@ export interface VersionedPolkadotAssetHubApi<Rv extends RpcVersion> extends Gen
|
|
|
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
|
/**
|
|
@@ -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'
|
|
@@ -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
|
+
PeoplePolkadotRuntimeRuntimeCall,
|
|
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: PeoplePolkadotRuntimeRuntimeCall;
|
|
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 VersionedPolkadotPeopleApi<Rv extends RpcVersion> extends GenericSubstrateApi<Rv> {
|
|
16
47
|
rpc: ChainJsonRpcApis<Rv>;
|
|
17
48
|
consts: ChainConsts<Rv>;
|
|
@@ -21,6 +52,8 @@ export interface VersionedPolkadotPeopleApi<Rv extends RpcVersion> extends Gener
|
|
|
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
|
/**
|
|
@@ -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'
|
package/substrate/index.d.ts
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
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
|
+
KitchensinkRuntimeRuntimeCall,
|
|
7
|
+
SpRuntimeMultiSignature,
|
|
8
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
9
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
10
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
11
|
+
FrameSystemExtensionsCheckGenesis,
|
|
12
|
+
FrameSystemExtensionsCheckMortality,
|
|
13
|
+
FrameSystemExtensionsCheckNonce,
|
|
14
|
+
FrameSystemExtensionsCheckWeight,
|
|
15
|
+
PalletAssetConversionTxPaymentChargeAssetTxPayment,
|
|
16
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
17
|
+
FrameSystemExtensionsWeightReclaim,
|
|
18
|
+
} from './types.js';
|
|
4
19
|
import { ChainConsts } from './consts.js';
|
|
5
20
|
import { ChainStorage } from './query.js';
|
|
6
21
|
import { ChainJsonRpcApis } from './json-rpc.js';
|
|
@@ -12,6 +27,24 @@ import { ChainTx } from './tx.js';
|
|
|
12
27
|
|
|
13
28
|
export * from './types.js';
|
|
14
29
|
|
|
30
|
+
interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
31
|
+
Address: MultiAddress;
|
|
32
|
+
Signature: SpRuntimeMultiSignature;
|
|
33
|
+
RuntimeCall: KitchensinkRuntimeRuntimeCall;
|
|
34
|
+
Extra: [
|
|
35
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
36
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
37
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
38
|
+
FrameSystemExtensionsCheckGenesis,
|
|
39
|
+
FrameSystemExtensionsCheckMortality,
|
|
40
|
+
FrameSystemExtensionsCheckNonce,
|
|
41
|
+
FrameSystemExtensionsCheckWeight,
|
|
42
|
+
PalletAssetConversionTxPaymentChargeAssetTxPayment,
|
|
43
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
44
|
+
FrameSystemExtensionsWeightReclaim,
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
|
|
15
48
|
export interface VersionedSubstrateApi<Rv extends RpcVersion> extends GenericSubstrateApi<Rv> {
|
|
16
49
|
rpc: ChainJsonRpcApis<Rv>;
|
|
17
50
|
consts: ChainConsts<Rv>;
|
|
@@ -21,6 +54,8 @@ export interface VersionedSubstrateApi<Rv extends RpcVersion> extends GenericSub
|
|
|
21
54
|
call: RuntimeApis<Rv>;
|
|
22
55
|
view: ChainViewFunctions<Rv>;
|
|
23
56
|
tx: ChainTx<Rv>;
|
|
57
|
+
|
|
58
|
+
types: ChainKnownTypes;
|
|
24
59
|
}
|
|
25
60
|
|
|
26
61
|
/**
|
package/vara/index.d.ts
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
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
|
+
VaraRuntimeRuntimeCall,
|
|
7
|
+
SpRuntimeMultiSignature,
|
|
8
|
+
PalletGearStakingRewardsExtensionStakingBlackList,
|
|
9
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
10
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
11
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
12
|
+
FrameSystemExtensionsCheckGenesis,
|
|
13
|
+
FrameSystemExtensionsCheckMortality,
|
|
14
|
+
VaraRuntimeCustomCheckNonce,
|
|
15
|
+
FrameSystemExtensionsCheckWeight,
|
|
16
|
+
PalletGearPaymentCustomChargeTransactionPayment,
|
|
17
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
18
|
+
} from './types.js';
|
|
4
19
|
import { ChainConsts } from './consts.js';
|
|
5
20
|
import { ChainStorage } from './query.js';
|
|
6
21
|
import { ChainJsonRpcApis } from './json-rpc.js';
|
|
@@ -12,6 +27,24 @@ import { ChainTx } from './tx.js';
|
|
|
12
27
|
|
|
13
28
|
export * from './types.js';
|
|
14
29
|
|
|
30
|
+
interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
31
|
+
Address: MultiAddress;
|
|
32
|
+
Signature: SpRuntimeMultiSignature;
|
|
33
|
+
RuntimeCall: VaraRuntimeRuntimeCall;
|
|
34
|
+
Extra: [
|
|
35
|
+
PalletGearStakingRewardsExtensionStakingBlackList,
|
|
36
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
37
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
38
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
39
|
+
FrameSystemExtensionsCheckGenesis,
|
|
40
|
+
FrameSystemExtensionsCheckMortality,
|
|
41
|
+
VaraRuntimeCustomCheckNonce,
|
|
42
|
+
FrameSystemExtensionsCheckWeight,
|
|
43
|
+
PalletGearPaymentCustomChargeTransactionPayment,
|
|
44
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
|
|
15
48
|
export interface VersionedVaraApi<Rv extends RpcVersion> extends GenericSubstrateApi<Rv> {
|
|
16
49
|
rpc: ChainJsonRpcApis<Rv>;
|
|
17
50
|
consts: ChainConsts<Rv>;
|
|
@@ -21,6 +54,8 @@ export interface VersionedVaraApi<Rv extends RpcVersion> extends GenericSubstrat
|
|
|
21
54
|
call: RuntimeApis<Rv>;
|
|
22
55
|
view: ChainViewFunctions<Rv>;
|
|
23
56
|
tx: ChainTx<Rv>;
|
|
57
|
+
|
|
58
|
+
types: ChainKnownTypes;
|
|
24
59
|
}
|
|
25
60
|
|
|
26
61
|
/**
|
package/westend/events.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ import type { DispatchError, AccountId32, H256, Perbill, FixedBytes, Bytes, Resu
|
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemDispatchEventInfo,
|
|
7
7
|
FrameSupportTokensMiscBalanceStatus,
|
|
8
|
+
WestendRuntimeRuntimeHoldReason,
|
|
9
|
+
PalletBalancesUnexpectedKind,
|
|
8
10
|
PalletStakingRewardDestination,
|
|
9
11
|
PalletStakingValidatorPrefs,
|
|
10
12
|
PalletStakingForcing,
|
|
@@ -218,11 +220,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
218
220
|
**/
|
|
219
221
|
Minted: GenericPalletEvent<Rv, 'Balances', 'Minted', { who: AccountId32; amount: bigint }>;
|
|
220
222
|
|
|
223
|
+
/**
|
|
224
|
+
* Some credit was balanced and added to the TotalIssuance.
|
|
225
|
+
**/
|
|
226
|
+
MintedCredit: GenericPalletEvent<Rv, 'Balances', 'MintedCredit', { amount: bigint }>;
|
|
227
|
+
|
|
221
228
|
/**
|
|
222
229
|
* Some amount was burned from an account.
|
|
223
230
|
**/
|
|
224
231
|
Burned: GenericPalletEvent<Rv, 'Balances', 'Burned', { who: AccountId32; amount: bigint }>;
|
|
225
232
|
|
|
233
|
+
/**
|
|
234
|
+
* Some debt has been dropped from the Total Issuance.
|
|
235
|
+
**/
|
|
236
|
+
BurnedDebt: GenericPalletEvent<Rv, 'Balances', 'BurnedDebt', { amount: bigint }>;
|
|
237
|
+
|
|
226
238
|
/**
|
|
227
239
|
* Some amount was suspended from an account (it can be restored later).
|
|
228
240
|
**/
|
|
@@ -273,6 +285,61 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
273
285
|
**/
|
|
274
286
|
TotalIssuanceForced: GenericPalletEvent<Rv, 'Balances', 'TotalIssuanceForced', { old: bigint; new: bigint }>;
|
|
275
287
|
|
|
288
|
+
/**
|
|
289
|
+
* Some balance was placed on hold.
|
|
290
|
+
**/
|
|
291
|
+
Held: GenericPalletEvent<
|
|
292
|
+
Rv,
|
|
293
|
+
'Balances',
|
|
294
|
+
'Held',
|
|
295
|
+
{ reason: WestendRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
|
|
296
|
+
>;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Held balance was burned from an account.
|
|
300
|
+
**/
|
|
301
|
+
BurnedHeld: GenericPalletEvent<
|
|
302
|
+
Rv,
|
|
303
|
+
'Balances',
|
|
304
|
+
'BurnedHeld',
|
|
305
|
+
{ reason: WestendRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
|
|
306
|
+
>;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* A transfer of `amount` on hold from `source` to `dest` was initiated.
|
|
310
|
+
**/
|
|
311
|
+
TransferOnHold: GenericPalletEvent<
|
|
312
|
+
Rv,
|
|
313
|
+
'Balances',
|
|
314
|
+
'TransferOnHold',
|
|
315
|
+
{ reason: WestendRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; amount: bigint }
|
|
316
|
+
>;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* The `transferred` balance is placed on hold at the `dest` account.
|
|
320
|
+
**/
|
|
321
|
+
TransferAndHold: GenericPalletEvent<
|
|
322
|
+
Rv,
|
|
323
|
+
'Balances',
|
|
324
|
+
'TransferAndHold',
|
|
325
|
+
{ reason: WestendRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; transferred: bigint }
|
|
326
|
+
>;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Some balance was released from hold.
|
|
330
|
+
**/
|
|
331
|
+
Released: GenericPalletEvent<
|
|
332
|
+
Rv,
|
|
333
|
+
'Balances',
|
|
334
|
+
'Released',
|
|
335
|
+
{ reason: WestendRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
|
|
336
|
+
>;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* An unexpected/defensive event was triggered.
|
|
340
|
+
**/
|
|
341
|
+
Unexpected: GenericPalletEvent<Rv, 'Balances', 'Unexpected', PalletBalancesUnexpectedKind>;
|
|
342
|
+
|
|
276
343
|
/**
|
|
277
344
|
* Generic pallet event
|
|
278
345
|
**/
|
|
@@ -1096,7 +1163,14 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1096
1163
|
Rv,
|
|
1097
1164
|
'Proxy',
|
|
1098
1165
|
'PureCreated',
|
|
1099
|
-
{
|
|
1166
|
+
{
|
|
1167
|
+
pure: AccountId32;
|
|
1168
|
+
who: AccountId32;
|
|
1169
|
+
proxyType: WestendRuntimeProxyType;
|
|
1170
|
+
disambiguationIndex: number;
|
|
1171
|
+
at: number;
|
|
1172
|
+
extrinsicIndex: number;
|
|
1173
|
+
}
|
|
1100
1174
|
>;
|
|
1101
1175
|
|
|
1102
1176
|
/**
|
|
@@ -1600,12 +1674,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1600
1674
|
/**
|
|
1601
1675
|
* An account has delegated their vote to another account. \[who, target\]
|
|
1602
1676
|
**/
|
|
1603
|
-
Delegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Delegated', [AccountId32, AccountId32]>;
|
|
1677
|
+
Delegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Delegated', [AccountId32, AccountId32, number]>;
|
|
1604
1678
|
|
|
1605
1679
|
/**
|
|
1606
1680
|
* An \[account\] has cancelled a previous delegation operation.
|
|
1607
1681
|
**/
|
|
1608
|
-
Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', AccountId32>;
|
|
1682
|
+
Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', [AccountId32, number]>;
|
|
1609
1683
|
|
|
1610
1684
|
/**
|
|
1611
1685
|
* An account has voted
|
|
@@ -1614,7 +1688,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1614
1688
|
Rv,
|
|
1615
1689
|
'ConvictionVoting',
|
|
1616
1690
|
'Voted',
|
|
1617
|
-
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
1691
|
+
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote; pollIndex: number }
|
|
1618
1692
|
>;
|
|
1619
1693
|
|
|
1620
1694
|
/**
|
|
@@ -1624,7 +1698,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1624
1698
|
Rv,
|
|
1625
1699
|
'ConvictionVoting',
|
|
1626
1700
|
'VoteRemoved',
|
|
1627
|
-
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
1701
|
+
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote; pollIndex: number }
|
|
1628
1702
|
>;
|
|
1629
1703
|
|
|
1630
1704
|
/**
|
package/westend/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 { MultiAddress } from 'dedot/codecs';
|
|
5
|
+
import type {
|
|
6
|
+
WestendRuntimeRuntimeCall,
|
|
7
|
+
SpRuntimeMultiSignature,
|
|
8
|
+
FrameSystemExtensionsAuthorizeCall,
|
|
9
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
10
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
11
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
12
|
+
FrameSystemExtensionsCheckGenesis,
|
|
13
|
+
FrameSystemExtensionsCheckMortality,
|
|
14
|
+
FrameSystemExtensionsCheckNonce,
|
|
15
|
+
FrameSystemExtensionsCheckWeight,
|
|
16
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
17
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
18
|
+
FrameSystemExtensionsWeightReclaim,
|
|
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: MultiAddress;
|
|
33
|
+
Signature: SpRuntimeMultiSignature;
|
|
34
|
+
RuntimeCall: WestendRuntimeRuntimeCall;
|
|
35
|
+
Extra: [
|
|
36
|
+
FrameSystemExtensionsAuthorizeCall,
|
|
37
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
38
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
39
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
40
|
+
FrameSystemExtensionsCheckGenesis,
|
|
41
|
+
FrameSystemExtensionsCheckMortality,
|
|
42
|
+
FrameSystemExtensionsCheckNonce,
|
|
43
|
+
FrameSystemExtensionsCheckWeight,
|
|
44
|
+
PalletTransactionPaymentChargeTransactionPayment,
|
|
45
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
46
|
+
FrameSystemExtensionsWeightReclaim,
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
|
|
15
50
|
export interface VersionedWestendApi<Rv extends RpcVersion> extends GenericSubstrateApi<Rv> {
|
|
16
51
|
rpc: ChainJsonRpcApis<Rv>;
|
|
17
52
|
consts: ChainConsts<Rv>;
|
|
@@ -21,11 +56,13 @@ export interface VersionedWestendApi<Rv extends RpcVersion> extends GenericSubst
|
|
|
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
|
/**
|
|
27
64
|
* @name: WestendApi
|
|
28
|
-
* @specVersion:
|
|
65
|
+
* @specVersion: 1020000
|
|
29
66
|
**/
|
|
30
67
|
export interface WestendApi {
|
|
31
68
|
legacy: VersionedWestendApi<RpcLegacy>;
|
package/westend/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'
|