@dedot/chaintypes 0.52.0 → 0.53.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/consts.d.ts +107 -18
- package/aleph/errors.d.ts +184 -10
- package/aleph/events.d.ts +215 -4
- package/aleph/index.d.ts +1 -1
- package/aleph/query.d.ts +220 -25
- package/aleph/runtime.d.ts +42 -0
- package/aleph/tx.d.ts +663 -22
- package/aleph/types.d.ts +683 -86
- package/package.json +2 -2
package/aleph/events.d.ts
CHANGED
|
@@ -14,9 +14,11 @@ import type {
|
|
|
14
14
|
PalletContractsOrigin,
|
|
15
15
|
PalletNominationPoolsPoolState,
|
|
16
16
|
PalletNominationPoolsCommissionChangeRate,
|
|
17
|
+
PalletNominationPoolsCommissionClaimPermission,
|
|
17
18
|
PrimitivesBanConfig,
|
|
18
19
|
PrimitivesBanInfo,
|
|
19
20
|
AlephRuntimeProxyType,
|
|
21
|
+
PalletSafeModeExitReason,
|
|
20
22
|
} from './types';
|
|
21
23
|
|
|
22
24
|
export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<Rv> {
|
|
@@ -59,6 +61,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
59
61
|
**/
|
|
60
62
|
Remarked: GenericPalletEvent<Rv, 'System', 'Remarked', { sender: AccountId32; hash: H256 }>;
|
|
61
63
|
|
|
64
|
+
/**
|
|
65
|
+
* An upgrade was authorized.
|
|
66
|
+
**/
|
|
67
|
+
UpgradeAuthorized: GenericPalletEvent<Rv, 'System', 'UpgradeAuthorized', { codeHash: H256; checkVersion: boolean }>;
|
|
68
|
+
|
|
62
69
|
/**
|
|
63
70
|
* Generic pallet event
|
|
64
71
|
**/
|
|
@@ -512,6 +519,37 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
512
519
|
{ reactivated: bigint; deactivated: bigint }
|
|
513
520
|
>;
|
|
514
521
|
|
|
522
|
+
/**
|
|
523
|
+
* A new asset spend proposal has been approved.
|
|
524
|
+
**/
|
|
525
|
+
AssetSpendApproved: GenericPalletEvent<
|
|
526
|
+
Rv,
|
|
527
|
+
'Treasury',
|
|
528
|
+
'AssetSpendApproved',
|
|
529
|
+
{ index: number; assetKind: []; amount: bigint; beneficiary: AccountId32; validFrom: number; expireAt: number }
|
|
530
|
+
>;
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* An approved spend was voided.
|
|
534
|
+
**/
|
|
535
|
+
AssetSpendVoided: GenericPalletEvent<Rv, 'Treasury', 'AssetSpendVoided', { index: number }>;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* A payment happened.
|
|
539
|
+
**/
|
|
540
|
+
Paid: GenericPalletEvent<Rv, 'Treasury', 'Paid', { index: number; paymentId: [] }>;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* A payment failed and can be retried.
|
|
544
|
+
**/
|
|
545
|
+
PaymentFailed: GenericPalletEvent<Rv, 'Treasury', 'PaymentFailed', { index: number; paymentId: [] }>;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* A spend was processed and removed from the storage. It might have been successfully
|
|
549
|
+
* paid or it may have expired.
|
|
550
|
+
**/
|
|
551
|
+
SpendProcessed: GenericPalletEvent<Rv, 'Treasury', 'SpendProcessed', { index: number }>;
|
|
552
|
+
|
|
515
553
|
/**
|
|
516
554
|
* Generic pallet event
|
|
517
555
|
**/
|
|
@@ -660,12 +698,22 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
660
698
|
'KeyChanged',
|
|
661
699
|
{
|
|
662
700
|
/**
|
|
663
|
-
* The old sudo key if one was previously set.
|
|
701
|
+
* The old sudo key (if one was previously set).
|
|
702
|
+
**/
|
|
703
|
+
old?: AccountId32 | undefined;
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* The new sudo key (if one was set).
|
|
664
707
|
**/
|
|
665
|
-
|
|
708
|
+
new: AccountId32;
|
|
666
709
|
}
|
|
667
710
|
>;
|
|
668
711
|
|
|
712
|
+
/**
|
|
713
|
+
* The key was permanently removed.
|
|
714
|
+
**/
|
|
715
|
+
KeyRemoved: GenericPalletEvent<Rv, 'Sudo', 'KeyRemoved', null>;
|
|
716
|
+
|
|
669
717
|
/**
|
|
670
718
|
* A [sudo_as](Pallet::sudo_as) call just took place.
|
|
671
719
|
**/
|
|
@@ -1006,6 +1054,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1006
1054
|
{ poolId: number; changeRate: PalletNominationPoolsCommissionChangeRate }
|
|
1007
1055
|
>;
|
|
1008
1056
|
|
|
1057
|
+
/**
|
|
1058
|
+
* Pool commission claim permission has been updated.
|
|
1059
|
+
**/
|
|
1060
|
+
PoolCommissionClaimPermissionUpdated: GenericPalletEvent<
|
|
1061
|
+
Rv,
|
|
1062
|
+
'NominationPools',
|
|
1063
|
+
'PoolCommissionClaimPermissionUpdated',
|
|
1064
|
+
{ poolId: number; permission?: PalletNominationPoolsCommissionClaimPermission | undefined }
|
|
1065
|
+
>;
|
|
1066
|
+
|
|
1009
1067
|
/**
|
|
1010
1068
|
* Pool commission has been claimed.
|
|
1011
1069
|
**/
|
|
@@ -1016,6 +1074,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1016
1074
|
{ poolId: number; commission: bigint }
|
|
1017
1075
|
>;
|
|
1018
1076
|
|
|
1077
|
+
/**
|
|
1078
|
+
* Topped up deficit in frozen ED of the reward pool.
|
|
1079
|
+
**/
|
|
1080
|
+
MinBalanceDeficitAdjusted: GenericPalletEvent<
|
|
1081
|
+
Rv,
|
|
1082
|
+
'NominationPools',
|
|
1083
|
+
'MinBalanceDeficitAdjusted',
|
|
1084
|
+
{ poolId: number; amount: bigint }
|
|
1085
|
+
>;
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* Claimed excess frozen ED of af the reward pool.
|
|
1089
|
+
**/
|
|
1090
|
+
MinBalanceExcessAdjusted: GenericPalletEvent<
|
|
1091
|
+
Rv,
|
|
1092
|
+
'NominationPools',
|
|
1093
|
+
'MinBalanceExcessAdjusted',
|
|
1094
|
+
{ poolId: number; amount: bigint }
|
|
1095
|
+
>;
|
|
1096
|
+
|
|
1019
1097
|
/**
|
|
1020
1098
|
* Generic pallet event
|
|
1021
1099
|
**/
|
|
@@ -1106,6 +1184,52 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1106
1184
|
{ sub: AccountId32; main: AccountId32; deposit: bigint }
|
|
1107
1185
|
>;
|
|
1108
1186
|
|
|
1187
|
+
/**
|
|
1188
|
+
* A username authority was added.
|
|
1189
|
+
**/
|
|
1190
|
+
AuthorityAdded: GenericPalletEvent<Rv, 'Identity', 'AuthorityAdded', { authority: AccountId32 }>;
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* A username authority was removed.
|
|
1194
|
+
**/
|
|
1195
|
+
AuthorityRemoved: GenericPalletEvent<Rv, 'Identity', 'AuthorityRemoved', { authority: AccountId32 }>;
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* A username was set for `who`.
|
|
1199
|
+
**/
|
|
1200
|
+
UsernameSet: GenericPalletEvent<Rv, 'Identity', 'UsernameSet', { who: AccountId32; username: Bytes }>;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* A username was queued, but `who` must accept it prior to `expiration`.
|
|
1204
|
+
**/
|
|
1205
|
+
UsernameQueued: GenericPalletEvent<
|
|
1206
|
+
Rv,
|
|
1207
|
+
'Identity',
|
|
1208
|
+
'UsernameQueued',
|
|
1209
|
+
{ who: AccountId32; username: Bytes; expiration: number }
|
|
1210
|
+
>;
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* A queued username passed its expiration without being claimed and was removed.
|
|
1214
|
+
**/
|
|
1215
|
+
PreapprovalExpired: GenericPalletEvent<Rv, 'Identity', 'PreapprovalExpired', { whose: AccountId32 }>;
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* A username was set as a primary and can be looked up from `who`.
|
|
1219
|
+
**/
|
|
1220
|
+
PrimaryUsernameSet: GenericPalletEvent<Rv, 'Identity', 'PrimaryUsernameSet', { who: AccountId32; username: Bytes }>;
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* A dangling username (as in, a username corresponding to an account that has removed its
|
|
1224
|
+
* identity) has been removed.
|
|
1225
|
+
**/
|
|
1226
|
+
DanglingUsernameRemoved: GenericPalletEvent<
|
|
1227
|
+
Rv,
|
|
1228
|
+
'Identity',
|
|
1229
|
+
'DanglingUsernameRemoved',
|
|
1230
|
+
{ who: AccountId32; username: Bytes }
|
|
1231
|
+
>;
|
|
1232
|
+
|
|
1109
1233
|
/**
|
|
1110
1234
|
* Generic pallet event
|
|
1111
1235
|
**/
|
|
@@ -1185,14 +1309,101 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1185
1309
|
**/
|
|
1186
1310
|
[prop: string]: GenericPalletEvent<Rv>;
|
|
1187
1311
|
};
|
|
1312
|
+
/**
|
|
1313
|
+
* Pallet `SafeMode`'s events
|
|
1314
|
+
**/
|
|
1315
|
+
safeMode: {
|
|
1316
|
+
/**
|
|
1317
|
+
* The safe-mode was entered until inclusively this block.
|
|
1318
|
+
**/
|
|
1319
|
+
Entered: GenericPalletEvent<Rv, 'SafeMode', 'Entered', { until: number }>;
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* The safe-mode was extended until inclusively this block.
|
|
1323
|
+
**/
|
|
1324
|
+
Extended: GenericPalletEvent<Rv, 'SafeMode', 'Extended', { until: number }>;
|
|
1325
|
+
|
|
1326
|
+
/**
|
|
1327
|
+
* Exited the safe-mode for a specific reason.
|
|
1328
|
+
**/
|
|
1329
|
+
Exited: GenericPalletEvent<Rv, 'SafeMode', 'Exited', { reason: PalletSafeModeExitReason }>;
|
|
1330
|
+
|
|
1331
|
+
/**
|
|
1332
|
+
* An account reserved funds for either entering or extending the safe-mode.
|
|
1333
|
+
**/
|
|
1334
|
+
DepositPlaced: GenericPalletEvent<Rv, 'SafeMode', 'DepositPlaced', { account: AccountId32; amount: bigint }>;
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* An account had a reserve released that was reserved.
|
|
1338
|
+
**/
|
|
1339
|
+
DepositReleased: GenericPalletEvent<Rv, 'SafeMode', 'DepositReleased', { account: AccountId32; amount: bigint }>;
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* An account had reserve slashed that was reserved.
|
|
1343
|
+
**/
|
|
1344
|
+
DepositSlashed: GenericPalletEvent<Rv, 'SafeMode', 'DepositSlashed', { account: AccountId32; amount: bigint }>;
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* Could not hold funds for entering or extending the safe-mode.
|
|
1348
|
+
*
|
|
1349
|
+
* This error comes from the underlying `Currency`.
|
|
1350
|
+
**/
|
|
1351
|
+
CannotDeposit: GenericPalletEvent<Rv, 'SafeMode', 'CannotDeposit', null>;
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* Could not release funds for entering or extending the safe-mode.
|
|
1355
|
+
*
|
|
1356
|
+
* This error comes from the underlying `Currency`.
|
|
1357
|
+
**/
|
|
1358
|
+
CannotRelease: GenericPalletEvent<Rv, 'SafeMode', 'CannotRelease', null>;
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* Generic pallet event
|
|
1362
|
+
**/
|
|
1363
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
1364
|
+
};
|
|
1365
|
+
/**
|
|
1366
|
+
* Pallet `TxPause`'s events
|
|
1367
|
+
**/
|
|
1368
|
+
txPause: {
|
|
1369
|
+
/**
|
|
1370
|
+
* This pallet, or a specific call is now paused.
|
|
1371
|
+
**/
|
|
1372
|
+
CallPaused: GenericPalletEvent<Rv, 'TxPause', 'CallPaused', { fullName: [Bytes, Bytes] }>;
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* This pallet, or a specific call is now unpaused.
|
|
1376
|
+
**/
|
|
1377
|
+
CallUnpaused: GenericPalletEvent<Rv, 'TxPause', 'CallUnpaused', { fullName: [Bytes, Bytes] }>;
|
|
1378
|
+
|
|
1379
|
+
/**
|
|
1380
|
+
* Generic pallet event
|
|
1381
|
+
**/
|
|
1382
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
1383
|
+
};
|
|
1188
1384
|
/**
|
|
1189
1385
|
* Pallet `Operations`'s events
|
|
1190
1386
|
**/
|
|
1191
1387
|
operations: {
|
|
1192
1388
|
/**
|
|
1193
|
-
*
|
|
1389
|
+
* A consumers counter was incremented for an account
|
|
1194
1390
|
**/
|
|
1195
|
-
|
|
1391
|
+
ConsumersCounterIncremented: GenericPalletEvent<
|
|
1392
|
+
Rv,
|
|
1393
|
+
'Operations',
|
|
1394
|
+
'ConsumersCounterIncremented',
|
|
1395
|
+
{ who: AccountId32 }
|
|
1396
|
+
>;
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* A consumers counter was decremented for an account
|
|
1400
|
+
**/
|
|
1401
|
+
ConsumersCounterDecremented: GenericPalletEvent<
|
|
1402
|
+
Rv,
|
|
1403
|
+
'Operations',
|
|
1404
|
+
'ConsumersCounterDecremented',
|
|
1405
|
+
{ who: AccountId32 }
|
|
1406
|
+
>;
|
|
1196
1407
|
|
|
1197
1408
|
/**
|
|
1198
1409
|
* Generic pallet event
|
package/aleph/index.d.ts
CHANGED