@dedot/chaintypes 0.0.1-alpha.134 → 0.0.1-alpha.136

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.
@@ -551,58 +551,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
551
551
  **/
552
552
  [name: string]: any;
553
553
  };
554
- /**
555
- * Pallet `Identity`'s constants
556
- **/
557
- identity: {
558
- /**
559
- * The amount held on deposit for a registered identity.
560
- **/
561
- basicDeposit: bigint;
562
-
563
- /**
564
- * The amount held on deposit per encoded byte for a registered identity.
565
- **/
566
- byteDeposit: bigint;
567
-
568
- /**
569
- * The amount held on deposit for a registered subaccount. This should account for the fact
570
- * that one storage item's value will increase by the size of an account ID, and there will
571
- * be another trie item whose value is the size of an account ID plus 32 bytes.
572
- **/
573
- subAccountDeposit: bigint;
574
-
575
- /**
576
- * The maximum number of sub-accounts allowed per identified account.
577
- **/
578
- maxSubAccounts: number;
579
-
580
- /**
581
- * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
582
- * of, e.g., updating judgements.
583
- **/
584
- maxRegistrars: number;
585
-
586
- /**
587
- * The number of blocks within which a username grant must be accepted.
588
- **/
589
- pendingUsernameExpiration: number;
590
-
591
- /**
592
- * The maximum length of a suffix.
593
- **/
594
- maxSuffixLength: number;
595
-
596
- /**
597
- * The maximum length of a username, including its suffix and any system-added delimiters.
598
- **/
599
- maxUsernameLength: number;
600
-
601
- /**
602
- * Generic pallet constant
603
- **/
604
- [name: string]: any;
605
- };
606
554
  /**
607
555
  * Pallet `Society`'s constants
608
556
  **/
@@ -1566,13 +1514,4 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1566
1514
  **/
1567
1515
  [name: string]: any;
1568
1516
  };
1569
- /**
1570
- * Pallet `IdentityMigrator`'s constants
1571
- **/
1572
- identityMigrator: {
1573
- /**
1574
- * Generic pallet constant
1575
- **/
1576
- [name: string]: any;
1577
- };
1578
1517
  }
@@ -856,145 +856,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
856
856
  **/
857
857
  [error: string]: GenericPalletError<Rv>;
858
858
  };
859
- /**
860
- * Pallet `Identity`'s errors
861
- **/
862
- identity: {
863
- /**
864
- * Too many subs-accounts.
865
- **/
866
- TooManySubAccounts: GenericPalletError<Rv>;
867
-
868
- /**
869
- * Account isn't found.
870
- **/
871
- NotFound: GenericPalletError<Rv>;
872
-
873
- /**
874
- * Account isn't named.
875
- **/
876
- NotNamed: GenericPalletError<Rv>;
877
-
878
- /**
879
- * Empty index.
880
- **/
881
- EmptyIndex: GenericPalletError<Rv>;
882
-
883
- /**
884
- * Fee is changed.
885
- **/
886
- FeeChanged: GenericPalletError<Rv>;
887
-
888
- /**
889
- * No identity found.
890
- **/
891
- NoIdentity: GenericPalletError<Rv>;
892
-
893
- /**
894
- * Sticky judgement.
895
- **/
896
- StickyJudgement: GenericPalletError<Rv>;
897
-
898
- /**
899
- * Judgement given.
900
- **/
901
- JudgementGiven: GenericPalletError<Rv>;
902
-
903
- /**
904
- * Invalid judgement.
905
- **/
906
- InvalidJudgement: GenericPalletError<Rv>;
907
-
908
- /**
909
- * The index is invalid.
910
- **/
911
- InvalidIndex: GenericPalletError<Rv>;
912
-
913
- /**
914
- * The target is invalid.
915
- **/
916
- InvalidTarget: GenericPalletError<Rv>;
917
-
918
- /**
919
- * Maximum amount of registrars reached. Cannot add any more.
920
- **/
921
- TooManyRegistrars: GenericPalletError<Rv>;
922
-
923
- /**
924
- * Account ID is already named.
925
- **/
926
- AlreadyClaimed: GenericPalletError<Rv>;
927
-
928
- /**
929
- * Sender is not a sub-account.
930
- **/
931
- NotSub: GenericPalletError<Rv>;
932
-
933
- /**
934
- * Sub-account isn't owned by sender.
935
- **/
936
- NotOwned: GenericPalletError<Rv>;
937
-
938
- /**
939
- * The provided judgement was for a different identity.
940
- **/
941
- JudgementForDifferentIdentity: GenericPalletError<Rv>;
942
-
943
- /**
944
- * Error that occurs when there is an issue paying for judgement.
945
- **/
946
- JudgementPaymentFailed: GenericPalletError<Rv>;
947
-
948
- /**
949
- * The provided suffix is too long.
950
- **/
951
- InvalidSuffix: GenericPalletError<Rv>;
952
-
953
- /**
954
- * The sender does not have permission to issue a username.
955
- **/
956
- NotUsernameAuthority: GenericPalletError<Rv>;
957
-
958
- /**
959
- * The authority cannot allocate any more usernames.
960
- **/
961
- NoAllocation: GenericPalletError<Rv>;
962
-
963
- /**
964
- * The signature on a username was not valid.
965
- **/
966
- InvalidSignature: GenericPalletError<Rv>;
967
-
968
- /**
969
- * Setting this username requires a signature, but none was provided.
970
- **/
971
- RequiresSignature: GenericPalletError<Rv>;
972
-
973
- /**
974
- * The username does not meet the requirements.
975
- **/
976
- InvalidUsername: GenericPalletError<Rv>;
977
-
978
- /**
979
- * The username is already taken.
980
- **/
981
- UsernameTaken: GenericPalletError<Rv>;
982
-
983
- /**
984
- * The requested username does not exist.
985
- **/
986
- NoUsername: GenericPalletError<Rv>;
987
-
988
- /**
989
- * The username cannot be forcefully removed because it can still be accepted.
990
- **/
991
- NotExpired: GenericPalletError<Rv>;
992
-
993
- /**
994
- * Generic pallet error
995
- **/
996
- [error: string]: GenericPalletError<Rv>;
997
- };
998
859
  /**
999
860
  * Pallet `Society`'s errors
1000
861
  **/
