@dedot/chaintypes 0.10.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/package.json +2 -2
- package/paseo/consts.d.ts +9 -0
- package/paseo/events.d.ts +25 -0
- package/paseo/index.d.ts +1 -1
- package/paseo/tx.d.ts +47 -0
- package/paseo/types.d.ts +43 -3
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": "",
|
|
@@ -19,7 +19,7 @@
|
|
|
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
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 };
|