Skip to content

Commit 099f420

Browse files
api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 16.1.1
1 parent 7e9c1be commit 099f420

39 files changed

+939
-1021
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} 16.1.1
56
- phishing 0.25.11
67
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 16.0.1
78
- hw-{ledger, ledger-transports}, keyring, networks, util, util-crypto, x-{bigint, fetch, global, randomvalues, textdecoder, textencoder, ws} 13.5.1

api-augment/assetHubKusama/consts.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,36 @@ declare module 'https://deno.land/x/polkadot/api-base/types/consts.ts' {
412412
**/
413413
[key: string]: Codec;
414414
};
415+
stateTrieMigration: {
416+
/**
417+
* Maximal number of bytes that a key can have.
418+
*
419+
* FRAME itself does not limit the key length.
420+
* The concrete value must therefore depend on your storage usage.
421+
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
422+
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
423+
*
424+
* Use the *state migration RPC* to retrieve the length of the longest key in your
425+
* storage: <https://github.com/paritytech/substrate/issues/11642>
426+
*
427+
* The migration will halt with a `Halted` event if this value is too small.
428+
* Since there is no real penalty from over-estimating, it is advised to use a large
429+
* value. The default is 512 byte.
430+
*
431+
* Some key lengths for reference:
432+
* - [`frame_support::storage::StorageValue`]: 32 byte
433+
* - [`frame_support::storage::StorageMap`]: 64 byte
434+
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
435+
*
436+
* For more info see
437+
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
438+
**/
439+
maxKeyLen: u32 & AugmentedConst<ApiType>;
440+
/**
441+
* Generic const
442+
**/
443+
[key: string]: Codec;
444+
};
415445
system: {
416446
/**
417447
* Maximum number of block number to block hash mappings to keep (oldest pruned first).

api-augment/assetHubKusama/errors.ts

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,40 @@ declare module 'https://deno.land/x/polkadot/api-base/types/errors.ts' {
10161016
**/
10171017
[key: string]: AugmentedError<ApiType>;
10181018
};
1019+
remoteProxyRelayChain: {
1020+
/**
1021+
* The local account id could not converted to the remote account id.
1022+
**/
1023+
CouldNotConvertLocalToRemoteAccountId: AugmentedError<ApiType>;
1024+
/**
1025+
* Could not find any matching proxy definition in the proof.
1026+
**/
1027+
DidNotFindMatchingProxyDefinition: AugmentedError<ApiType>;
1028+
/**
1029+
* The proxy definition could not be found in the proof.
1030+
**/
1031+
InvalidProof: AugmentedError<ApiType>;
1032+
/**
1033+
* Failed to decode the remote proxy definition from the proof.
1034+
**/
1035+
ProxyDefinitionDecodingFailed: AugmentedError<ApiType>;
1036+
/**
1037+
* Proxy proof not registered.
1038+
**/
1039+
ProxyProofNotRegistered: AugmentedError<ApiType>;
1040+
/**
1041+
* Announcement, if made at all, was made too recently.
1042+
**/
1043+
Unannounced: AugmentedError<ApiType>;
1044+
/**
1045+
* The anchor block of the remote proof is unknown.
1046+
**/
1047+
UnknownProofAnchorBlock: AugmentedError<ApiType>;
1048+
/**
1049+
* Generic error
1050+
**/
1051+
[key: string]: AugmentedError<ApiType>;
1052+
};
10191053
session: {
10201054
/**
10211055
* Registered duplicate key.
@@ -1042,6 +1076,42 @@ declare module 'https://deno.land/x/polkadot/api-base/types/errors.ts' {
10421076
**/
10431077
[key: string]: AugmentedError<ApiType>;
10441078
};
1079+
stateTrieMigration: {
1080+
/**
1081+
* Bad child root provided.
1082+
**/
1083+
BadChildRoot: AugmentedError<ApiType>;
1084+
/**
1085+
* Bad witness data provided.
1086+
**/
1087+
BadWitness: AugmentedError<ApiType>;
1088+
/**
1089+
* A key was longer than the configured maximum.
1090+
*
1091+
* This means that the migration halted at the current [`Progress`] and
1092+
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
1093+
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
1094+
* The value should only be increased to avoid a storage migration for the currently
1095+
* stored [`crate::Progress::LastKey`].
1096+
**/
1097+
KeyTooLong: AugmentedError<ApiType>;
1098+
/**
1099+
* Max signed limits not respected.
1100+
**/
1101+
MaxSignedLimits: AugmentedError<ApiType>;
1102+
/**
1103+
* submitter does not have enough funds.
1104+
**/
1105+
NotEnoughFunds: AugmentedError<ApiType>;
1106+
/**
1107+
* Signed migration is not allowed because the maximum limit is not set yet.
1108+
**/
1109+
SignedMigrationNotAllowed: AugmentedError<ApiType>;
1110+
/**
1111+
* Generic error
1112+
**/
1113+
[key: string]: AugmentedError<ApiType>;
1114+
};
10451115
system: {
10461116
/**
10471117
* The origin filter prevent the call to be dispatched.

api-augment/assetHubKusama/events.ts

Lines changed: 44 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { ApiTypes, AugmentedEvent } from 'https://deno.land/x/polkadot/api-
66
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from 'https://deno.land/x/polkadot/types-codec/mod.ts';
77
import type { ITuple } from 'https://deno.land/x/polkadot/types-codec/types/index.ts';
88
import type { AccountId32, H256, Permill } from 'https://deno.land/x/polkadot/types/interfaces/runtime/index.ts';
9-
import type { AssetHubKusamaRuntimeProxyType, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from 'https://deno.land/x/polkadot/types/lookup.ts';
9+
import type { AssetHubKusamaRuntimeProxyType, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV4Location, StagingXcmV5AssetAssets, StagingXcmV5Location, StagingXcmV5Response, StagingXcmV5TraitsOutcome, StagingXcmV5Xcm, XcmV5TraitsError, XcmVersionedAssets, XcmVersionedLocation } from 'https://deno.land/x/polkadot/types/lookup.ts';
1010

1111
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
1212

@@ -317,7 +317,7 @@ declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
317317
* Downward message executed with the given outcome.
318318
* \[ id, outcome \]
319319
**/
320-
ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, StagingXcmV4TraitsOutcome]>;
320+
ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, StagingXcmV5TraitsOutcome]>;
321321
/**
322322
* Downward message is invalid XCM.
323323
* \[ id \]
@@ -697,25 +697,25 @@ declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
697697
/**
698698
* Some assets have been claimed from an asset trap
699699
**/
700-
AssetsClaimed: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets }>;
700+
AssetsClaimed: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV5Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV5Location, assets: XcmVersionedAssets }>;
701701
/**
702702
* Some assets have been placed in an asset trap.
703703
**/
704-
AssetsTrapped: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets }>;
704+
AssetsTrapped: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV5Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV5Location, assets: XcmVersionedAssets }>;
705705
/**
706706
* Execution of an XCM message was attempted.
707707
**/
708-
Attempted: AugmentedEvent<ApiType, [outcome: StagingXcmV4TraitsOutcome], { outcome: StagingXcmV4TraitsOutcome }>;
708+
Attempted: AugmentedEvent<ApiType, [outcome: StagingXcmV5TraitsOutcome], { outcome: StagingXcmV5TraitsOutcome }>;
709709
/**
710710
* Fees were paid from a location for an operation (often for using `SendXcm`).
711711
**/
712-
FeesPaid: AugmentedEvent<ApiType, [paying: StagingXcmV4Location, fees: StagingXcmV4AssetAssets], { paying: StagingXcmV4Location, fees: StagingXcmV4AssetAssets }>;
712+
FeesPaid: AugmentedEvent<ApiType, [paying: StagingXcmV5Location, fees: StagingXcmV5AssetAssets], { paying: StagingXcmV5Location, fees: StagingXcmV5AssetAssets }>;
713713
/**
714714
* Expected query response has been received but the querier location of the response does
715715
* not match the expected. The query remains registered for a later, valid, response to
716716
* be received and acted upon.
717717
**/
718-
InvalidQuerier: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64, expectedQuerier: StagingXcmV4Location, maybeActualQuerier: Option<StagingXcmV4Location>], { origin: StagingXcmV4Location, queryId: u64, expectedQuerier: StagingXcmV4Location, maybeActualQuerier: Option<StagingXcmV4Location> }>;
718+
InvalidQuerier: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64, expectedQuerier: StagingXcmV5Location, maybeActualQuerier: Option<StagingXcmV5Location>], { origin: StagingXcmV5Location, queryId: u64, expectedQuerier: StagingXcmV5Location, maybeActualQuerier: Option<StagingXcmV5Location> }>;
719719
/**
720720
* Expected query response has been received but the expected querier location placed in
721721
* storage by this runtime previously cannot be decoded. The query remains registered.
@@ -725,13 +725,13 @@ declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
725725
* valid response will be dropped. Manual governance intervention is probably going to be
726726
* needed.
727727
**/
728-
InvalidQuerierVersion: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64], { origin: StagingXcmV4Location, queryId: u64 }>;
728+
InvalidQuerierVersion: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64], { origin: StagingXcmV5Location, queryId: u64 }>;
729729
/**
730730
* Expected query response has been received but the origin location of the response does
731731
* not match that expected. The query remains registered for a later, valid, response to
732732
* be received and acted upon.
733733
**/
734-
InvalidResponder: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64, expectedLocation: Option<StagingXcmV4Location>], { origin: StagingXcmV4Location, queryId: u64, expectedLocation: Option<StagingXcmV4Location> }>;
734+
InvalidResponder: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64, expectedLocation: Option<StagingXcmV5Location>], { origin: StagingXcmV5Location, queryId: u64, expectedLocation: Option<StagingXcmV5Location> }>;
735735
/**
736736
* Expected query response has been received but the expected origin location placed in
737737
* storage by this runtime previously cannot be decoded. The query remains registered.
@@ -741,7 +741,7 @@ declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
741741
* valid response will be dropped. Manual governance intervention is probably going to be
742742
* needed.
743743
**/
744-
InvalidResponderVersion: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64], { origin: StagingXcmV4Location, queryId: u64 }>;
744+
InvalidResponderVersion: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64], { origin: StagingXcmV5Location, queryId: u64 }>;
745745
/**
746746
* Query response has been received and query is removed. The registered notification has
747747
* been dispatched and executed successfully.
@@ -773,55 +773,55 @@ declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
773773
* A given location which had a version change subscription was dropped owing to an error
774774
* sending the notification to it.
775775
**/
776-
NotifyTargetSendFail: AugmentedEvent<ApiType, [location: StagingXcmV4Location, queryId: u64, error: XcmV3TraitsError], { location: StagingXcmV4Location, queryId: u64, error: XcmV3TraitsError }>;
776+
NotifyTargetSendFail: AugmentedEvent<ApiType, [location: StagingXcmV5Location, queryId: u64, error: XcmV5TraitsError], { location: StagingXcmV5Location, queryId: u64, error: XcmV5TraitsError }>;
777777
/**
778778
* Query response has been received and is ready for taking with `take_response`. There is
779779
* no registered notification call.
780780
**/
781-
ResponseReady: AugmentedEvent<ApiType, [queryId: u64, response: StagingXcmV4Response], { queryId: u64, response: StagingXcmV4Response }>;
781+
ResponseReady: AugmentedEvent<ApiType, [queryId: u64, response: StagingXcmV5Response], { queryId: u64, response: StagingXcmV5Response }>;
782782
/**
783783
* Received query response has been read and removed.
784784
**/
785785
ResponseTaken: AugmentedEvent<ApiType, [queryId: u64], { queryId: u64 }>;
786786
/**
787787
* A XCM message was sent.
788788
**/
789-
Sent: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, destination: StagingXcmV4Location, message: StagingXcmV4Xcm, messageId: U8aFixed], { origin: StagingXcmV4Location, destination: StagingXcmV4Location, message: StagingXcmV4Xcm, messageId: U8aFixed }>;
789+
Sent: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, destination: StagingXcmV5Location, message: StagingXcmV5Xcm, messageId: U8aFixed], { origin: StagingXcmV5Location, destination: StagingXcmV5Location, message: StagingXcmV5Xcm, messageId: U8aFixed }>;
790790
/**
791791
* The supported version of a location has been changed. This might be through an
792792
* automatic notification or a manual intervention.
793793
**/
794-
SupportedVersionChanged: AugmentedEvent<ApiType, [location: StagingXcmV4Location, version: u32], { location: StagingXcmV4Location, version: u32 }>;
794+
SupportedVersionChanged: AugmentedEvent<ApiType, [location: StagingXcmV5Location, version: u32], { location: StagingXcmV5Location, version: u32 }>;
795795
/**
796796
* Query response received which does not match a registered query. This may be because a
797797
* matching query was never registered, it may be because it is a duplicate response, or
798798
* because the query timed out.
799799
**/
800-
UnexpectedResponse: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64], { origin: StagingXcmV4Location, queryId: u64 }>;
800+
UnexpectedResponse: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64], { origin: StagingXcmV5Location, queryId: u64 }>;
801801
/**
802802
* An XCM version change notification message has been attempted to be sent.
803803
*
804804
* The cost of sending it (borne by the chain) is included.
805805
**/
806-
VersionChangeNotified: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, result: u32, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, result: u32, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
806+
VersionChangeNotified: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, result: u32, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], { destination: StagingXcmV5Location, result: u32, cost: StagingXcmV5AssetAssets, messageId: U8aFixed }>;
807807
/**
808808
* A XCM version migration finished.
809809
**/
810810
VersionMigrationFinished: AugmentedEvent<ApiType, [version: u32], { version: u32 }>;
811811
/**
812812
* We have requested that a remote chain send us XCM version change notifications.
813813
**/
814-
VersionNotifyRequested: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
814+
VersionNotifyRequested: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], { destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed }>;
815815
/**
816816
* A remote has requested XCM version change notification from us and we have honored it.
817817
* A version information message is sent to them and its cost is included.
818818
**/
819-
VersionNotifyStarted: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
819+
VersionNotifyStarted: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], { destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed }>;
820820
/**
821821
* We have requested that a remote chain stops sending us XCM version change
822822
* notifications.
823823
**/
824-
VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
824+
VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], { destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed }>;
825825
/**
826826
* Generic event
827827
**/
@@ -976,6 +976,29 @@ declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
976976
**/
977977
[key: string]: AugmentedEvent<ApiType>;
978978
};
979+
stateTrieMigration: {
980+
/**
981+
* The auto migration task finished.
982+
**/
983+
AutoMigrationFinished: AugmentedEvent<ApiType, []>;
984+
/**
985+
* Migration got halted due to an error or miss-configuration.
986+
**/
987+
Halted: AugmentedEvent<ApiType, [error: PalletStateTrieMigrationError], { error: PalletStateTrieMigrationError }>;
988+
/**
989+
* Given number of `(top, child)` keys were migrated respectively, with the given
990+
* `compute`.
991+
**/
992+
Migrated: AugmentedEvent<ApiType, [top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute], { top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute }>;
993+
/**
994+
* Some account got slashed by the given amount.
995+
**/
996+
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
997+
/**
998+
* Generic event
999+
**/
1000+
[key: string]: AugmentedEvent<ApiType>;
1001+
};
9791002
system: {
9801003
/**
9811004
* `:code` was updated.
@@ -984,11 +1007,11 @@ declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
9841007
/**
9851008
* An extrinsic failed.
9861009
**/
987-
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo }>;
1010+
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSystemDispatchEventInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSystemDispatchEventInfo }>;
9881011
/**
9891012
* An extrinsic completed successfully.
9901013
**/
991-
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportDispatchDispatchInfo], { dispatchInfo: FrameSupportDispatchDispatchInfo }>;
1014+
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSystemDispatchEventInfo], { dispatchInfo: FrameSystemDispatchEventInfo }>;
9921015
/**
9931016
* An account was reaped.
9941017
**/

0 commit comments

Comments
 (0)