@@ -1395,142 +1395,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1395
1395
  **/
1396
1396
  [prop: string]: GenericPalletEvent<Rv>;
1397
1397
  };
1398
- /**
1399
- * Pallet `Identity`'s events
1400
- **/
1401
- identity: {
1402
- /**
1403
- * A name was set or reset (which will remove all judgements).
1404
- **/
1405
- IdentitySet: GenericPalletEvent<Rv, 'Identity', 'IdentitySet', { who: AccountId32 }>;
1406
-
1407
- /**
1408
- * A name was cleared, and the given balance returned.
1409
- **/
1410
- IdentityCleared: GenericPalletEvent<Rv, 'Identity', 'IdentityCleared', { who: AccountId32; deposit: bigint }>;
1411
-
1412
- /**
1413
- * A name was removed and the given balance slashed.
1414
- **/
1415
- IdentityKilled: GenericPalletEvent<Rv, 'Identity', 'IdentityKilled', { who: AccountId32; deposit: bigint }>;
1416
-
1417
- /**
1418
- * A judgement was asked from a registrar.
1419
- **/
1420
- JudgementRequested: GenericPalletEvent<
1421
- Rv,
1422
- 'Identity',
1423
- 'JudgementRequested',
1424
- { who: AccountId32; registrarIndex: number }
1425
- >;
1426
-
1427
- /**
1428
- * A judgement request was retracted.
1429
- **/
1430
- JudgementUnrequested: GenericPalletEvent<
1431
- Rv,
1432
- 'Identity',
1433
- 'JudgementUnrequested',
1434
- { who: AccountId32; registrarIndex: number }
1435
- >;
1436
-
1437
- /**
1438
- * A judgement was given by a registrar.
1439
- **/
1440
- JudgementGiven: GenericPalletEvent<
1441
- Rv,
1442
- 'Identity',
1443
- 'JudgementGiven',
1444
- { target: AccountId32; registrarIndex: number }
1445
- >;
1446
-
1447
- /**
1448
- * A registrar was added.
1449
- **/
1450
- RegistrarAdded: GenericPalletEvent<Rv, 'Identity', 'RegistrarAdded', { registrarIndex: number }>;
1451
-
1452
- /**
1453
- * A sub-identity was added to an identity and the deposit paid.
1454
- **/
1455
- SubIdentityAdded: GenericPalletEvent<
1456
- Rv,
1457
- 'Identity',
1458
- 'SubIdentityAdded',
1459
- { sub: AccountId32; main: AccountId32; deposit: bigint }
1460
- >;
1461
-
1462
- /**
1463
- * A sub-identity was removed from an identity and the deposit freed.
1464
- **/
1465
- SubIdentityRemoved: GenericPalletEvent<
1466
- Rv,
1467
- 'Identity',
1468
- 'SubIdentityRemoved',
1469
- { sub: AccountId32; main: AccountId32; deposit: bigint }
1470
- >;
1471
-
1472
- /**
1473
- * A sub-identity was cleared, and the given deposit repatriated from the
1474
- * main identity account to the sub-identity account.
1475
- **/
1476
- SubIdentityRevoked: GenericPalletEvent<
1477
- Rv,
1478
- 'Identity',
1479
- 'SubIdentityRevoked',
1480
- { sub: AccountId32; main: AccountId32; deposit: bigint }
1481
- >;
1482
-
1483
- /**
1484
- * A username authority was added.
1485
- **/
1486
- AuthorityAdded: GenericPalletEvent<Rv, 'Identity', 'AuthorityAdded', { authority: AccountId32 }>;
1487
-
1488
- /**
1489
- * A username authority was removed.
1490
- **/
1491
- AuthorityRemoved: GenericPalletEvent<Rv, 'Identity', 'AuthorityRemoved', { authority: AccountId32 }>;
1492
-
1493
- /**
1494
- * A username was set for `who`.
1495
- **/
1496
- UsernameSet: GenericPalletEvent<Rv, 'Identity', 'UsernameSet', { who: AccountId32; username: Bytes }>;
1497
-
1498
- /**
1499
- * A username was queued, but `who` must accept it prior to `expiration`.
1500
- **/
1501
- UsernameQueued: GenericPalletEvent<
1502
- Rv,
1503
- 'Identity',
1504
- 'UsernameQueued',
1505
- { who: AccountId32; username: Bytes; expiration: number }
1506
- >;
1507
-
1508
- /**
1509
- * A queued username passed its expiration without being claimed and was removed.
1510
- **/
1511
- PreapprovalExpired: GenericPalletEvent<Rv, 'Identity', 'PreapprovalExpired', { whose: AccountId32 }>;
1512
-
1513
- /**
1514
- * A username was set as a primary and can be looked up from `who`.
1515
- **/
1516
- PrimaryUsernameSet: GenericPalletEvent<Rv, 'Identity', 'PrimaryUsernameSet', { who: AccountId32; username: Bytes }>;
1517
-
1518
- /**
1519
- * A dangling username (as in, a username corresponding to an account that has removed its
1520
- * identity) has been removed.
1521
- **/
1522
- DanglingUsernameRemoved: GenericPalletEvent<
1523
- Rv,
1524
- 'Identity',
1525
- 'DanglingUsernameRemoved',
1526
- { who: AccountId32; username: Bytes }
1527
- >;
1528
-
1529
- /**
1530
- * Generic pallet event
1531
- **/
1532
- [prop: string]: GenericPalletEvent<Rv>;
1533
- };
1534
1398
  /**
1535
1399
  * Pallet `Society`'s events
1536
1400
  **/
