Bump all static metadata (#3927)

* Bump all static metadata

* Build defs
This commit is contained in:
Jaco
2021-09-04 15:38:36 +02:00
committed by GitHub
parent 3e159891c0
commit a0dd50b3ba
11 changed files with 309 additions and 16 deletions
+8 -2
View File
@@ -202,8 +202,7 @@ declare module '@polkadot/api/types/consts' {
**/
cooloffPeriod: BlockNumber & AugmentedConst<ApiType>;
/**
* The minimum period of locking and the period between a proposal being approved and
* enacted.
* The period between a proposal being approved and enacted.
*
* It should generally be a little more than the unstake period to ensure that
* voting stakers have an opportunity to remove themselves from the system in the case
@@ -243,6 +242,13 @@ declare module '@polkadot/api/types/consts' {
* The amount of balance that must be deposited per byte of preimage stored.
**/
preimageByteDeposit: BalanceOf & AugmentedConst<ApiType>;
/**
* The minimum period of vote locking.
*
* It should be no shorter than enactment period to ensure that in the case of an approval,
* those successful voters are locked into the consequences that their votes entail.
**/
voteLockingPeriod: BlockNumber & AugmentedConst<ApiType>;
/**
* How often (in blocks) to check for new votes.
**/
+2 -1
View File
@@ -54,7 +54,7 @@ function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, {
const keys = (sub as TypeDef[]).map((def, index): string => {
const { info, name = `unknown${index}`, type } = def;
const getter = stringUpperFirst(stringCamelCase(name.replace(' ', '_')));
const isComplex = [TypeDefInfo.Struct, TypeDefInfo.Tuple, TypeDefInfo.Vec, TypeDefInfo.VecFixed].includes(info);
const isComplex = [TypeDefInfo.Result, TypeDefInfo.Struct, TypeDefInfo.Tuple, TypeDefInfo.Vec, TypeDefInfo.VecFixed].includes(info);
const asGetter = type === 'Null' || info === TypeDefInfo.DoNotConstruct
? ''
: createGetter(definitions, `as${getter}`, isComplex ? formatType(registry, definitions, info === TypeDefInfo.Struct ? def : type, imports) : type, imports);
@@ -65,6 +65,7 @@ function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, {
switch (info) {
case TypeDefInfo.Compact:
case TypeDefInfo.Plain:
case TypeDefInfo.Result:
case TypeDefInfo.Struct:
case TypeDefInfo.Tuple:
case TypeDefInfo.Vec:
File diff suppressed because one or more lines are too long
@@ -4950,8 +4950,7 @@
"type": "BlockNumber",
"value": "0x00c20100",
"docs": [
" The minimum period of locking and the period between a proposal being approved and",
" enacted.",
" The period between a proposal being approved and enacted.",
"",
" It should generally be a little more than the unstake period to ensure that",
" voting stakers have an opportunity to remove themselves from the system in the case",
@@ -4974,6 +4973,17 @@
" How often (in blocks) to check for new votes."
]
},
{
"name": "VoteLockingPeriod",
"type": "BlockNumber",
"value": "0x00c20100",
"docs": [
" The minimum period of vote locking.",
"",
" It should be no shorter than enactment period to ensure that in the case of an approval,",
" those successful voters are locked into the consequences that their votes entail."
]
},
{
"name": "MinimumDeposit",
"type": "BalanceOf",
@@ -16544,7 +16554,7 @@
"prefix": "XcmPallet",
"items": [
{
"name": "QueryCount",
"name": "QueryCounter",
"modifier": "Default",
"type": {
"plain": "QueryId"
@@ -16588,6 +16598,94 @@
" Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of",
" times this pair has been trapped (usually just 1 if it exists at all)."
]
},
{
"name": "SafeXcmVersion",
"modifier": "Optional",
"type": {
"plain": "XcmVersion"
},
"fallback": "0x00",
"docs": [
" Default version to encode XCM when latest version of destination is unknown. If `None`,",
" then the destinations whose XCM version is unknown are considered unreachable."
]
},
{
"name": "SupportedVersion",
"modifier": "Optional",
"type": {
"doubleMap": {
"hasher": "Twox64Concat",
"key1": "XcmVersion",
"key2": "VersionedMultiLocation",
"value": "XcmVersion",
"key2Hasher": "Blake2_128Concat"
}
},
"fallback": "0x00",
"docs": [
" Latest versions that we know various locations support."
]
},
{
"name": "VersionNotifiers",
"modifier": "Optional",
"type": {
"doubleMap": {
"hasher": "Twox64Concat",
"key1": "XcmVersion",
"key2": "VersionedMultiLocation",
"value": "QueryId",
"key2Hasher": "Blake2_128Concat"
}
},
"fallback": "0x00",
"docs": [
" All locations that we have requested version notifications from."
]
},
{
"name": "VersionNotifyTargets",
"modifier": "Optional",
"type": {
"doubleMap": {
"hasher": "Twox64Concat",
"key1": "XcmVersion",
"key2": "VersionedMultiLocation",
"value": "(QueryId,u64,XcmVersion)",
"key2Hasher": "Blake2_128Concat"
}
},
"fallback": "0x00",
"docs": [
" The target locations that are subscribed to our version changes, as well as the most recent",
" of our versions we informed them of."
]
},
{
"name": "VersionDiscoveryQueue",
"modifier": "Default",
"type": {
"plain": "Vec<(VersionedMultiLocation,u32)>"
},
"fallback": "0x00",
"docs": [
" Destinations whose latest XCM version we would like to know. Duplicates not allowed, and",
" the `u32` counter is the number of times that a send to the destination has been attempted,",
" which is used as a prioritization."
]
},
{
"name": "CurrentMigration",
"modifier": "Optional",
"type": {
"plain": "VersionMigrationStage"
},
"fallback": "0x00",
"docs": [
" The current migration's stage, if any."
]
}
]
},
@@ -16704,6 +16802,75 @@
" NOTE: A successful return to this does *not* imply that the `msg` was executed successfully",
" to completion; only that *some* of it was executed."
]
},
{
"name": "force_xcm_version",
"args": [
{
"name": "location",
"type": "MultiLocation"
},
{
"name": "xcm_version",
"type": "XcmVersion"
}
],
"docs": [
" Extoll that a particular destination can be communicated with through a particular",
" version of XCM.",
"",
" - `origin`: Must be Root.",
" - `location`: The destination that is being described.",
" - `xcm_version`: The latest version of XCM that `location` supports."
]
},
{
"name": "force_default_xcm_version",
"args": [
{
"name": "maybe_xcm_version",
"type": "Option<XcmVersion>"
}
],
"docs": [
" Set a safe XCM version (the version that XCM should be encoded with if the most recent",
" version a destination can accept is unknown).",
"",
" - `origin`: Must be Root.",
" - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable."
]
},
{
"name": "force_subscribe_version_notify",
"args": [
{
"name": "location",
"type": "VersionedMultiLocation"
}
],
"docs": [
" Ask a location to notify us regarding their XCM version and any changes to it.",
"",
" - `origin`: Must be Root.",
" - `location`: The location to which we should subscribe for XCM version notifications."
]
},
{
"name": "force_unsubscribe_version_notify",
"args": [
{
"name": "location",
"type": "VersionedMultiLocation"
}
],
"docs": [
" Require that a particular destination should no longer notify us regarding any XCM",
" version changes.",
"",
" - `origin`: Must be Root.",
" - `location`: The location to which we are currently subscribed for XCM version",
" notifications which we no longer desire."
]
}
],
"events": [
@@ -16823,7 +16990,7 @@
"args": [
"MultiLocation",
"QueryId",
"MultiLocation"
"Option<MultiLocation>"
],
"docs": [
" Expected query response has been received but the origin location of the response does",
@@ -16874,6 +17041,58 @@
"",
" \\[ hash, origin, assets \\]"
]
},
{
"name": "VersionChangeNotified",
"args": [
"MultiLocation",
"XcmVersion"
],
"docs": [
" An XCM version change notification message has been attempted to be sent.",
"",
" \\[ destination, result \\]"
]
},
{
"name": "SupportedVersionChanged",
"args": [
"MultiLocation",
"XcmVersion"
],
"docs": [
" The supported version of a location has been changed. This might be through an",
" automatic notification or a manual intervention.",
"",
" \\[ location, XCM version \\]"
]
},
{
"name": "NotifyTargetSendFail",
"args": [
"MultiLocation",
"QueryId",
"XcmError"
],
"docs": [
" A given location which had a version change subscription was dropped owing to an error",
" sending the notification to it.",
"",
" \\[ location, query ID, error \\]"
]
},
{
"name": "NotifyTargetMigrationFail",
"args": [
"VersionedMultiLocation",
"QueryId"
],
"docs": [
" A given location which had a version change subscription was dropped owing to an error",
" migrating the location to our new XCM format.",
"",
" \\[ location, query ID \\]"
]
}
],
"constants": [],
@@ -16939,6 +17158,25 @@
"docs": [
" The version of the `Versioned` value used is not able to be interpreted."
]
},
{
"name": "BadLocation",
"docs": [
" The given location could not be used (e.g. because it cannot be expressed in the",
" desired version of XCM)."
]
},
{
"name": "NoSubscription",
"docs": [
" The referenced subscription could not be found."
]
},
{
"name": "AlreadySubscribed",
"docs": [
" The location is invalid since it already has a subscription from us."
]
}
],
"index": 99
File diff suppressed because one or more lines are too long
@@ -5261,8 +5261,7 @@
"type": "BlockNumber",
"value": "0x00270600",
"docs": [
" The minimum period of locking and the period between a proposal being approved and",
" enacted.",
" The period between a proposal being approved and enacted.",
"",
" It should generally be a little more than the unstake period to ensure that",
" voting stakers have an opportunity to remove themselves from the system in the case",
@@ -5285,6 +5284,17 @@
" How often (in blocks) to check for new votes."
]
},
{
"name": "VoteLockingPeriod",
"type": "BlockNumber",
"value": "0x00270600",
"docs": [
" The minimum period of vote locking.",
"",
" It should be no shorter than enactment period to ensure that in the case of an approval,",
" those successful voters are locked into the consequences that their votes entail."
]
},
{
"name": "MinimumDeposit",
"type": "BalanceOf",
File diff suppressed because one or more lines are too long
@@ -5124,8 +5124,7 @@
"type": "BlockNumber",
"value": "0x002f0d00",
"docs": [
" The minimum period of locking and the period between a proposal being approved and",
" enacted.",
" The period between a proposal being approved and enacted.",
"",
" It should generally be a little more than the unstake period to ensure that",
" voting stakers have an opportunity to remove themselves from the system in the case",
@@ -5148,6 +5147,17 @@
" How often (in blocks) to check for new votes."
]
},
{
"name": "VoteLockingPeriod",
"type": "BlockNumber",
"value": "0x002f0d00",
"docs": [
" The minimum period of vote locking.",
"",
" It should be no shorter than enactment period to ensure that in the case of an approval,",
" those successful voters are locked into the consequences that their votes entail."
]
},
{
"name": "MinimumDeposit",
"type": "BalanceOf",
+4 -1
View File
@@ -57,7 +57,7 @@ import type { Multiplier } from '@polkadot/types/interfaces/txpayment';
import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalanceOf, DestroyWitness, InstanceDetails, InstanceId, InstanceMetadata } from '@polkadot/types/interfaces/uniques';
import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';
import type { VestingInfo } from '@polkadot/types/interfaces/vesting';
import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, BodyId, BodyPart, DoubleEncodedCall, Fungibility, InboundStatus, Junction, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WildFungibility, WildMultiAsset, WildMultiAssetV1, Xcm, XcmAssetId, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';
import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, BodyId, BodyPart, DoubleEncodedCall, Fungibility, InboundStatus, Junction, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionMigrationStage, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WildFungibility, WildMultiAsset, WildMultiAssetV1, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';
declare module '@polkadot/types/types/registry' {
export interface InterfaceTypes {
@@ -962,6 +962,7 @@ declare module '@polkadot/types/types/registry' {
VersionedMultiLocation: VersionedMultiLocation;
VersionedResponse: VersionedResponse;
VersionedXcm: VersionedXcm;
VersionMigrationStage: VersionMigrationStage;
VestingInfo: VestingInfo;
VestingSchedule: VestingSchedule;
Vote: Vote;
@@ -994,6 +995,7 @@ declare module '@polkadot/types/types/registry' {
WithdrawReasons: WithdrawReasons;
Xcm: Xcm;
XcmAssetId: XcmAssetId;
XcmError: XcmError;
XcmErrorV0: XcmErrorV0;
XcmErrorV1: XcmErrorV1;
XcmErrorV2: XcmErrorV2;
@@ -1005,5 +1007,6 @@ declare module '@polkadot/types/types/registry' {
XcmpMessageFormat: XcmpMessageFormat;
XcmV0: XcmV0;
XcmV1: XcmV1;
XcmVersion: XcmVersion;
}
}
@@ -20,6 +20,7 @@ const xcm = {
XcmpMessageFormat: {
_enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals']
},
XcmError: 'XcmErrorV1',
XcmOrder: 'XcmOrderV1',
XcmAssetId: {
_enum: {
@@ -171,6 +172,14 @@ export default {
thresholdWeight: 'Weight',
weightRestrictDecay: 'Weight'
},
VersionMigrationStage: {
_enum: {
MigrateSupportedVersion: 'Null',
MigrateVersionNotifiers: 'Null',
NotifyCurrentTargets: 'Option<Bytes>',
MigrateAndNotifyOldTargets: 'Null'
}
},
VersionedMultiAsset: {
_enum: {
V0: 'MultiAssetV0',
@@ -202,6 +211,7 @@ export default {
V0: 'XcmV0',
V1: 'XcmV1'
}
}
},
XcmVersion: 'u32'
}
} as Definitions;
@@ -371,6 +371,15 @@ export interface VersionedXcm extends Enum {
readonly asV1: XcmV1;
}
/** @name VersionMigrationStage */
export interface VersionMigrationStage extends Enum {
readonly isMigrateSupportedVersion: boolean;
readonly isMigrateVersionNotifiers: boolean;
readonly isNotifyCurrentTargets: boolean;
readonly asNotifyCurrentTargets: Option<Bytes>;
readonly isMigrateAndNotifyOldTargets: boolean;
}
/** @name WildFungibility */
export interface WildFungibility extends Enum {
readonly isFungible: boolean;
@@ -401,6 +410,9 @@ export interface XcmAssetId extends Enum {
readonly asAbstract: Bytes;
}
/** @name XcmError */
export interface XcmError extends XcmErrorV1 {}
/** @name XcmErrorV0 */
export interface XcmErrorV0 extends Enum {
readonly isUndefined: boolean;
@@ -752,4 +764,7 @@ export interface XcmV1 extends Enum {
} & Struct;
}
/** @name XcmVersion */
export interface XcmVersion extends u32 {}
export type PHANTOM_XCM = 'xcm';