Skip to content

Commit 8ad4d9d

Browse files
api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 12.1.1
1 parent 245a40b commit 8ad4d9d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1189
-1096
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## master
44

5+
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 12.1.1
56
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 12.0.2
67
- phishing 0.22.10
78
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 12.0.1

api-augment/kusama/consts.ts

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -367,47 +367,6 @@ declare module 'https://deno.land/x/polkadot/api-base/types/consts.ts' {
367367
**/
368368
[key: string]: Codec;
369369
};
370-
identity: {
371-
/**
372-
* The amount held on deposit for a registered identity.
373-
**/
374-
basicDeposit: u128 & AugmentedConst<ApiType>;
375-
/**
376-
* The amount held on deposit per encoded byte for a registered identity.
377-
**/
378-
byteDeposit: u128 & AugmentedConst<ApiType>;
379-
/**
380-
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
381-
* of, e.g., updating judgements.
382-
**/
383-
maxRegistrars: u32 & AugmentedConst<ApiType>;
384-
/**
385-
* The maximum number of sub-accounts allowed per identified account.
386-
**/
387-
maxSubAccounts: u32 & AugmentedConst<ApiType>;
388-
/**
389-
* The maximum length of a suffix.
390-
**/
391-
maxSuffixLength: u32 & AugmentedConst<ApiType>;
392-
/**
393-
* The maximum length of a username, including its suffix and any system-added delimiters.
394-
**/
395-
maxUsernameLength: u32 & AugmentedConst<ApiType>;
396-
/**
397-
* The number of blocks within which a username grant must be accepted.
398-
**/
399-
pendingUsernameExpiration: u32 & AugmentedConst<ApiType>;
400-
/**
401-
* The amount held on deposit for a registered subaccount. This should account for the fact
402-
* that one storage item's value will increase by the size of an account ID, and there will
403-
* be another trie item whose value is the size of an account ID plus 32 bytes.
404-
**/
405-
subAccountDeposit: u128 & AugmentedConst<ApiType>;
406-
/**
407-
* Generic const
408-
**/
409-
[key: string]: Codec;
410-
};
411370
indices: {
412371
/**
413372
* The deposit needed for reserving an index.
@@ -884,36 +843,6 @@ declare module 'https://deno.land/x/polkadot/api-base/types/consts.ts' {
884843
**/
885844
[key: string]: Codec;
886845
};
887-
stateTrieMigration: {
888-
/**
889-
* Maximal number of bytes that a key can have.
890-
*
891-
* FRAME itself does not limit the key length.
892-
* The concrete value must therefore depend on your storage usage.
893-
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
894-
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
895-
*
896-
* Use the *state migration RPC* to retrieve the length of the longest key in your
897-
* storage: <https://github.com/paritytech/substrate/issues/11642>
898-
*
899-
* The migration will halt with a `Halted` event if this value is too small.
900-
* Since there is no real penalty from over-estimating, it is advised to use a large
901-
* value. The default is 512 byte.
902-
*
903-
* Some key lengths for reference:
904-
* - [`frame_support::storage::StorageValue`]: 32 byte
905-
* - [`frame_support::storage::StorageMap`]: 64 byte
906-
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
907-
*
908-
* For more info see
909-
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
910-
**/
911-
maxKeyLen: u32 & AugmentedConst<ApiType>;
912-
/**
913-
* Generic const
914-
**/
915-
[key: string]: Codec;
916-
};
917846
system: {
918847
/**
919848
* Maximum number of block number to block hash mappings to keep (oldest pruned first).

api-augment/kusama/errors.ts

Lines changed: 4 additions & 146 deletions
Original file line numberDiff line numberDiff line change
@@ -780,116 +780,6 @@ declare module 'https://deno.land/x/polkadot/api-base/types/errors.ts' {
780780
**/
781781
[key: string]: AugmentedError<ApiType>;
782782
};
783-
identity: {
784-
/**
785-
* Account ID is already named.
786-
**/
787-
AlreadyClaimed: AugmentedError<ApiType>;
788-
/**
789-
* Empty index.
790-
**/
791-
EmptyIndex: AugmentedError<ApiType>;
792-
/**
793-
* Fee is changed.
794-
**/
795-
FeeChanged: AugmentedError<ApiType>;
796-
/**
797-
* The index is invalid.
798-
**/
799-
InvalidIndex: AugmentedError<ApiType>;
800-
/**
801-
* Invalid judgement.
802-
**/
803-
InvalidJudgement: AugmentedError<ApiType>;
804-
/**
805-
* The signature on a username was not valid.
806-
**/
807-
InvalidSignature: AugmentedError<ApiType>;
808-
/**
809-
* The provided suffix is too long.
810-
**/
811-
InvalidSuffix: AugmentedError<ApiType>;
812-
/**
813-
* The target is invalid.
814-
**/
815-
InvalidTarget: AugmentedError<ApiType>;
816-
/**
817-
* The username does not meet the requirements.
818-
**/
819-
InvalidUsername: AugmentedError<ApiType>;
820-
/**
821-
* The provided judgement was for a different identity.
822-
**/
823-
JudgementForDifferentIdentity: AugmentedError<ApiType>;
824-
/**
825-
* Judgement given.
826-
**/
827-
JudgementGiven: AugmentedError<ApiType>;
828-
/**
829-
* Error that occurs when there is an issue paying for judgement.
830-
**/
831-
JudgementPaymentFailed: AugmentedError<ApiType>;
832-
/**
833-
* The authority cannot allocate any more usernames.
834-
**/
835-
NoAllocation: AugmentedError<ApiType>;
836-
/**
837-
* No identity found.
838-
**/
839-
NoIdentity: AugmentedError<ApiType>;
840-
/**
841-
* The username cannot be forcefully removed because it can still be accepted.
842-
**/
843-
NotExpired: AugmentedError<ApiType>;
844-
/**
845-
* Account isn't found.
846-
**/
847-
NotFound: AugmentedError<ApiType>;
848-
/**
849-
* Account isn't named.
850-
**/
851-
NotNamed: AugmentedError<ApiType>;
852-
/**
853-
* Sub-account isn't owned by sender.
854-
**/
855-
NotOwned: AugmentedError<ApiType>;
856-
/**
857-
* Sender is not a sub-account.
858-
**/
859-
NotSub: AugmentedError<ApiType>;
860-
/**
861-
* The sender does not have permission to issue a username.
862-
**/
863-
NotUsernameAuthority: AugmentedError<ApiType>;
864-
/**
865-
* The requested username does not exist.
866-
**/
867-
NoUsername: AugmentedError<ApiType>;
868-
/**
869-
* Setting this username requires a signature, but none was provided.
870-
**/
871-
RequiresSignature: AugmentedError<ApiType>;
872-
/**
873-
* Sticky judgement.
874-
**/
875-
StickyJudgement: AugmentedError<ApiType>;
876-
/**
877-
* Maximum amount of registrars reached. Cannot add any more.
878-
**/
879-
TooManyRegistrars: AugmentedError<ApiType>;
880-
/**
881-
* Too many subs-accounts.
882-
**/
883-
TooManySubAccounts: AugmentedError<ApiType>;
884-
/**
885-
* The username is already taken.
886-
**/
887-
UsernameTaken: AugmentedError<ApiType>;
888-
/**
889-
* Generic error
890-
**/
891-
[key: string]: AugmentedError<ApiType>;
892-
};
893783
indices: {
894784
/**
895785
* The index was not available.
@@ -2103,6 +1993,10 @@ declare module 'https://deno.land/x/polkadot/api-base/types/errors.ts' {
21031993
* The user has enough bond and thus cannot be chilled forcefully by an external person.
21041994
**/
21051995
CannotChillOther: AugmentedError<ApiType>;
1996+
/**
1997+
* Cannot reset a ledger.
1998+
**/
1999+
CannotRestoreLedger: AugmentedError<ApiType>;
21062000
/**
21072001
* Commission is too low. Must be at least `MinCommission`.
21082002
**/
@@ -2192,42 +2086,6 @@ declare module 'https://deno.land/x/polkadot/api-base/types/errors.ts' {
21922086
**/
21932087
[key: string]: AugmentedError<ApiType>;
21942088
};
2195-
stateTrieMigration: {
2196-
/**
2197-
* Bad child root provided.
2198-
**/
2199-
BadChildRoot: AugmentedError<ApiType>;
2200-
/**
2201-
* Bad witness data provided.
2202-
**/
2203-
BadWitness: AugmentedError<ApiType>;
2204-
/**
2205-
* A key was longer than the configured maximum.
2206-
*
2207-
* This means that the migration halted at the current [`Progress`] and
2208-
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
2209-
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
2210-
* The value should only be increased to avoid a storage migration for the currently
2211-
* stored [`crate::Progress::LastKey`].
2212-
**/
2213-
KeyTooLong: AugmentedError<ApiType>;
2214-
/**
2215-
* Max signed limits not respected.
2216-
**/
2217-
MaxSignedLimits: AugmentedError<ApiType>;
2218-
/**
2219-
* submitter does not have enough funds.
2220-
**/
2221-
NotEnoughFunds: AugmentedError<ApiType>;
2222-
/**
2223-
* Signed migration is not allowed because the maximum limit is not set yet.
2224-
**/
2225-
SignedMigrationNotAllowed: AugmentedError<ApiType>;
2226-
/**
2227-
* Generic error
2228-
**/
2229-
[key: string]: AugmentedError<ApiType>;
2230-
};
22312089
system: {
22322090
/**
22332091
* The origin filter prevent the call to be dispatched.

0 commit comments

Comments
 (0)