@@ -3546,31 +3410,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3546
3410
  { assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset; old: FixedU128; new: FixedU128 }
3547
3411
  >;
3548
3412
 
3549
- /**
3550
- * Generic pallet event
3551
- **/
3552
- [prop: string]: GenericPalletEvent<Rv>;
3553
- };
3554
- /**
3555
- * Pallet `IdentityMigrator`'s events
3556
- **/
3557
- identityMigrator: {
3558
- /**
3559
- * The identity and all sub accounts were reaped for `who`.
3560
- **/
3561
- IdentityReaped: GenericPalletEvent<Rv, 'IdentityMigrator', 'IdentityReaped', { who: AccountId32 }>;
3562
-
3563
- /**
3564
- * The deposits held for `who` were updated. `identity` is the new deposit held for
3565
- * identity info, and `subs` is the new deposit held for the sub-accounts.
3566
- **/
3567
- DepositUpdated: GenericPalletEvent<
3568
- Rv,
3569
- 'IdentityMigrator',
3570
- 'DepositUpdated',
3571
- { who: AccountId32; identity: bigint; subs: bigint }
3572
- >;
3573
-
3574
3413
  /**
3575
3414
  * Generic pallet event
3576
3415
  **/
package/kusama/query.d.ts CHANGED
@@ -15,7 +15,6 @@ import type {
15
15
  BytesLike,
16
16
  EthereumAddress,
17
17
  EthereumAddressLike,
18
- Data,
19
18
  FixedArray,
20
19
  } from 'dedot/codecs';
21
20
  import type {
@@ -63,9 +62,6 @@ import type {
63
62
  PalletRankedCollectiveVoteRecord,
64
63
  PalletReferendaReferendumInfoTally,
65
64
  PolkadotRuntimeCommonClaimsStatementKind,
66
- PalletIdentityRegistration,
67
- PalletIdentityRegistrarInfo,
68
- PalletIdentityAuthorityProperties,
69
65
  PalletSocietyGroupParams,
70
66
  PalletSocietyMemberRecord,
71
67
  PalletSocietyPayoutRecord,
@@ -1656,98 +1652,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1656
1652
  **/
1657
1653
  [storage: string]: GenericStorageQuery<Rv>;
1658
1654
  };
1659
- /**
1660
- * Pallet `Identity`'s storage queries
1661
- **/
1662
- identity: {
1663
- /**
1664
- * Information that is pertinent to identify the entity behind an account. First item is the
1665
- * registration, second is the account's primary username.
1666
- *
1667
- * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1668
- *
1669
- * @param {AccountId32Like} arg
1670
- * @param {Callback<[PalletIdentityRegistration, Bytes | undefined] | undefined> =} callback
1671
- **/
1672
- identityOf: GenericStorageQuery<
1673
- Rv,
1674
- (arg: AccountId32Like) => [PalletIdentityRegistration, Bytes | undefined] | undefined,
1675
- AccountId32
1676
- >;
1677
-
1678
- /**
1679
- * The super-identity of an alternative "sub" identity together with its name, within that
1680
- * context. If the account is not some other account's sub-identity, then just `None`.
1681
- *
1682
- * @param {AccountId32Like} arg
1683
- * @param {Callback<[AccountId32, Data] | undefined> =} callback
1684
- **/
1685
- superOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [AccountId32, Data] | undefined, AccountId32>;
1686
-
1687
- /**
1688
- * Alternative "sub" identities of this account.
1689
- *
1690
- * The first item is the deposit, the second is a vector of the accounts.
1691
- *
1692
- * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1693
- *
1694
- * @param {AccountId32Like} arg
1695
- * @param {Callback<[bigint, Array<AccountId32>]> =} callback
1696
- **/
1697
- subsOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [bigint, Array<AccountId32>], AccountId32>;
1698
-
1699
- /**
1700
- * The set of registrars. Not expected to get very big as can only be added through a
1701
- * special origin (likely a council motion).
1702
- *
1703
- * The index into this can be cast to `RegistrarIndex` to get a valid value.
1704
- *
1705
- * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
1706
- **/
1707
- registrars: GenericStorageQuery<Rv, () => Array<PalletIdentityRegistrarInfo | undefined>>;
1708
-
1709
- /**
1710
- * A map of the accounts who are authorized to grant usernames.
1711
- *
1712
- * @param {AccountId32Like} arg
1713
- * @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
1714
- **/
1715
- usernameAuthorities: GenericStorageQuery<
1716
- Rv,
1717
- (arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined,
1718
- AccountId32
1719
- >;
1720
-
1721
- /**
1722
- * Reverse lookup from `username` to the `AccountId` that has registered it. The value should
1723
- * be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
1724
- *
1725
- * Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
1726
- * primary username.
1727
- *
1728
- * @param {BytesLike} arg
1729
- * @param {Callback<AccountId32 | undefined> =} callback
1730
- **/
1731
- accountOfUsername: GenericStorageQuery<Rv, (arg: BytesLike) => AccountId32 | undefined, Bytes>;
1732
-
1733
- /**
1734
- * Usernames that an authority has granted, but that the account controller has not confirmed
1735
- * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
1736
- * because they are a pure proxy, multisig, etc. In order to confirm it, they should call
1737
- * [`Call::accept_username`].
1738
- *
1739
- * First tuple item is the account and second is the acceptance deadline.
1740
- *
1741
- * @param {BytesLike} arg
1742
- * @param {Callback<[AccountId32, number] | undefined> =} callback
1743
- **/
1744
- pendingUsernames: GenericStorageQuery<Rv, (arg: BytesLike) => [AccountId32, number] | undefined, Bytes>;
1745
-
1746
- /**
1747
- * Generic pallet storage query
1748
- **/
1749
- [storage: string]: GenericStorageQuery<Rv>;
1750
- };
1751
1655
  /**
1752
1656
  * Pallet `Society`'s storage queries
1753
1657
  **/