@dedot/chaintypes 0.0.1-alpha.149 → 0.0.1-alpha.151
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/polkadot/consts.d.ts +9 -0
- package/polkadot/events.d.ts +25 -0
- package/polkadot/tx.d.ts +47 -0
- package/polkadot/types.d.ts +43 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.151",
|
|
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": "7ae942cbc167c8b289b5a11fc3c4f9ebb820397c",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
package/polkadot/consts.d.ts
CHANGED
|
@@ -1310,4 +1310,13 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1310
1310
|
**/
|
|
1311
1311
|
[name: string]: any;
|
|
1312
1312
|
};
|
|
1313
|
+
/**
|
|
1314
|
+
* Pallet `IdentityMigrator`'s constants
|
|
1315
|
+
**/
|
|
1316
|
+
identityMigrator: {
|
|
1317
|
+
/**
|
|
1318
|
+
* Generic pallet constant
|
|
1319
|
+
**/
|
|
1320
|
+
[name: string]: any;
|
|
1321
|
+
};
|
|
1313
1322
|
}
|
package/polkadot/events.d.ts
CHANGED
|
@@ -2749,6 +2749,31 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2749
2749
|
{ assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset; old: FixedU128; new: FixedU128 }
|
|
2750
2750
|
>;
|
|
2751
2751
|
|
|
2752
|
+
/**
|
|
2753
|
+
* Generic pallet event
|
|
2754
|
+
**/
|
|
2755
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
2756
|
+
};
|
|
2757
|
+
/**
|
|
2758
|
+
* Pallet `IdentityMigrator`'s events
|
|
2759
|
+
**/
|
|
2760
|
+
identityMigrator: {
|
|
2761
|
+
/**
|
|
2762
|
+
* The identity and all sub accounts were reaped for `who`.
|
|
2763
|
+
**/
|
|
2764
|
+
IdentityReaped: GenericPalletEvent<Rv, 'IdentityMigrator', 'IdentityReaped', { who: AccountId32 }>;
|
|
2765
|
+
|
|
2766
|
+
/**
|
|
2767
|
+
* The deposits held for `who` were updated. `identity` is the new deposit held for
|
|
2768
|
+
* identity info, and `subs` is the new deposit held for the sub-accounts.
|
|
2769
|
+
**/
|
|
2770
|
+
DepositUpdated: GenericPalletEvent<
|
|
2771
|
+
Rv,
|
|
2772
|
+
'IdentityMigrator',
|
|
2773
|
+
'DepositUpdated',
|
|
2774
|
+
{ who: AccountId32; identity: bigint; subs: bigint }
|
|
2775
|
+
>;
|
|
2776
|
+
|
|
2752
2777
|
/**
|
|
2753
2778
|
* Generic pallet event
|
|
2754
2779
|
**/
|
package/polkadot/tx.d.ts
CHANGED
|
@@ -7760,6 +7760,53 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7760
7760
|
>
|
|
7761
7761
|
>;
|
|
7762
7762
|
|
|
7763
|
+
/**
|
|
7764
|
+
* Generic pallet tx call
|
|
7765
|
+
**/
|
|
7766
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
7767
|
+
};
|
|
7768
|
+
/**
|
|
7769
|
+
* Pallet `IdentityMigrator`'s transaction calls
|
|
7770
|
+
**/
|
|
7771
|
+
identityMigrator: {
|
|
7772
|
+
/**
|
|
7773
|
+
* See [`Pallet::reap_identity`].
|
|
7774
|
+
*
|
|
7775
|
+
* @param {AccountId32Like} who
|
|
7776
|
+
**/
|
|
7777
|
+
reapIdentity: GenericTxCall<
|
|
7778
|
+
Rv,
|
|
7779
|
+
(who: AccountId32Like) => ChainSubmittableExtrinsic<
|
|
7780
|
+
Rv,
|
|
7781
|
+
{
|
|
7782
|
+
pallet: 'IdentityMigrator';
|
|
7783
|
+
palletCall: {
|
|
7784
|
+
name: 'ReapIdentity';
|
|
7785
|
+
params: { who: AccountId32Like };
|
|
7786
|
+
};
|
|
7787
|
+
}
|
|
7788
|
+
>
|
|
7789
|
+
>;
|
|
7790
|
+
|
|
7791
|
+
/**
|
|
7792
|
+
* See [`Pallet::poke_deposit`].
|
|
7793
|
+
*
|
|
7794
|
+
* @param {AccountId32Like} who
|
|
7795
|
+
**/
|
|
7796
|
+
pokeDeposit: GenericTxCall<
|
|
7797
|
+
Rv,
|
|
7798
|
+
(who: AccountId32Like) => ChainSubmittableExtrinsic<
|
|
7799
|
+
Rv,
|
|
7800
|
+
{
|
|
7801
|
+
pallet: 'IdentityMigrator';
|
|
7802
|
+
palletCall: {
|
|
7803
|
+
name: 'PokeDeposit';
|
|
7804
|
+
params: { who: AccountId32Like };
|
|
7805
|
+
};
|
|
7806
|
+
}
|
|
7807
|
+
>
|
|
7808
|
+
>;
|
|
7809
|
+
|
|
7763
7810
|
/**
|
|
7764
7811
|
* Generic pallet tx call
|
|
7765
7812
|
**/
|
package/polkadot/types.d.ts
CHANGED
|
@@ -94,7 +94,8 @@ export type PolkadotRuntimeRuntimeEvent =
|
|
|
94
94
|
| { pallet: 'StateTrieMigration'; palletEvent: PalletStateTrieMigrationEvent }
|
|
95
95
|
| { pallet: 'XcmPallet'; palletEvent: PalletXcmEvent }
|
|
96
96
|
| { pallet: 'MessageQueue'; palletEvent: PalletMessageQueueEvent }
|
|
97
|
-
| { pallet: 'AssetRate'; palletEvent: PalletAssetRateEvent }
|
|
97
|
+
| { pallet: 'AssetRate'; palletEvent: PalletAssetRateEvent }
|
|
98
|
+
| { pallet: 'IdentityMigrator'; palletEvent: PolkadotRuntimeCommonIdentityMigratorPalletEvent };
|
|
98
99
|
|
|
99
100
|
/**
|
|
100
101
|
* Event for the System pallet.
|
|
@@ -1076,7 +1077,8 @@ export type PolkadotRuntimeRuntimeCall =
|
|
|
1076
1077
|
| { pallet: 'XcmPallet'; palletCall: PalletXcmCall }
|
|
1077
1078
|
| { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCall }
|
|
1078
1079
|
| { pallet: 'AssetRate'; palletCall: PalletAssetRateCall }
|
|
1079
|
-
| { pallet: 'Beefy'; palletCall: PalletBeefyCall }
|
|
1080
|
+
| { pallet: 'Beefy'; palletCall: PalletBeefyCall }
|
|
1081
|
+
| { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCall };
|
|
1080
1082
|
|
|
1081
1083
|
export type PolkadotRuntimeRuntimeCallLike =
|
|
1082
1084
|
| { pallet: 'System'; palletCall: FrameSystemCallLike }
|
|
@@ -1122,7 +1124,8 @@ export type PolkadotRuntimeRuntimeCallLike =
|
|
|
1122
1124
|
| { pallet: 'XcmPallet'; palletCall: PalletXcmCallLike }
|
|
1123
1125
|
| { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCallLike }
|
|
1124
1126
|
| { pallet: 'AssetRate'; palletCall: PalletAssetRateCallLike }
|
|
1125
|
-
| { pallet: 'Beefy'; palletCall: PalletBeefyCallLike }
|
|
1127
|
+
| { pallet: 'Beefy'; palletCall: PalletBeefyCallLike }
|
|
1128
|
+
| { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCallLike };
|
|
1126
1129
|
|
|
1127
1130
|
/**
|
|
1128
1131
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -5862,6 +5865,29 @@ export type SpConsensusBeefyCommitment = {
|
|
|
5862
5865
|
|
|
5863
5866
|
export type SpConsensusBeefyPayload = Array<[FixedBytes<2>, Bytes]>;
|
|
5864
5867
|
|
|
5868
|
+
/**
|
|
5869
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
5870
|
+
**/
|
|
5871
|
+
export type PolkadotRuntimeCommonIdentityMigratorPalletCall =
|
|
5872
|
+
/**
|
|
5873
|
+
* See [`Pallet::reap_identity`].
|
|
5874
|
+
**/
|
|
5875
|
+
| { name: 'ReapIdentity'; params: { who: AccountId32 } }
|
|
5876
|
+
/**
|
|
5877
|
+
* See [`Pallet::poke_deposit`].
|
|
5878
|
+
**/
|
|
5879
|
+
| { name: 'PokeDeposit'; params: { who: AccountId32 } };
|
|
5880
|
+
|
|
5881
|
+
export type PolkadotRuntimeCommonIdentityMigratorPalletCallLike =
|
|
5882
|
+
/**
|
|
5883
|
+
* See [`Pallet::reap_identity`].
|
|
5884
|
+
**/
|
|
5885
|
+
| { name: 'ReapIdentity'; params: { who: AccountId32Like } }
|
|
5886
|
+
/**
|
|
5887
|
+
* See [`Pallet::poke_deposit`].
|
|
5888
|
+
**/
|
|
5889
|
+
| { name: 'PokeDeposit'; params: { who: AccountId32Like } };
|
|
5890
|
+
|
|
5865
5891
|
export type SpRuntimeBlakeTwo256 = {};
|
|
5866
5892
|
|
|
5867
5893
|
export type PalletConvictionVotingTally = { ayes: bigint; nays: bigint; support: bigint };
|
|
@@ -7092,6 +7118,20 @@ export type PalletAssetRateEvent =
|
|
|
7092
7118
|
data: { assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset; old: FixedU128; new: FixedU128 };
|
|
7093
7119
|
};
|
|
7094
7120
|
|
|
7121
|
+
/**
|
|
7122
|
+
* The `Event` enum of this pallet
|
|
7123
|
+
**/
|
|
7124
|
+
export type PolkadotRuntimeCommonIdentityMigratorPalletEvent =
|
|
7125
|
+
/**
|
|
7126
|
+
* The identity and all sub accounts were reaped for `who`.
|
|
7127
|
+
**/
|
|
7128
|
+
| { name: 'IdentityReaped'; data: { who: AccountId32 } }
|
|
7129
|
+
/**
|
|
7130
|
+
* The deposits held for `who` were updated. `identity` is the new deposit held for
|
|
7131
|
+
* identity info, and `subs` is the new deposit held for the sub-accounts.
|
|
7132
|
+
**/
|
|
7133
|
+
| { name: 'DepositUpdated'; data: { who: AccountId32; identity: bigint; subs: bigint } };
|
|
7134
|
+
|
|
7095
7135
|
export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string };
|
|
7096
7136
|
|
|
7097
7137
|
export type FrameSystemCodeUpgradeAuthorization = { codeHash: H256; checkVersion: boolean };
|