@dedot/chaintypes 0.9.0 → 0.11.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 +4 -0
- package/astar/index.d.ts +4 -0
- package/kusama/index.d.ts +4 -0
- package/kusama-asset-hub/index.d.ts +4 -0
- package/moonbeam/index.d.ts +4 -0
- package/package.json +3 -3
- package/paseo/consts.d.ts +9 -0
- package/paseo/events.d.ts +25 -0
- package/paseo/index.d.ts +4 -0
- package/paseo/tx.d.ts +47 -0
- package/paseo/types.d.ts +43 -3
- package/polkadot/index.d.ts +4 -0
- package/polkadot-asset-hub/index.d.ts +4 -0
- package/rococo/index.d.ts +4 -0
- package/rococo-asset-hub/index.d.ts +4 -0
- package/substrate/index.d.ts +4 -0
- package/westend/index.d.ts +4 -0
- package/westend-asset-hub/index.d.ts +4 -0
- package/westend-people/index.d.ts +4 -0
package/aleph/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export interface VersionedAlephApi<Rv extends RpcVersion> extends GenericSubstra
|
|
|
21
21
|
tx: ChainTx<Rv>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @name: AlephApi
|
|
26
|
+
* @specVersion: 73
|
|
27
|
+
**/
|
|
24
28
|
export interface AlephApi {
|
|
25
29
|
legacy: VersionedAlephApi<RpcLegacy>;
|
|
26
30
|
v2: VersionedAlephApi<RpcV2>;
|
package/astar/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export interface VersionedAstarApi<Rv extends RpcVersion> extends GenericSubstra
|
|
|
21
21
|
tx: ChainTx<Rv>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @name: AstarApi
|
|
26
|
+
* @specVersion: 92
|
|
27
|
+
**/
|
|
24
28
|
export interface AstarApi {
|
|
25
29
|
legacy: VersionedAstarApi<RpcLegacy>;
|
|
26
30
|
v2: VersionedAstarApi<RpcV2>;
|
package/kusama/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export interface VersionedKusamaApi<Rv extends RpcVersion> extends GenericSubstr
|
|
|
21
21
|
tx: ChainTx<Rv>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @name: KusamaApi
|
|
26
|
+
* @specVersion: 1002006
|
|
27
|
+
**/
|
|
24
28
|
export interface KusamaApi {
|
|
25
29
|
legacy: VersionedKusamaApi<RpcLegacy>;
|
|
26
30
|
v2: VersionedKusamaApi<RpcV2>;
|
|
@@ -21,6 +21,10 @@ export interface VersionedKusamaAssetHubApi<Rv extends RpcVersion> extends Gener
|
|
|
21
21
|
tx: ChainTx<Rv>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @name: KusamaAssetHubApi
|
|
26
|
+
* @specVersion: 1002006
|
|
27
|
+
**/
|
|
24
28
|
export interface KusamaAssetHubApi {
|
|
25
29
|
legacy: VersionedKusamaAssetHubApi<RpcLegacy>;
|
|
26
30
|
v2: VersionedKusamaAssetHubApi<RpcV2>;
|
package/moonbeam/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export interface VersionedMoonbeamApi<Rv extends RpcVersion> extends GenericSubs
|
|
|
21
21
|
tx: ChainTx<Rv>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @name: MoonbeamApi
|
|
26
|
+
* @specVersion: 3001
|
|
27
|
+
**/
|
|
24
28
|
export interface MoonbeamApi {
|
|
25
29
|
legacy: VersionedMoonbeamApi<RpcLegacy>;
|
|
26
30
|
v2: VersionedMoonbeamApi<RpcV2>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@coongcrafts.io>",
|
|
6
6
|
"main": "",
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"copy": "cp -R ./src/* ./dist"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"dedot": "^0.
|
|
15
|
+
"dedot": "^0.5.0"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public",
|
|
19
19
|
"directory": "dist"
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "9bcbe052bdb9525f37991edefce535583ecdb007",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
package/paseo/consts.d.ts
CHANGED
|
@@ -1328,4 +1328,13 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1328
1328
|
**/
|
|
1329
1329
|
[name: string]: any;
|
|
1330
1330
|
};
|
|
1331
|
+
/**
|
|
1332
|
+
* Pallet `IdentityMigrator`'s constants
|
|
1333
|
+
**/
|
|
1334
|
+
identityMigrator: {
|
|
1335
|
+
/**
|
|
1336
|
+
* Generic pallet constant
|
|
1337
|
+
**/
|
|
1338
|
+
[name: string]: any;
|
|
1339
|
+
};
|
|
1331
1340
|
}
|
package/paseo/events.d.ts
CHANGED
|
@@ -2813,6 +2813,31 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2813
2813
|
}
|
|
2814
2814
|
>;
|
|
2815
2815
|
|
|
2816
|
+
/**
|
|
2817
|
+
* Generic pallet event
|
|
2818
|
+
**/
|
|
2819
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
2820
|
+
};
|
|
2821
|
+
/**
|
|
2822
|
+
* Pallet `IdentityMigrator`'s events
|
|
2823
|
+
**/
|
|
2824
|
+
identityMigrator: {
|
|
2825
|
+
/**
|
|
2826
|
+
* The identity and all sub accounts were reaped for `who`.
|
|
2827
|
+
**/
|
|
2828
|
+
IdentityReaped: GenericPalletEvent<Rv, 'IdentityMigrator', 'IdentityReaped', { who: AccountId32 }>;
|
|
2829
|
+
|
|
2830
|
+
/**
|
|
2831
|
+
* The deposits held for `who` were updated. `identity` is the new deposit held for
|
|
2832
|
+
* identity info, and `subs` is the new deposit held for the sub-accounts.
|
|
2833
|
+
**/
|
|
2834
|
+
DepositUpdated: GenericPalletEvent<
|
|
2835
|
+
Rv,
|
|
2836
|
+
'IdentityMigrator',
|
|
2837
|
+
'DepositUpdated',
|
|
2838
|
+
{ who: AccountId32; identity: bigint; subs: bigint }
|
|
2839
|
+
>;
|
|
2840
|
+
|
|
2816
2841
|
/**
|
|
2817
2842
|
* Generic pallet event
|
|
2818
2843
|
**/
|
package/paseo/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export interface VersionedPaseoApi<Rv extends RpcVersion> extends GenericSubstra
|
|
|
21
21
|
tx: ChainTx<Rv>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @name: PaseoApi
|
|
26
|
+
* @specVersion: 1002006
|
|
27
|
+
**/
|
|
24
28
|
export interface PaseoApi {
|
|
25
29
|
legacy: VersionedPaseoApi<RpcLegacy>;
|
|
26
30
|
v2: VersionedPaseoApi<RpcV2>;
|
package/paseo/tx.d.ts
CHANGED
|
@@ -8016,6 +8016,53 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8016
8016
|
>
|
|
8017
8017
|
>;
|
|
8018
8018
|
|
|
8019
|
+
/**
|
|
8020
|
+
* Generic pallet tx call
|
|
8021
|
+
**/
|
|
8022
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
8023
|
+
};
|
|
8024
|
+
/**
|
|
8025
|
+
* Pallet `IdentityMigrator`'s transaction calls
|
|
8026
|
+
**/
|
|
8027
|
+
identityMigrator: {
|
|
8028
|
+
/**
|
|
8029
|
+
* See [`Pallet::reap_identity`].
|
|
8030
|
+
*
|
|
8031
|
+
* @param {AccountId32Like} who
|
|
8032
|
+
**/
|
|
8033
|
+
reapIdentity: GenericTxCall<
|
|
8034
|
+
Rv,
|
|
8035
|
+
(who: AccountId32Like) => ChainSubmittableExtrinsic<
|
|
8036
|
+
Rv,
|
|
8037
|
+
{
|
|
8038
|
+
pallet: 'IdentityMigrator';
|
|
8039
|
+
palletCall: {
|
|
8040
|
+
name: 'ReapIdentity';
|
|
8041
|
+
params: { who: AccountId32Like };
|
|
8042
|
+
};
|
|
8043
|
+
}
|
|
8044
|
+
>
|
|
8045
|
+
>;
|
|
8046
|
+
|
|
8047
|
+
/**
|
|
8048
|
+
* See [`Pallet::poke_deposit`].
|
|
8049
|
+
*
|
|
8050
|
+
* @param {AccountId32Like} who
|
|
8051
|
+
**/
|
|
8052
|
+
pokeDeposit: GenericTxCall<
|
|
8053
|
+
Rv,
|
|
8054
|
+
(who: AccountId32Like) => ChainSubmittableExtrinsic<
|
|
8055
|
+
Rv,
|
|
8056
|
+
{
|
|
8057
|
+
pallet: 'IdentityMigrator';
|
|
8058
|
+
palletCall: {
|
|
8059
|
+
name: 'PokeDeposit';
|
|
8060
|
+
params: { who: AccountId32Like };
|
|
8061
|
+
};
|
|
8062
|
+
}
|
|
8063
|
+
>
|
|
8064
|
+
>;
|
|
8065
|
+
|
|
8019
8066
|
/**
|
|
8020
8067
|
* Generic pallet tx call
|
|
8021
8068
|
**/
|
package/paseo/types.d.ts
CHANGED
|
@@ -95,7 +95,8 @@ export type PaseoRuntimeRuntimeEvent =
|
|
|
95
95
|
| { pallet: 'XcmPallet'; palletEvent: PalletXcmEvent }
|
|
96
96
|
| { pallet: 'MessageQueue'; palletEvent: PalletMessageQueueEvent }
|
|
97
97
|
| { pallet: 'AssetRate'; palletEvent: PalletAssetRateEvent }
|
|
98
|
-
| { pallet: 'Sudo'; palletEvent: PalletSudoEvent }
|
|
98
|
+
| { pallet: 'Sudo'; palletEvent: PalletSudoEvent }
|
|
99
|
+
| { pallet: 'IdentityMigrator'; palletEvent: PolkadotRuntimeCommonIdentityMigratorPalletEvent };
|
|
99
100
|
|
|
100
101
|
/**
|
|
101
102
|
* Event for the System pallet.
|
|
@@ -1079,7 +1080,8 @@ export type PaseoRuntimeRuntimeCall =
|
|
|
1079
1080
|
| { pallet: 'AssetRate'; palletCall: PalletAssetRateCall }
|
|
1080
1081
|
| { pallet: 'Beefy'; palletCall: PalletBeefyCall }
|
|
1081
1082
|
| { pallet: 'ParaSudoWrapper'; palletCall: PolkadotRuntimeCommonParasSudoWrapperPalletCall }
|
|
1082
|
-
| { pallet: 'Sudo'; palletCall: PalletSudoCall }
|
|
1083
|
+
| { pallet: 'Sudo'; palletCall: PalletSudoCall }
|
|
1084
|
+
| { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCall };
|
|
1083
1085
|
|
|
1084
1086
|
export type PaseoRuntimeRuntimeCallLike =
|
|
1085
1087
|
| { pallet: 'System'; palletCall: FrameSystemCallLike }
|
|
@@ -1127,7 +1129,8 @@ export type PaseoRuntimeRuntimeCallLike =
|
|
|
1127
1129
|
| { pallet: 'AssetRate'; palletCall: PalletAssetRateCallLike }
|
|
1128
1130
|
| { pallet: 'Beefy'; palletCall: PalletBeefyCallLike }
|
|
1129
1131
|
| { pallet: 'ParaSudoWrapper'; palletCall: PolkadotRuntimeCommonParasSudoWrapperPalletCallLike }
|
|
1130
|
-
| { pallet: 'Sudo'; palletCall: PalletSudoCallLike }
|
|
1132
|
+
| { pallet: 'Sudo'; palletCall: PalletSudoCallLike }
|
|
1133
|
+
| { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCallLike };
|
|
1131
1134
|
|
|
1132
1135
|
/**
|
|
1133
1136
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -5993,6 +5996,29 @@ export type PalletSudoCallLike =
|
|
|
5993
5996
|
**/
|
|
5994
5997
|
| { name: 'RemoveKey' };
|
|
5995
5998
|
|
|
5999
|
+
/**
|
|
6000
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
6001
|
+
**/
|
|
6002
|
+
export type PolkadotRuntimeCommonIdentityMigratorPalletCall =
|
|
6003
|
+
/**
|
|
6004
|
+
* See [`Pallet::reap_identity`].
|
|
6005
|
+
**/
|
|
6006
|
+
| { name: 'ReapIdentity'; params: { who: AccountId32 } }
|
|
6007
|
+
/**
|
|
6008
|
+
* See [`Pallet::poke_deposit`].
|
|
6009
|
+
**/
|
|
6010
|
+
| { name: 'PokeDeposit'; params: { who: AccountId32 } };
|
|
6011
|
+
|
|
6012
|
+
export type PolkadotRuntimeCommonIdentityMigratorPalletCallLike =
|
|
6013
|
+
/**
|
|
6014
|
+
* See [`Pallet::reap_identity`].
|
|
6015
|
+
**/
|
|
6016
|
+
| { name: 'ReapIdentity'; params: { who: AccountId32Like } }
|
|
6017
|
+
/**
|
|
6018
|
+
* See [`Pallet::poke_deposit`].
|
|
6019
|
+
**/
|
|
6020
|
+
| { name: 'PokeDeposit'; params: { who: AccountId32Like } };
|
|
6021
|
+
|
|
5996
6022
|
export type SpRuntimeBlakeTwo256 = {};
|
|
5997
6023
|
|
|
5998
6024
|
export type PalletConvictionVotingTally = { ayes: bigint; nays: bigint; support: bigint };
|
|
@@ -7273,6 +7299,20 @@ export type PalletSudoEvent =
|
|
|
7273
7299
|
};
|
|
7274
7300
|
};
|
|
7275
7301
|
|
|
7302
|
+
/**
|
|
7303
|
+
* The `Event` enum of this pallet
|
|
7304
|
+
**/
|
|
7305
|
+
export type PolkadotRuntimeCommonIdentityMigratorPalletEvent =
|
|
7306
|
+
/**
|
|
7307
|
+
* The identity and all sub accounts were reaped for `who`.
|
|
7308
|
+
**/
|
|
7309
|
+
| { name: 'IdentityReaped'; data: { who: AccountId32 } }
|
|
7310
|
+
/**
|
|
7311
|
+
* The deposits held for `who` were updated. `identity` is the new deposit held for
|
|
7312
|
+
* identity info, and `subs` is the new deposit held for the sub-accounts.
|
|
7313
|
+
**/
|
|
7314
|
+
| { name: 'DepositUpdated'; data: { who: AccountId32; identity: bigint; subs: bigint } };
|
|
7315
|
+
|
|
7276
7316
|
export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string };
|
|
7277
7317
|
|
|
7278
7318
|
export type FrameSystemCodeUpgradeAuthorization = { codeHash: H256; checkVersion: boolean };
|
package/polkadot/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export interface VersionedPolkadotApi<Rv extends RpcVersion> extends GenericSubs
|
|
|
21
21
|
tx: ChainTx<Rv>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @name: PolkadotApi
|
|
26
|
+
* @specVersion: 1002007
|
|
27
|
+
**/
|
|
24
28
|
export interface PolkadotApi {
|
|
25
29
|
legacy: VersionedPolkadotApi<RpcLegacy>;
|
|
26
30
|
v2: VersionedPolkadotApi<RpcV2>;
|
|
@@ -21,6 +21,10 @@ export interface VersionedPolkadotAssetHubApi<Rv extends RpcVersion> extends Gen
|
|
|
21
21
|
tx: ChainTx<Rv>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @name: PolkadotAssetHubApi
|
|
26
|
+
* @specVersion: 1002006
|
|
27
|
+
**/
|
|
24
28
|
export interface PolkadotAssetHubApi {
|
|
25
29
|
legacy: VersionedPolkadotAssetHubApi<RpcLegacy>;
|
|
26
30
|
v2: VersionedPolkadotAssetHubApi<RpcV2>;
|
package/rococo/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export interface VersionedRococoApi<Rv extends RpcVersion> extends GenericSubstr
|
|
|
21
21
|
tx: ChainTx<Rv>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @name: RococoApi
|
|
26
|
+
* @specVersion: 1015000
|
|
27
|
+
**/
|
|
24
28
|
export interface RococoApi {
|
|
25
29
|
legacy: VersionedRococoApi<RpcLegacy>;
|
|
26
30
|
v2: VersionedRococoApi<RpcV2>;
|
|
@@ -21,6 +21,10 @@ export interface VersionedRococoAssetHubApi<Rv extends RpcVersion> extends Gener
|
|
|
21
21
|
tx: ChainTx<Rv>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @name: RococoAssetHubApi
|
|
26
|
+
* @specVersion: 1015000
|
|
27
|
+
**/
|
|
24
28
|
export interface RococoAssetHubApi {
|
|
25
29
|
legacy: VersionedRococoAssetHubApi<RpcLegacy>;
|
|
26
30
|
v2: VersionedRococoAssetHubApi<RpcV2>;
|
package/substrate/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export interface VersionedSubstrateApi<Rv extends RpcVersion> extends GenericSub
|
|
|
21
21
|
tx: ChainTx<Rv>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @name: SubstrateApi
|
|
26
|
+
* @specVersion: 268
|
|
27
|
+
**/
|
|
24
28
|
export interface SubstrateApi {
|
|
25
29
|
legacy: VersionedSubstrateApi<RpcLegacy>;
|
|
26
30
|
v2: VersionedSubstrateApi<RpcV2>;
|
package/westend/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export interface VersionedWestendApi<Rv extends RpcVersion> extends GenericSubst
|
|
|
21
21
|
tx: ChainTx<Rv>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @name: WestendApi
|
|
26
|
+
* @specVersion: 1015000
|
|
27
|
+
**/
|
|
24
28
|
export interface WestendApi {
|
|
25
29
|
legacy: VersionedWestendApi<RpcLegacy>;
|
|
26
30
|
v2: VersionedWestendApi<RpcV2>;
|
|
@@ -21,6 +21,10 @@ export interface VersionedWestendAssetHubApi<Rv extends RpcVersion> extends Gene
|
|
|
21
21
|
tx: ChainTx<Rv>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @name: WestendAssetHubApi
|
|
26
|
+
* @specVersion: 1015000
|
|
27
|
+
**/
|
|
24
28
|
export interface WestendAssetHubApi {
|
|
25
29
|
legacy: VersionedWestendAssetHubApi<RpcLegacy>;
|
|
26
30
|
v2: VersionedWestendAssetHubApi<RpcV2>;
|
|
@@ -21,6 +21,10 @@ export interface VersionedWestendPeopleApi<Rv extends RpcVersion> extends Generi
|
|
|
21
21
|
tx: ChainTx<Rv>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @name: WestendPeopleApi
|
|
26
|
+
* @specVersion: 1015000
|
|
27
|
+
**/
|
|
24
28
|
export interface WestendPeopleApi {
|
|
25
29
|
legacy: VersionedWestendPeopleApi<RpcLegacy>;
|
|
26
30
|
v2: VersionedWestendPeopleApi<RpcV2>;
|