From 8230c9c2349a552d10ca94baf33693b92c7d52b1 Mon Sep 17 00:00:00 2001 From: Eric Richardson Date: Wed, 28 Feb 2024 07:16:37 -0500 Subject: [PATCH 1/5] =?UTF-8?q?fix:=20=F0=9F=90=9B=20handle=20NFT=20locked?= =?UTF-8?q?=20error=20in=20nft.canTransfer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit adds support for a new error type for NFT canTransfer --- scripts/transactions.json | 3 +- src/generated/types.ts | 1 + src/polkadot/augment-api-errors.ts | 22 +- src/polkadot/augment-api-events.ts | 14 - src/polkadot/augment-api-query.ts | 14 +- src/polkadot/augment-api-tx.ts | 117 +---- src/polkadot/lookup.ts | 665 ++++++++++++++-------------- src/polkadot/registry.ts | 18 +- src/polkadot/types-lookup.ts | 666 ++++++++++++++--------------- src/utils/__tests__/conversion.ts | 1 + src/utils/conversion.ts | 7 +- 11 files changed, 698 insertions(+), 830 deletions(-) diff --git a/scripts/transactions.json b/scripts/transactions.json index 3c510e1cbf..fe9f73c555 100644 --- a/scripts/transactions.json +++ b/scripts/transactions.json @@ -420,7 +420,8 @@ "dispatch_as": "dispatch_as", "force_batch": "force_batch", "with_weight": "with_weight", - "batch_old": "batch_old" + "batch_old": "batch_old", + "as_derivative": "as_derivative" }, "ExternalAgents": { "create_group": "create_group", diff --git a/src/generated/types.ts b/src/generated/types.ts index f336e88088..128baadbd9 100644 --- a/src/generated/types.ts +++ b/src/generated/types.ts @@ -710,6 +710,7 @@ export enum UtilityTx { ForceBatch = 'utility.forceBatch', WithWeight = 'utility.withWeight', BatchOld = 'utility.batchOld', + AsDerivative = 'utility.asDerivative', } export enum ExternalAgentsTx { diff --git a/src/polkadot/augment-api-errors.ts b/src/polkadot/augment-api-errors.ts index 514044a8db..44c7374b4b 100644 --- a/src/polkadot/augment-api-errors.ts +++ b/src/polkadot/augment-api-errors.ts @@ -92,6 +92,10 @@ declare module '@polkadot/api-base/types/errors' { * An invalid granularity. **/ InvalidGranularity: AugmentedError; + /** + * Invalid ticker character - valid set: A`..`Z` `0`..`9` `_` `-` `.` `/`. + **/ + InvalidTickerCharacter: AugmentedError; /** * Transfer validation check failed. **/ @@ -120,6 +124,10 @@ declare module '@polkadot/api-base/types/errors' { * The asset must be frozen. **/ NotFrozen: AugmentedError; + /** + * Number of asset mediators would exceed the maximum allowed. + **/ + NumberOfAssetMediatorsExceeded: AugmentedError; /** * Transfers to self are not allowed **/ @@ -1078,6 +1086,10 @@ declare module '@polkadot/api-base/types/errors' { * Failed to transfer an NFT - the number of nfts in the identity is insufficient. **/ InvalidNFTTransferInsufficientCount: AugmentedError; + /** + * Failed to transfer an NFT - nft is locked. + **/ + InvalidNFTTransferNFTIsLocked: AugmentedError; /** * Failed to transfer an NFT - NFT not found in portfolio. **/ @@ -1893,12 +1905,6 @@ declare module '@polkadot/api-base/types/errors' { **/ Unauthorized: AugmentedError; }; - sudo: { - /** - * Sender must be the Sudo account - **/ - RequireSudo: AugmentedError; - }; system: { /** * The origin filter prevent the call to be dispatched. @@ -2104,6 +2110,10 @@ declare module '@polkadot/api-base/types/errors' { * Too many calls batched. **/ TooManyCalls: AugmentedError; + /** + * Decoding derivative account Id failed. + **/ + UnableToDeriveAccountId: AugmentedError; }; } // AugmentedErrors } // declare module diff --git a/src/polkadot/augment-api-events.ts b/src/polkadot/augment-api-events.ts index e3adf07f0d..0061a79c9c 100644 --- a/src/polkadot/augment-api-events.ts +++ b/src/polkadot/augment-api-events.ts @@ -2284,20 +2284,6 @@ declare module '@polkadot/api-base/types/events' { ] >; }; - sudo: { - /** - * The \[sudoer\] just switched identity; the old key is supplied. - **/ - KeyChanged: AugmentedEvent]>; - /** - * A sudo just took place. \[result\] - **/ - Sudid: AugmentedEvent]>; - /** - * A sudo just took place. \[result\] - **/ - SudoAsDone: AugmentedEvent]>; - }; system: { /** * `:code` was updated. diff --git a/src/polkadot/augment-api-query.ts b/src/polkadot/augment-api-query.ts index 0c0bd4e6f2..42e077e47f 100644 --- a/src/polkadot/augment-api-query.ts +++ b/src/polkadot/augment-api-query.ts @@ -124,7 +124,7 @@ import type { PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceAssetTransferCompliance, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, - PolymeshRuntimeDevelopRuntimeSessionKeys, + PolymeshRuntimeTestnetRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, @@ -1672,7 +1672,7 @@ declare module '@polkadot/api-base/types/storage' { ( arg1: PolymeshPrimitivesTicker | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array - ) => Observable>, + ) => Observable>, [PolymeshPrimitivesTicker, u64] >; /** @@ -2272,7 +2272,7 @@ declare module '@polkadot/api-base/types/storage' { ApiType, ( arg: AccountId32 | string | Uint8Array - ) => Observable>, + ) => Observable>, [AccountId32] >; /** @@ -2286,7 +2286,7 @@ declare module '@polkadot/api-base/types/storage' { **/ queuedKeys: AugmentedQuery< ApiType, - () => Observable>>, + () => Observable>>, [] >; /** @@ -2937,12 +2937,6 @@ declare module '@polkadot/api-base/types/storage' { [PolymeshPrimitivesTicker, u64] >; }; - sudo: { - /** - * The `AccountId` of the sudo key. - **/ - key: AugmentedQuery Observable>, []>; - }; system: { /** * The full account information for a particular account ID. diff --git a/src/polkadot/augment-api-tx.ts b/src/polkadot/augment-api-tx.ts index 7870a4aeb4..2b39be5380 100644 --- a/src/polkadot/augment-api-tx.ts +++ b/src/polkadot/augment-api-tx.ts @@ -105,8 +105,8 @@ import type { PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, - PolymeshRuntimeDevelopRuntimeOriginCaller, - PolymeshRuntimeDevelopRuntimeSessionKeys, + PolymeshRuntimeTestnetRuntimeOriginCaller, + PolymeshRuntimeTestnetRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, @@ -5151,13 +5151,13 @@ declare module '@polkadot/api-base/types/submittable' { setKeys: AugmentedSubmittable< ( keys: - | PolymeshRuntimeDevelopRuntimeSessionKeys + | PolymeshRuntimeTestnetRuntimeSessionKeys | { grandpa?: any; babe?: any; imOnline?: any; authorityDiscovery?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array ) => SubmittableExtrinsic, - [PolymeshRuntimeDevelopRuntimeSessionKeys, Bytes] + [PolymeshRuntimeTestnetRuntimeSessionKeys, Bytes] >; }; settlement: { @@ -6870,96 +6870,6 @@ declare module '@polkadot/api-base/types/submittable' { [PolymeshPrimitivesTicker, u64] >; }; - sudo: { - /** - * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key. - * - * The dispatch origin for this call must be _Signed_. - * - * # - * - O(1). - * - Limited storage reads. - * - One DB change. - * # - **/ - setKey: AugmentedSubmittable< - ( - updated: - | MultiAddress - | { Id: any } - | { Index: any } - | { Raw: any } - | { Address32: any } - | { Address20: any } - | string - | Uint8Array - ) => SubmittableExtrinsic, - [MultiAddress] - >; - /** - * Authenticates the sudo key and dispatches a function call with `Root` origin. - * - * The dispatch origin for this call must be _Signed_. - * - * # - * - O(1). - * - Limited storage reads. - * - One DB write (event). - * - Weight of derivative `call` execution + 10,000. - * # - **/ - sudo: AugmentedSubmittable< - (call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, - [Call] - >; - /** - * Authenticates the sudo key and dispatches a function call with `Signed` origin from - * a given account. - * - * The dispatch origin for this call must be _Signed_. - * - * # - * - O(1). - * - Limited storage reads. - * - One DB write (event). - * - Weight of derivative `call` execution + 10,000. - * # - **/ - sudoAs: AugmentedSubmittable< - ( - who: - | MultiAddress - | { Id: any } - | { Index: any } - | { Raw: any } - | { Address32: any } - | { Address20: any } - | string - | Uint8Array, - call: Call | IMethod | string | Uint8Array - ) => SubmittableExtrinsic, - [MultiAddress, Call] - >; - /** - * Authenticates the sudo key and dispatches a function call with `Root` origin. - * This function does not check the weight of the call, and instead allows the - * Sudo user to specify the weight of the call. - * - * The dispatch origin for this call must be _Signed_. - * - * # - * - O(1). - * - The weight of this call is defined by the caller. - * # - **/ - sudoUncheckedWeight: AugmentedSubmittable< - ( - call: Call | IMethod | string | Uint8Array, - weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array - ) => SubmittableExtrinsic, - [Call, SpWeightsWeightV2Weight] - >; - }; system: { /** * Kill all storage items with a key that starts with the given prefix. @@ -7548,6 +7458,21 @@ declare module '@polkadot/api-base/types/submittable' { >; }; utility: { + /** + * Send a call through an indexed pseudonym of the sender. + * + * Filter from origin are passed along. The call will be dispatched with an origin which + * use the same filter as the origin of this call. + * + * The dispatch origin for this call must be _Signed_. + **/ + asDerivative: AugmentedSubmittable< + ( + index: u16 | AnyNumber | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [u16, Call] + >; /** * Send a batch of dispatch calls. * @@ -7694,7 +7619,7 @@ declare module '@polkadot/api-base/types/submittable' { dispatchAs: AugmentedSubmittable< ( asOrigin: - | PolymeshRuntimeDevelopRuntimeOriginCaller + | PolymeshRuntimeTestnetRuntimeOriginCaller | { system: any } | { Void: any } | { PolymeshCommittee: any } @@ -7704,7 +7629,7 @@ declare module '@polkadot/api-base/types/submittable' { | Uint8Array, call: Call | IMethod | string | Uint8Array ) => SubmittableExtrinsic, - [PolymeshRuntimeDevelopRuntimeOriginCaller, Call] + [PolymeshRuntimeTestnetRuntimeOriginCaller, Call] >; /** * Send a batch of dispatch calls. diff --git a/src/polkadot/lookup.ts b/src/polkadot/lookup.ts index 4dbdbf1a19..ee94869976 100644 --- a/src/polkadot/lookup.ts +++ b/src/polkadot/lookup.ts @@ -61,7 +61,7 @@ export default { }, }, /** - * Lookup18: frame_system::EventRecord + * Lookup18: frame_system::EventRecord **/ FrameSystemEventRecord: { phase: 'FrameSystemPhase', @@ -671,7 +671,7 @@ export default { }, }, /** - * Lookup75: polymesh_common_utilities::traits::group::RawEvent + * Lookup75: polymesh_common_utilities::traits::group::RawEvent **/ PolymeshCommonUtilitiesGroupRawEventInstance2: { _enum: { @@ -722,7 +722,7 @@ export default { }, }, /** - * Lookup83: polymesh_common_utilities::traits::group::RawEvent + * Lookup83: polymesh_common_utilities::traits::group::RawEvent **/ PolymeshCommonUtilitiesGroupRawEventInstance1: { _enum: { @@ -764,7 +764,7 @@ export default { **/ PalletCommitteeInstance3: 'Null', /** - * Lookup87: polymesh_common_utilities::traits::group::RawEvent + * Lookup87: polymesh_common_utilities::traits::group::RawEvent **/ PolymeshCommonUtilitiesGroupRawEventInstance3: { _enum: { @@ -806,7 +806,7 @@ export default { **/ PalletCommitteeInstance4: 'Null', /** - * Lookup91: polymesh_common_utilities::traits::group::RawEvent + * Lookup91: polymesh_common_utilities::traits::group::RawEvent **/ PolymeshCommonUtilitiesGroupRawEventInstance4: { _enum: { @@ -1015,17 +1015,7 @@ export default { value: 'Compact', }, /** - * Lookup122: pallet_sudo::RawEvent - **/ - PalletSudoRawEvent: { - _enum: { - Sudid: 'Result', - KeyChanged: 'Option', - SudoAsDone: 'Result', - }, - }, - /** - * Lookup123: polymesh_common_utilities::traits::asset::RawEvent + * Lookup122: polymesh_common_utilities::traits::asset::RawEvent **/ PolymeshCommonUtilitiesAssetRawEvent: { _enum: { @@ -1076,7 +1066,7 @@ export default { }, }, /** - * Lookup124: polymesh_primitives::asset::AssetType + * Lookup123: polymesh_primitives::asset::AssetType **/ PolymeshPrimitivesAssetAssetType: { _enum: { @@ -1095,7 +1085,7 @@ export default { }, }, /** - * Lookup126: polymesh_primitives::asset::NonFungibleType + * Lookup125: polymesh_primitives::asset::NonFungibleType **/ PolymeshPrimitivesAssetNonFungibleType: { _enum: { @@ -1106,7 +1096,7 @@ export default { }, }, /** - * Lookup129: polymesh_primitives::asset_identifier::AssetIdentifier + * Lookup128: polymesh_primitives::asset_identifier::AssetIdentifier **/ PolymeshPrimitivesAssetIdentifier: { _enum: { @@ -1118,7 +1108,7 @@ export default { }, }, /** - * Lookup135: polymesh_primitives::document::Document + * Lookup134: polymesh_primitives::document::Document **/ PolymeshPrimitivesDocument: { uri: 'Bytes', @@ -1128,7 +1118,7 @@ export default { filingDate: 'Option', }, /** - * Lookup137: polymesh_primitives::document_hash::DocumentHash + * Lookup136: polymesh_primitives::document_hash::DocumentHash **/ PolymeshPrimitivesDocumentHash: { _enum: { @@ -1144,14 +1134,14 @@ export default { }, }, /** - * Lookup148: polymesh_primitives::asset_metadata::AssetMetadataValueDetail + * Lookup147: polymesh_primitives::asset_metadata::AssetMetadataValueDetail **/ PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail: { expire: 'Option', lockStatus: 'PolymeshPrimitivesAssetMetadataAssetMetadataLockStatus', }, /** - * Lookup149: polymesh_primitives::asset_metadata::AssetMetadataLockStatus + * Lookup148: polymesh_primitives::asset_metadata::AssetMetadataLockStatus **/ PolymeshPrimitivesAssetMetadataAssetMetadataLockStatus: { _enum: { @@ -1161,7 +1151,7 @@ export default { }, }, /** - * Lookup152: polymesh_primitives::asset_metadata::AssetMetadataSpec + * Lookup151: polymesh_primitives::asset_metadata::AssetMetadataSpec **/ PolymeshPrimitivesAssetMetadataAssetMetadataSpec: { url: 'Option', @@ -1169,7 +1159,7 @@ export default { typeDef: 'Option', }, /** - * Lookup159: polymesh_primitives::asset_metadata::AssetMetadataKey + * Lookup158: polymesh_primitives::asset_metadata::AssetMetadataKey **/ PolymeshPrimitivesAssetMetadataAssetMetadataKey: { _enum: { @@ -1178,7 +1168,7 @@ export default { }, }, /** - * Lookup161: polymesh_primitives::portfolio::PortfolioUpdateReason + * Lookup160: polymesh_primitives::portfolio::PortfolioUpdateReason **/ PolymeshPrimitivesPortfolioPortfolioUpdateReason: { _enum: { @@ -1194,7 +1184,7 @@ export default { }, }, /** - * Lookup164: pallet_corporate_actions::distribution::Event + * Lookup163: pallet_corporate_actions::distribution::Event **/ PalletCorporateActionsDistributionEvent: { _enum: { @@ -1207,18 +1197,18 @@ export default { }, }, /** - * Lookup165: polymesh_primitives::event_only::EventOnly + * Lookup164: polymesh_primitives::event_only::EventOnly **/ PolymeshPrimitivesEventOnly: 'PolymeshPrimitivesIdentityId', /** - * Lookup166: pallet_corporate_actions::CAId + * Lookup165: pallet_corporate_actions::CAId **/ PalletCorporateActionsCaId: { ticker: 'PolymeshPrimitivesTicker', localId: 'u32', }, /** - * Lookup168: pallet_corporate_actions::distribution::Distribution + * Lookup167: pallet_corporate_actions::distribution::Distribution **/ PalletCorporateActionsDistribution: { from: 'PolymeshPrimitivesIdentityIdPortfolioId', @@ -1231,7 +1221,7 @@ export default { expiresAt: 'Option', }, /** - * Lookup170: polymesh_common_utilities::traits::checkpoint::Event + * Lookup169: polymesh_common_utilities::traits::checkpoint::Event **/ PolymeshCommonUtilitiesCheckpointEvent: { _enum: { @@ -1245,13 +1235,13 @@ export default { }, }, /** - * Lookup173: polymesh_common_utilities::traits::checkpoint::ScheduleCheckpoints + * Lookup172: polymesh_common_utilities::traits::checkpoint::ScheduleCheckpoints **/ PolymeshCommonUtilitiesCheckpointScheduleCheckpoints: { pending: 'BTreeSet', }, /** - * Lookup176: polymesh_common_utilities::traits::compliance_manager::Event + * Lookup175: polymesh_common_utilities::traits::compliance_manager::Event **/ PolymeshCommonUtilitiesComplianceManagerEvent: { _enum: { @@ -1272,7 +1262,7 @@ export default { }, }, /** - * Lookup177: polymesh_primitives::compliance_manager::ComplianceRequirement + * Lookup176: polymesh_primitives::compliance_manager::ComplianceRequirement **/ PolymeshPrimitivesComplianceManagerComplianceRequirement: { senderConditions: 'Vec', @@ -1280,14 +1270,14 @@ export default { id: 'u32', }, /** - * Lookup179: polymesh_primitives::condition::Condition + * Lookup178: polymesh_primitives::condition::Condition **/ PolymeshPrimitivesCondition: { conditionType: 'PolymeshPrimitivesConditionConditionType', issuers: 'Vec', }, /** - * Lookup180: polymesh_primitives::condition::ConditionType + * Lookup179: polymesh_primitives::condition::ConditionType **/ PolymeshPrimitivesConditionConditionType: { _enum: { @@ -1299,7 +1289,7 @@ export default { }, }, /** - * Lookup182: polymesh_primitives::condition::TargetIdentity + * Lookup181: polymesh_primitives::condition::TargetIdentity **/ PolymeshPrimitivesConditionTargetIdentity: { _enum: { @@ -1308,14 +1298,14 @@ export default { }, }, /** - * Lookup184: polymesh_primitives::condition::TrustedIssuer + * Lookup183: polymesh_primitives::condition::TrustedIssuer **/ PolymeshPrimitivesConditionTrustedIssuer: { issuer: 'PolymeshPrimitivesIdentityId', trustedFor: 'PolymeshPrimitivesConditionTrustedFor', }, /** - * Lookup185: polymesh_primitives::condition::TrustedFor + * Lookup184: polymesh_primitives::condition::TrustedFor **/ PolymeshPrimitivesConditionTrustedFor: { _enum: { @@ -1324,7 +1314,7 @@ export default { }, }, /** - * Lookup187: polymesh_primitives::identity_claim::ClaimType + * Lookup186: polymesh_primitives::identity_claim::ClaimType **/ PolymeshPrimitivesIdentityClaimClaimType: { _enum: { @@ -1341,7 +1331,7 @@ export default { }, }, /** - * Lookup189: pallet_corporate_actions::Event + * Lookup188: pallet_corporate_actions::Event **/ PalletCorporateActionsEvent: { _enum: { @@ -1361,20 +1351,20 @@ export default { }, }, /** - * Lookup190: pallet_corporate_actions::TargetIdentities + * Lookup189: pallet_corporate_actions::TargetIdentities **/ PalletCorporateActionsTargetIdentities: { identities: 'Vec', treatment: 'PalletCorporateActionsTargetTreatment', }, /** - * Lookup191: pallet_corporate_actions::TargetTreatment + * Lookup190: pallet_corporate_actions::TargetTreatment **/ PalletCorporateActionsTargetTreatment: { _enum: ['Include', 'Exclude'], }, /** - * Lookup193: pallet_corporate_actions::CorporateAction + * Lookup192: pallet_corporate_actions::CorporateAction **/ PalletCorporateActionsCorporateAction: { kind: 'PalletCorporateActionsCaKind', @@ -1385,7 +1375,7 @@ export default { withholdingTax: 'Vec<(PolymeshPrimitivesIdentityId,Permill)>', }, /** - * Lookup194: pallet_corporate_actions::CAKind + * Lookup193: pallet_corporate_actions::CAKind **/ PalletCorporateActionsCaKind: { _enum: [ @@ -1397,14 +1387,14 @@ export default { ], }, /** - * Lookup196: pallet_corporate_actions::RecordDate + * Lookup195: pallet_corporate_actions::RecordDate **/ PalletCorporateActionsRecordDate: { date: 'u64', checkpoint: 'PalletCorporateActionsCaCheckpoint', }, /** - * Lookup197: pallet_corporate_actions::CACheckpoint + * Lookup196: pallet_corporate_actions::CACheckpoint **/ PalletCorporateActionsCaCheckpoint: { _enum: { @@ -1413,7 +1403,7 @@ export default { }, }, /** - * Lookup202: pallet_corporate_actions::ballot::Event + * Lookup201: pallet_corporate_actions::ballot::Event **/ PalletCorporateActionsBallotEvent: { _enum: { @@ -1430,21 +1420,21 @@ export default { }, }, /** - * Lookup203: pallet_corporate_actions::ballot::BallotTimeRange + * Lookup202: pallet_corporate_actions::ballot::BallotTimeRange **/ PalletCorporateActionsBallotBallotTimeRange: { start: 'u64', end: 'u64', }, /** - * Lookup204: pallet_corporate_actions::ballot::BallotMeta + * Lookup203: pallet_corporate_actions::ballot::BallotMeta **/ PalletCorporateActionsBallotBallotMeta: { title: 'Bytes', motions: 'Vec', }, /** - * Lookup207: pallet_corporate_actions::ballot::Motion + * Lookup206: pallet_corporate_actions::ballot::Motion **/ PalletCorporateActionsBallotMotion: { title: 'Bytes', @@ -1452,14 +1442,14 @@ export default { choices: 'Vec', }, /** - * Lookup213: pallet_corporate_actions::ballot::BallotVote + * Lookup212: pallet_corporate_actions::ballot::BallotVote **/ PalletCorporateActionsBallotBallotVote: { power: 'u128', fallback: 'Option', }, /** - * Lookup216: pallet_pips::RawEvent + * Lookup215: pallet_pips::RawEvent **/ PalletPipsRawEvent: { _enum: { @@ -1489,7 +1479,7 @@ export default { }, }, /** - * Lookup217: pallet_pips::Proposer + * Lookup216: pallet_pips::Proposer **/ PalletPipsProposer: { _enum: { @@ -1498,13 +1488,13 @@ export default { }, }, /** - * Lookup218: pallet_pips::Committee + * Lookup217: pallet_pips::Committee **/ PalletPipsCommittee: { _enum: ['Technical', 'Upgrade'], }, /** - * Lookup222: pallet_pips::ProposalData + * Lookup221: pallet_pips::ProposalData **/ PalletPipsProposalData: { _enum: { @@ -1513,20 +1503,20 @@ export default { }, }, /** - * Lookup223: pallet_pips::ProposalState + * Lookup222: pallet_pips::ProposalState **/ PalletPipsProposalState: { _enum: ['Pending', 'Rejected', 'Scheduled', 'Failed', 'Executed', 'Expired'], }, /** - * Lookup226: pallet_pips::SnapshottedPip + * Lookup225: pallet_pips::SnapshottedPip **/ PalletPipsSnapshottedPip: { id: 'u32', weight: '(bool,u128)', }, /** - * Lookup232: polymesh_common_utilities::traits::portfolio::Event + * Lookup231: polymesh_common_utilities::traits::portfolio::Event **/ PolymeshCommonUtilitiesPortfolioEvent: { _enum: { @@ -1545,7 +1535,7 @@ export default { }, }, /** - * Lookup236: polymesh_primitives::portfolio::FundDescription + * Lookup235: polymesh_primitives::portfolio::FundDescription **/ PolymeshPrimitivesPortfolioFundDescription: { _enum: { @@ -1557,14 +1547,14 @@ export default { }, }, /** - * Lookup237: polymesh_primitives::nft::NFTs + * Lookup236: polymesh_primitives::nft::NFTs **/ PolymeshPrimitivesNftNfTs: { ticker: 'PolymeshPrimitivesTicker', ids: 'Vec', }, /** - * Lookup240: pallet_protocol_fee::RawEvent + * Lookup239: pallet_protocol_fee::RawEvent **/ PalletProtocolFeeRawEvent: { _enum: { @@ -1574,11 +1564,11 @@ export default { }, }, /** - * Lookup241: polymesh_primitives::PosRatio + * Lookup240: polymesh_primitives::PosRatio **/ PolymeshPrimitivesPosRatio: '(u32,u32)', /** - * Lookup242: pallet_scheduler::pallet::Event + * Lookup241: pallet_scheduler::pallet::Event **/ PalletSchedulerEvent: { _enum: { @@ -1610,7 +1600,7 @@ export default { }, }, /** - * Lookup245: polymesh_common_utilities::traits::settlement::RawEvent + * Lookup244: polymesh_common_utilities::traits::settlement::RawEvent **/ PolymeshCommonUtilitiesSettlementRawEvent: { _enum: { @@ -1644,17 +1634,17 @@ export default { }, }, /** - * Lookup248: polymesh_primitives::settlement::VenueType + * Lookup247: polymesh_primitives::settlement::VenueType **/ PolymeshPrimitivesSettlementVenueType: { _enum: ['Other', 'Distribution', 'Sto', 'Exchange'], }, /** - * Lookup251: polymesh_primitives::settlement::ReceiptMetadata + * Lookup250: polymesh_primitives::settlement::ReceiptMetadata **/ PolymeshPrimitivesSettlementReceiptMetadata: '[u8;32]', /** - * Lookup253: polymesh_primitives::settlement::SettlementType + * Lookup252: polymesh_primitives::settlement::SettlementType **/ PolymeshPrimitivesSettlementSettlementType: { _enum: { @@ -1664,7 +1654,7 @@ export default { }, }, /** - * Lookup255: polymesh_primitives::settlement::Leg + * Lookup254: polymesh_primitives::settlement::Leg **/ PolymeshPrimitivesSettlementLeg: { _enum: { @@ -1688,7 +1678,7 @@ export default { }, }, /** - * Lookup256: polymesh_common_utilities::traits::statistics::Event + * Lookup255: polymesh_common_utilities::traits::statistics::Event **/ PolymeshCommonUtilitiesStatisticsEvent: { _enum: { @@ -1707,7 +1697,7 @@ export default { }, }, /** - * Lookup257: polymesh_primitives::statistics::AssetScope + * Lookup256: polymesh_primitives::statistics::AssetScope **/ PolymeshPrimitivesStatisticsAssetScope: { _enum: { @@ -1715,27 +1705,27 @@ export default { }, }, /** - * Lookup259: polymesh_primitives::statistics::StatType + * Lookup258: polymesh_primitives::statistics::StatType **/ PolymeshPrimitivesStatisticsStatType: { op: 'PolymeshPrimitivesStatisticsStatOpType', claimIssuer: 'Option<(PolymeshPrimitivesIdentityClaimClaimType,PolymeshPrimitivesIdentityId)>', }, /** - * Lookup260: polymesh_primitives::statistics::StatOpType + * Lookup259: polymesh_primitives::statistics::StatOpType **/ PolymeshPrimitivesStatisticsStatOpType: { _enum: ['Count', 'Balance'], }, /** - * Lookup264: polymesh_primitives::statistics::StatUpdate + * Lookup263: polymesh_primitives::statistics::StatUpdate **/ PolymeshPrimitivesStatisticsStatUpdate: { key2: 'PolymeshPrimitivesStatisticsStat2ndKey', value: 'Option', }, /** - * Lookup265: polymesh_primitives::statistics::Stat2ndKey + * Lookup264: polymesh_primitives::statistics::Stat2ndKey **/ PolymeshPrimitivesStatisticsStat2ndKey: { _enum: { @@ -1744,7 +1734,7 @@ export default { }, }, /** - * Lookup266: polymesh_primitives::statistics::StatClaim + * Lookup265: polymesh_primitives::statistics::StatClaim **/ PolymeshPrimitivesStatisticsStatClaim: { _enum: { @@ -1754,7 +1744,7 @@ export default { }, }, /** - * Lookup270: polymesh_primitives::transfer_compliance::TransferCondition + * Lookup269: polymesh_primitives::transfer_compliance::TransferCondition **/ PolymeshPrimitivesTransferComplianceTransferCondition: { _enum: { @@ -1767,7 +1757,7 @@ export default { }, }, /** - * Lookup271: polymesh_primitives::transfer_compliance::TransferConditionExemptKey + * Lookup270: polymesh_primitives::transfer_compliance::TransferConditionExemptKey **/ PolymeshPrimitivesTransferComplianceTransferConditionExemptKey: { asset: 'PolymeshPrimitivesStatisticsAssetScope', @@ -1775,7 +1765,7 @@ export default { claimType: 'Option', }, /** - * Lookup273: pallet_sto::RawEvent + * Lookup272: pallet_sto::RawEvent **/ PalletStoRawEvent: { _enum: { @@ -1789,7 +1779,7 @@ export default { }, }, /** - * Lookup276: pallet_sto::Fundraiser + * Lookup275: pallet_sto::Fundraiser **/ PalletStoFundraiser: { creator: 'PolymeshPrimitivesIdentityId', @@ -1805,7 +1795,7 @@ export default { minimumInvestment: 'u128', }, /** - * Lookup278: pallet_sto::FundraiserTier + * Lookup277: pallet_sto::FundraiserTier **/ PalletStoFundraiserTier: { total: 'u128', @@ -1813,13 +1803,13 @@ export default { remaining: 'u128', }, /** - * Lookup279: pallet_sto::FundraiserStatus + * Lookup278: pallet_sto::FundraiserStatus **/ PalletStoFundraiserStatus: { _enum: ['Live', 'Frozen', 'Closed', 'ClosedEarly'], }, /** - * Lookup280: pallet_treasury::RawEvent + * Lookup279: pallet_treasury::RawEvent **/ PalletTreasuryRawEvent: { _enum: { @@ -1831,7 +1821,7 @@ export default { }, }, /** - * Lookup281: pallet_utility::pallet::Event + * Lookup280: pallet_utility::pallet::Event **/ PalletUtilityEvent: { _enum: { @@ -1859,7 +1849,7 @@ export default { }, }, /** - * Lookup285: polymesh_common_utilities::traits::base::Event + * Lookup284: polymesh_common_utilities::traits::base::Event **/ PolymeshCommonUtilitiesBaseEvent: { _enum: { @@ -1867,7 +1857,7 @@ export default { }, }, /** - * Lookup287: polymesh_common_utilities::traits::external_agents::Event + * Lookup286: polymesh_common_utilities::traits::external_agents::Event **/ PolymeshCommonUtilitiesExternalAgentsEvent: { _enum: { @@ -1884,7 +1874,7 @@ export default { }, }, /** - * Lookup288: polymesh_common_utilities::traits::relayer::RawEvent + * Lookup287: polymesh_common_utilities::traits::relayer::RawEvent **/ PolymeshCommonUtilitiesRelayerRawEvent: { _enum: { @@ -1895,7 +1885,7 @@ export default { }, }, /** - * Lookup289: pallet_contracts::pallet::Event + * Lookup288: pallet_contracts::pallet::Event **/ PalletContractsEvent: { _enum: { @@ -1933,7 +1923,7 @@ export default { }, }, /** - * Lookup290: polymesh_contracts::RawEvent + * Lookup289: polymesh_contracts::RawEvent **/ PolymeshContractsRawEvent: { _enum: { @@ -1942,25 +1932,25 @@ export default { }, }, /** - * Lookup291: polymesh_contracts::Api + * Lookup290: polymesh_contracts::Api **/ PolymeshContractsApi: { desc: '[u8;4]', major: 'u32', }, /** - * Lookup292: polymesh_contracts::ChainVersion + * Lookup291: polymesh_contracts::ChainVersion **/ PolymeshContractsChainVersion: { specVersion: 'u32', txVersion: 'u32', }, /** - * Lookup293: polymesh_contracts::chain_extension::ExtrinsicId + * Lookup292: polymesh_contracts::chain_extension::ExtrinsicId **/ PolymeshContractsChainExtensionExtrinsicId: '(u8,u8)', /** - * Lookup294: pallet_preimage::pallet::Event + * Lookup293: pallet_preimage::pallet::Event **/ PalletPreimageEvent: { _enum: { @@ -1985,7 +1975,7 @@ export default { }, }, /** - * Lookup295: polymesh_common_utilities::traits::nft::Event + * Lookup294: polymesh_common_utilities::traits::nft::Event **/ PolymeshCommonUtilitiesNftEvent: { _enum: { @@ -1995,7 +1985,7 @@ export default { }, }, /** - * Lookup297: pallet_test_utils::RawEvent + * Lookup296: pallet_test_utils::RawEvent **/ PalletTestUtilsRawEvent: { _enum: { @@ -2004,7 +1994,7 @@ export default { }, }, /** - * Lookup298: frame_system::Phase + * Lookup297: frame_system::Phase **/ FrameSystemPhase: { _enum: { @@ -2014,14 +2004,14 @@ export default { }, }, /** - * Lookup301: frame_system::LastRuntimeUpgradeInfo + * Lookup300: frame_system::LastRuntimeUpgradeInfo **/ FrameSystemLastRuntimeUpgradeInfo: { specVersion: 'Compact', specName: 'Text', }, /** - * Lookup304: frame_system::pallet::Call + * Lookup303: frame_system::pallet::Call **/ FrameSystemCall: { _enum: { @@ -2056,7 +2046,7 @@ export default { }, }, /** - * Lookup308: frame_system::limits::BlockWeights + * Lookup307: frame_system::limits::BlockWeights **/ FrameSystemLimitsBlockWeights: { baseBlock: 'SpWeightsWeightV2Weight', @@ -2064,7 +2054,7 @@ export default { perClass: 'FrameSupportDispatchPerDispatchClassWeightsPerClass', }, /** - * Lookup309: frame_support::dispatch::PerDispatchClass + * Lookup308: frame_support::dispatch::PerDispatchClass **/ FrameSupportDispatchPerDispatchClassWeightsPerClass: { normal: 'FrameSystemLimitsWeightsPerClass', @@ -2072,7 +2062,7 @@ export default { mandatory: 'FrameSystemLimitsWeightsPerClass', }, /** - * Lookup310: frame_system::limits::WeightsPerClass + * Lookup309: frame_system::limits::WeightsPerClass **/ FrameSystemLimitsWeightsPerClass: { baseExtrinsic: 'SpWeightsWeightV2Weight', @@ -2081,13 +2071,13 @@ export default { reserved: 'Option', }, /** - * Lookup312: frame_system::limits::BlockLength + * Lookup311: frame_system::limits::BlockLength **/ FrameSystemLimitsBlockLength: { max: 'FrameSupportDispatchPerDispatchClassU32', }, /** - * Lookup313: frame_support::dispatch::PerDispatchClass + * Lookup312: frame_support::dispatch::PerDispatchClass **/ FrameSupportDispatchPerDispatchClassU32: { normal: 'u32', @@ -2095,14 +2085,14 @@ export default { mandatory: 'u32', }, /** - * Lookup314: sp_weights::RuntimeDbWeight + * Lookup313: sp_weights::RuntimeDbWeight **/ SpWeightsRuntimeDbWeight: { read: 'u64', write: 'u64', }, /** - * Lookup315: sp_version::RuntimeVersion + * Lookup314: sp_version::RuntimeVersion **/ SpVersionRuntimeVersion: { specName: 'Text', @@ -2115,7 +2105,7 @@ export default { stateVersion: 'u8', }, /** - * Lookup320: frame_system::pallet::Error + * Lookup319: frame_system::pallet::Error **/ FrameSystemError: { _enum: [ @@ -2128,11 +2118,11 @@ export default { ], }, /** - * Lookup323: sp_consensus_babe::app::Public + * Lookup322: sp_consensus_babe::app::Public **/ SpConsensusBabeAppPublic: 'SpCoreSr25519Public', /** - * Lookup326: sp_consensus_babe::digests::NextConfigDescriptor + * Lookup325: sp_consensus_babe::digests::NextConfigDescriptor **/ SpConsensusBabeDigestsNextConfigDescriptor: { _enum: { @@ -2144,13 +2134,13 @@ export default { }, }, /** - * Lookup328: sp_consensus_babe::AllowedSlots + * Lookup327: sp_consensus_babe::AllowedSlots **/ SpConsensusBabeAllowedSlots: { _enum: ['PrimarySlots', 'PrimaryAndSecondaryPlainSlots', 'PrimaryAndSecondaryVRFSlots'], }, /** - * Lookup332: sp_consensus_babe::digests::PreDigest + * Lookup331: sp_consensus_babe::digests::PreDigest **/ SpConsensusBabeDigestsPreDigest: { _enum: { @@ -2161,7 +2151,7 @@ export default { }, }, /** - * Lookup333: sp_consensus_babe::digests::PrimaryPreDigest + * Lookup332: sp_consensus_babe::digests::PrimaryPreDigest **/ SpConsensusBabeDigestsPrimaryPreDigest: { authorityIndex: 'u32', @@ -2170,14 +2160,14 @@ export default { vrfProof: '[u8;64]', }, /** - * Lookup334: sp_consensus_babe::digests::SecondaryPlainPreDigest + * Lookup333: sp_consensus_babe::digests::SecondaryPlainPreDigest **/ SpConsensusBabeDigestsSecondaryPlainPreDigest: { authorityIndex: 'u32', slot: 'u64', }, /** - * Lookup335: sp_consensus_babe::digests::SecondaryVRFPreDigest + * Lookup334: sp_consensus_babe::digests::SecondaryVRFPreDigest **/ SpConsensusBabeDigestsSecondaryVRFPreDigest: { authorityIndex: 'u32', @@ -2186,14 +2176,14 @@ export default { vrfProof: '[u8;64]', }, /** - * Lookup336: sp_consensus_babe::BabeEpochConfiguration + * Lookup335: sp_consensus_babe::BabeEpochConfiguration **/ SpConsensusBabeBabeEpochConfiguration: { c: '(u64,u64)', allowedSlots: 'SpConsensusBabeAllowedSlots', }, /** - * Lookup340: pallet_babe::pallet::Call + * Lookup339: pallet_babe::pallet::Call **/ PalletBabeCall: { _enum: { @@ -2211,7 +2201,7 @@ export default { }, }, /** - * Lookup341: sp_consensus_slots::EquivocationProof, sp_consensus_babe::app::Public> + * Lookup340: sp_consensus_slots::EquivocationProof, sp_consensus_babe::app::Public> **/ SpConsensusSlotsEquivocationProof: { offender: 'SpConsensusBabeAppPublic', @@ -2220,7 +2210,7 @@ export default { secondHeader: 'SpRuntimeHeader', }, /** - * Lookup342: sp_runtime::generic::header::Header + * Lookup341: sp_runtime::generic::header::Header **/ SpRuntimeHeader: { parentHash: 'H256', @@ -2230,11 +2220,11 @@ export default { digest: 'SpRuntimeDigest', }, /** - * Lookup343: sp_runtime::traits::BlakeTwo256 + * Lookup342: sp_runtime::traits::BlakeTwo256 **/ SpRuntimeBlakeTwo256: 'Null', /** - * Lookup344: sp_session::MembershipProof + * Lookup343: sp_session::MembershipProof **/ SpSessionMembershipProof: { session: 'u32', @@ -2242,7 +2232,7 @@ export default { validatorCount: 'u32', }, /** - * Lookup345: pallet_babe::pallet::Error + * Lookup344: pallet_babe::pallet::Error **/ PalletBabeError: { _enum: [ @@ -2253,7 +2243,7 @@ export default { ], }, /** - * Lookup346: pallet_timestamp::pallet::Call + * Lookup345: pallet_timestamp::pallet::Call **/ PalletTimestampCall: { _enum: { @@ -2263,7 +2253,7 @@ export default { }, }, /** - * Lookup348: pallet_indices::pallet::Call + * Lookup347: pallet_indices::pallet::Call **/ PalletIndicesCall: { _enum: { @@ -2294,13 +2284,13 @@ export default { }, }, /** - * Lookup350: pallet_indices::pallet::Error + * Lookup349: pallet_indices::pallet::Error **/ PalletIndicesError: { _enum: ['NotAssigned', 'NotOwner', 'InUse', 'NotTransfer', 'Permanent'], }, /** - * Lookup352: pallet_balances::BalanceLock + * Lookup351: pallet_balances::BalanceLock **/ PalletBalancesBalanceLock: { id: '[u8;8]', @@ -2308,13 +2298,13 @@ export default { reasons: 'PolymeshCommonUtilitiesBalancesReasons', }, /** - * Lookup353: polymesh_common_utilities::traits::balances::Reasons + * Lookup352: polymesh_common_utilities::traits::balances::Reasons **/ PolymeshCommonUtilitiesBalancesReasons: { _enum: ['Fee', 'Misc', 'All'], }, /** - * Lookup354: pallet_balances::Call + * Lookup353: pallet_balances::Call **/ PalletBalancesCall: { _enum: { @@ -2346,7 +2336,7 @@ export default { }, }, /** - * Lookup355: pallet_balances::Error + * Lookup354: pallet_balances::Error **/ PalletBalancesError: { _enum: [ @@ -2358,13 +2348,13 @@ export default { ], }, /** - * Lookup357: pallet_transaction_payment::Releases + * Lookup356: pallet_transaction_payment::Releases **/ PalletTransactionPaymentReleases: { _enum: ['V1Ancient', 'V2'], }, /** - * Lookup359: sp_weights::WeightToFeeCoefficient + * Lookup358: sp_weights::WeightToFeeCoefficient **/ SpWeightsWeightToFeeCoefficient: { coeffInteger: 'u128', @@ -2373,27 +2363,27 @@ export default { degree: 'u8', }, /** - * Lookup360: polymesh_primitives::identity::DidRecord + * Lookup359: polymesh_primitives::identity::DidRecord **/ PolymeshPrimitivesIdentityDidRecord: { primaryKey: 'Option', }, /** - * Lookup362: pallet_identity::types::Claim1stKey + * Lookup361: pallet_identity::types::Claim1stKey **/ PalletIdentityClaim1stKey: { target: 'PolymeshPrimitivesIdentityId', claimType: 'PolymeshPrimitivesIdentityClaimClaimType', }, /** - * Lookup363: pallet_identity::types::Claim2ndKey + * Lookup362: pallet_identity::types::Claim2ndKey **/ PalletIdentityClaim2ndKey: { issuer: 'PolymeshPrimitivesIdentityId', scope: 'Option', }, /** - * Lookup364: polymesh_primitives::secondary_key::KeyRecord + * Lookup363: polymesh_primitives::secondary_key::KeyRecord **/ PolymeshPrimitivesSecondaryKeyKeyRecord: { _enum: { @@ -2403,7 +2393,7 @@ export default { }, }, /** - * Lookup367: polymesh_primitives::authorization::Authorization + * Lookup366: polymesh_primitives::authorization::Authorization **/ PolymeshPrimitivesAuthorization: { authorizationData: 'PolymeshPrimitivesAuthorizationAuthorizationData', @@ -2413,7 +2403,7 @@ export default { count: 'u32', }, /** - * Lookup370: pallet_identity::Call + * Lookup369: pallet_identity::Call **/ PalletIdentityCall: { _enum: { @@ -2505,21 +2495,21 @@ export default { }, }, /** - * Lookup372: polymesh_common_utilities::traits::identity::SecondaryKeyWithAuth + * Lookup371: polymesh_common_utilities::traits::identity::SecondaryKeyWithAuth **/ PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuth: { secondaryKey: 'PolymeshPrimitivesSecondaryKey', authSignature: 'H512', }, /** - * Lookup375: polymesh_common_utilities::traits::identity::CreateChildIdentityWithAuth + * Lookup374: polymesh_common_utilities::traits::identity::CreateChildIdentityWithAuth **/ PolymeshCommonUtilitiesIdentityCreateChildIdentityWithAuth: { key: 'AccountId32', authSignature: 'H512', }, /** - * Lookup376: pallet_identity::Error + * Lookup375: pallet_identity::Error **/ PalletIdentityError: { _enum: [ @@ -2559,7 +2549,7 @@ export default { ], }, /** - * Lookup378: polymesh_common_utilities::traits::group::InactiveMember + * Lookup377: polymesh_common_utilities::traits::group::InactiveMember **/ PolymeshCommonUtilitiesGroupInactiveMember: { id: 'PolymeshPrimitivesIdentityId', @@ -2567,7 +2557,7 @@ export default { expiry: 'Option', }, /** - * Lookup379: pallet_group::Call + * Lookup378: pallet_group::Call **/ PalletGroupCall: { _enum: { @@ -2596,7 +2586,7 @@ export default { }, }, /** - * Lookup380: pallet_group::Error + * Lookup379: pallet_group::Error **/ PalletGroupError: { _enum: [ @@ -2610,7 +2600,7 @@ export default { ], }, /** - * Lookup382: pallet_committee::Call + * Lookup381: pallet_committee::Call **/ PalletCommitteeCall: { _enum: { @@ -2636,7 +2626,7 @@ export default { }, }, /** - * Lookup388: pallet_multisig::Call + * Lookup387: pallet_multisig::Call **/ PalletMultisigCall: { _enum: { @@ -2730,7 +2720,7 @@ export default { }, }, /** - * Lookup389: pallet_bridge::Call + * Lookup388: pallet_bridge::Call **/ PalletBridgeCall: { _enum: { @@ -2785,7 +2775,7 @@ export default { }, }, /** - * Lookup393: pallet_staking::Call + * Lookup392: pallet_staking::Call **/ PalletStakingCall: { _enum: { @@ -2911,7 +2901,7 @@ export default { }, }, /** - * Lookup394: pallet_staking::RewardDestination + * Lookup393: pallet_staking::RewardDestination **/ PalletStakingRewardDestination: { _enum: { @@ -2922,14 +2912,14 @@ export default { }, }, /** - * Lookup395: pallet_staking::ValidatorPrefs + * Lookup394: pallet_staking::ValidatorPrefs **/ PalletStakingValidatorPrefs: { commission: 'Compact', blocked: 'bool', }, /** - * Lookup401: pallet_staking::CompactAssignments + * Lookup400: pallet_staking::CompactAssignments **/ PalletStakingCompactAssignments: { votes1: 'Vec<(Compact,Compact)>', @@ -2950,7 +2940,7 @@ export default { votes16: 'Vec<(Compact,[(Compact,Compact);15],Compact)>', }, /** - * Lookup452: sp_npos_elections::ElectionScore + * Lookup451: sp_npos_elections::ElectionScore **/ SpNposElectionsElectionScore: { minimalStake: 'u128', @@ -2958,14 +2948,14 @@ export default { sumStakeSquared: 'u128', }, /** - * Lookup453: pallet_staking::ElectionSize + * Lookup452: pallet_staking::ElectionSize **/ PalletStakingElectionSize: { validators: 'Compact', nominators: 'Compact', }, /** - * Lookup454: pallet_session::pallet::Call + * Lookup453: pallet_session::pallet::Call **/ PalletSessionCall: { _enum: { @@ -2973,27 +2963,27 @@ export default { _alias: { keys_: 'keys', }, - keys_: 'PolymeshRuntimeDevelopRuntimeSessionKeys', + keys_: 'PolymeshRuntimeTestnetRuntimeSessionKeys', proof: 'Bytes', }, purge_keys: 'Null', }, }, /** - * Lookup455: polymesh_runtime_develop::runtime::SessionKeys + * Lookup454: polymesh_runtime_testnet::runtime::SessionKeys **/ - PolymeshRuntimeDevelopRuntimeSessionKeys: { + PolymeshRuntimeTestnetRuntimeSessionKeys: { grandpa: 'SpConsensusGrandpaAppPublic', babe: 'SpConsensusBabeAppPublic', imOnline: 'PalletImOnlineSr25519AppSr25519Public', authorityDiscovery: 'SpAuthorityDiscoveryAppPublic', }, /** - * Lookup456: sp_authority_discovery::app::Public + * Lookup455: sp_authority_discovery::app::Public **/ SpAuthorityDiscoveryAppPublic: 'SpCoreSr25519Public', /** - * Lookup457: pallet_grandpa::pallet::Call + * Lookup456: pallet_grandpa::pallet::Call **/ PalletGrandpaCall: { _enum: { @@ -3012,14 +3002,14 @@ export default { }, }, /** - * Lookup458: sp_consensus_grandpa::EquivocationProof + * Lookup457: sp_consensus_grandpa::EquivocationProof **/ SpConsensusGrandpaEquivocationProof: { setId: 'u64', equivocation: 'SpConsensusGrandpaEquivocation', }, /** - * Lookup459: sp_consensus_grandpa::Equivocation + * Lookup458: sp_consensus_grandpa::Equivocation **/ SpConsensusGrandpaEquivocation: { _enum: { @@ -3028,7 +3018,7 @@ export default { }, }, /** - * Lookup460: finality_grandpa::Equivocation, sp_consensus_grandpa::app::Signature> + * Lookup459: finality_grandpa::Equivocation, sp_consensus_grandpa::app::Signature> **/ FinalityGrandpaEquivocationPrevote: { roundNumber: 'u64', @@ -3037,22 +3027,22 @@ export default { second: '(FinalityGrandpaPrevote,SpConsensusGrandpaAppSignature)', }, /** - * Lookup461: finality_grandpa::Prevote + * Lookup460: finality_grandpa::Prevote **/ FinalityGrandpaPrevote: { targetHash: 'H256', targetNumber: 'u32', }, /** - * Lookup462: sp_consensus_grandpa::app::Signature + * Lookup461: sp_consensus_grandpa::app::Signature **/ SpConsensusGrandpaAppSignature: 'SpCoreEd25519Signature', /** - * Lookup463: sp_core::ed25519::Signature + * Lookup462: sp_core::ed25519::Signature **/ SpCoreEd25519Signature: '[u8;64]', /** - * Lookup465: finality_grandpa::Equivocation, sp_consensus_grandpa::app::Signature> + * Lookup464: finality_grandpa::Equivocation, sp_consensus_grandpa::app::Signature> **/ FinalityGrandpaEquivocationPrecommit: { roundNumber: 'u64', @@ -3061,14 +3051,14 @@ export default { second: '(FinalityGrandpaPrecommit,SpConsensusGrandpaAppSignature)', }, /** - * Lookup466: finality_grandpa::Precommit + * Lookup465: finality_grandpa::Precommit **/ FinalityGrandpaPrecommit: { targetHash: 'H256', targetNumber: 'u32', }, /** - * Lookup468: pallet_im_online::pallet::Call + * Lookup467: pallet_im_online::pallet::Call **/ PalletImOnlineCall: { _enum: { @@ -3079,7 +3069,7 @@ export default { }, }, /** - * Lookup469: pallet_im_online::Heartbeat + * Lookup468: pallet_im_online::Heartbeat **/ PalletImOnlineHeartbeat: { blockNumber: 'u32', @@ -3089,46 +3079,22 @@ export default { validatorsLen: 'u32', }, /** - * Lookup470: sp_core::offchain::OpaqueNetworkState + * Lookup469: sp_core::offchain::OpaqueNetworkState **/ SpCoreOffchainOpaqueNetworkState: { peerId: 'OpaquePeerId', externalAddresses: 'Vec', }, /** - * Lookup474: pallet_im_online::sr25519::app_sr25519::Signature + * Lookup473: pallet_im_online::sr25519::app_sr25519::Signature **/ PalletImOnlineSr25519AppSr25519Signature: 'SpCoreSr25519Signature', /** - * Lookup475: sp_core::sr25519::Signature + * Lookup474: sp_core::sr25519::Signature **/ SpCoreSr25519Signature: '[u8;64]', /** - * Lookup476: pallet_sudo::Call - **/ - PalletSudoCall: { - _enum: { - sudo: { - call: 'Call', - }, - sudo_unchecked_weight: { - call: 'Call', - weight: 'SpWeightsWeightV2Weight', - }, - set_key: { - _alias: { - new_: 'new', - }, - new_: 'MultiAddress', - }, - sudo_as: { - who: 'MultiAddress', - call: 'Call', - }, - }, - }, - /** - * Lookup477: pallet_asset::Call + * Lookup475: pallet_asset::Call **/ PalletAssetCall: { _enum: { @@ -3262,7 +3228,7 @@ export default { }, }, /** - * Lookup479: pallet_corporate_actions::distribution::Call + * Lookup477: pallet_corporate_actions::distribution::Call **/ PalletCorporateActionsDistributionCall: { _enum: { @@ -3291,7 +3257,7 @@ export default { }, }, /** - * Lookup481: pallet_asset::checkpoint::Call + * Lookup479: pallet_asset::checkpoint::Call **/ PalletAssetCheckpointCall: { _enum: { @@ -3312,7 +3278,7 @@ export default { }, }, /** - * Lookup482: pallet_compliance_manager::Call + * Lookup480: pallet_compliance_manager::Call **/ PalletComplianceManagerCall: { _enum: { @@ -3353,7 +3319,7 @@ export default { }, }, /** - * Lookup483: pallet_corporate_actions::Call + * Lookup481: pallet_corporate_actions::Call **/ PalletCorporateActionsCall: { _enum: { @@ -3406,7 +3372,7 @@ export default { }, }, /** - * Lookup485: pallet_corporate_actions::RecordDateSpec + * Lookup483: pallet_corporate_actions::RecordDateSpec **/ PalletCorporateActionsRecordDateSpec: { _enum: { @@ -3416,7 +3382,7 @@ export default { }, }, /** - * Lookup488: pallet_corporate_actions::InitiateCorporateActionArgs + * Lookup486: pallet_corporate_actions::InitiateCorporateActionArgs **/ PalletCorporateActionsInitiateCorporateActionArgs: { ticker: 'PolymeshPrimitivesTicker', @@ -3429,7 +3395,7 @@ export default { withholdingTax: 'Option>', }, /** - * Lookup489: pallet_corporate_actions::ballot::Call + * Lookup487: pallet_corporate_actions::ballot::Call **/ PalletCorporateActionsBallotCall: { _enum: { @@ -3461,7 +3427,7 @@ export default { }, }, /** - * Lookup490: pallet_pips::Call + * Lookup488: pallet_pips::Call **/ PalletPipsCall: { _enum: { @@ -3522,13 +3488,13 @@ export default { }, }, /** - * Lookup493: pallet_pips::SnapshotResult + * Lookup491: pallet_pips::SnapshotResult **/ PalletPipsSnapshotResult: { _enum: ['Approve', 'Reject', 'Skip'], }, /** - * Lookup494: pallet_portfolio::Call + * Lookup492: pallet_portfolio::Call **/ PalletPortfolioCall: { _enum: { @@ -3574,14 +3540,14 @@ export default { }, }, /** - * Lookup496: polymesh_primitives::portfolio::Fund + * Lookup494: polymesh_primitives::portfolio::Fund **/ PolymeshPrimitivesPortfolioFund: { description: 'PolymeshPrimitivesPortfolioFundDescription', memo: 'Option', }, /** - * Lookup497: pallet_protocol_fee::Call + * Lookup495: pallet_protocol_fee::Call **/ PalletProtocolFeeCall: { _enum: { @@ -3595,7 +3561,7 @@ export default { }, }, /** - * Lookup498: polymesh_common_utilities::protocol_fee::ProtocolOp + * Lookup496: polymesh_common_utilities::protocol_fee::ProtocolOp **/ PolymeshCommonUtilitiesProtocolFeeProtocolOp: { _enum: [ @@ -3618,7 +3584,7 @@ export default { ], }, /** - * Lookup499: pallet_scheduler::pallet::Call + * Lookup497: pallet_scheduler::pallet::Call **/ PalletSchedulerCall: { _enum: { @@ -3658,7 +3624,7 @@ export default { }, }, /** - * Lookup501: pallet_settlement::Call + * Lookup499: pallet_settlement::Call **/ PalletSettlementCall: { _enum: { @@ -3762,7 +3728,7 @@ export default { }, }, /** - * Lookup503: polymesh_primitives::settlement::ReceiptDetails + * Lookup501: polymesh_primitives::settlement::ReceiptDetails **/ PolymeshPrimitivesSettlementReceiptDetails: { uid: 'u64', @@ -3773,7 +3739,7 @@ export default { metadata: 'Option', }, /** - * Lookup504: sp_runtime::MultiSignature + * Lookup502: sp_runtime::MultiSignature **/ SpRuntimeMultiSignature: { _enum: { @@ -3783,11 +3749,11 @@ export default { }, }, /** - * Lookup505: sp_core::ecdsa::Signature + * Lookup503: sp_core::ecdsa::Signature **/ SpCoreEcdsaSignature: '[u8;65]', /** - * Lookup508: polymesh_primitives::settlement::AffirmationCount + * Lookup506: polymesh_primitives::settlement::AffirmationCount **/ PolymeshPrimitivesSettlementAffirmationCount: { senderAssetCount: 'PolymeshPrimitivesSettlementAssetCount', @@ -3795,7 +3761,7 @@ export default { offchainCount: 'u32', }, /** - * Lookup509: polymesh_primitives::settlement::AssetCount + * Lookup507: polymesh_primitives::settlement::AssetCount **/ PolymeshPrimitivesSettlementAssetCount: { fungible: 'u32', @@ -3803,7 +3769,7 @@ export default { offChain: 'u32', }, /** - * Lookup511: pallet_statistics::Call + * Lookup509: pallet_statistics::Call **/ PalletStatisticsCall: { _enum: { @@ -3828,7 +3794,7 @@ export default { }, }, /** - * Lookup516: pallet_sto::Call + * Lookup514: pallet_sto::Call **/ PalletStoCall: { _enum: { @@ -3874,14 +3840,14 @@ export default { }, }, /** - * Lookup518: pallet_sto::PriceTier + * Lookup516: pallet_sto::PriceTier **/ PalletStoPriceTier: { total: 'u128', price: 'u128', }, /** - * Lookup520: pallet_treasury::Call + * Lookup518: pallet_treasury::Call **/ PalletTreasuryCall: { _enum: { @@ -3894,14 +3860,14 @@ export default { }, }, /** - * Lookup522: polymesh_primitives::Beneficiary + * Lookup520: polymesh_primitives::Beneficiary **/ PolymeshPrimitivesBeneficiary: { id: 'PolymeshPrimitivesIdentityId', amount: 'u128', }, /** - * Lookup523: pallet_utility::pallet::Call + * Lookup521: pallet_utility::pallet::Call **/ PalletUtilityCall: { _enum: { @@ -3917,7 +3883,7 @@ export default { calls: 'Vec', }, dispatch_as: { - asOrigin: 'PolymeshRuntimeDevelopRuntimeOriginCaller', + asOrigin: 'PolymeshRuntimeTestnetRuntimeOriginCaller', call: 'Call', }, force_batch: { @@ -3936,19 +3902,23 @@ export default { batch_optimistic: { calls: 'Vec', }, + as_derivative: { + index: 'u16', + call: 'Call', + }, }, }, /** - * Lookup525: pallet_utility::UniqueCall + * Lookup523: pallet_utility::UniqueCall **/ PalletUtilityUniqueCall: { nonce: 'u64', call: 'Call', }, /** - * Lookup526: polymesh_runtime_develop::runtime::OriginCaller + * Lookup524: polymesh_runtime_testnet::runtime::OriginCaller **/ - PolymeshRuntimeDevelopRuntimeOriginCaller: { + PolymeshRuntimeTestnetRuntimeOriginCaller: { _enum: { system: 'FrameSupportDispatchRawOrigin', __Unused1: 'Null', @@ -3967,7 +3937,7 @@ export default { }, }, /** - * Lookup527: frame_support::dispatch::RawOrigin + * Lookup525: frame_support::dispatch::RawOrigin **/ FrameSupportDispatchRawOrigin: { _enum: { @@ -3977,33 +3947,33 @@ export default { }, }, /** - * Lookup528: pallet_committee::RawOrigin + * Lookup526: pallet_committee::RawOrigin **/ PalletCommitteeRawOriginInstance1: { _enum: ['Endorsed'], }, /** - * Lookup529: pallet_committee::RawOrigin + * Lookup527: pallet_committee::RawOrigin **/ PalletCommitteeRawOriginInstance3: { _enum: ['Endorsed'], }, /** - * Lookup530: pallet_committee::RawOrigin + * Lookup528: pallet_committee::RawOrigin **/ PalletCommitteeRawOriginInstance4: { _enum: ['Endorsed'], }, /** - * Lookup531: sp_core::Void + * Lookup529: sp_core::Void **/ SpCoreVoid: 'Null', /** - * Lookup532: pallet_base::Call + * Lookup530: pallet_base::Call **/ PalletBaseCall: 'Null', /** - * Lookup533: pallet_external_agents::Call + * Lookup531: pallet_external_agents::Call **/ PalletExternalAgentsCall: { _enum: { @@ -4045,7 +4015,7 @@ export default { }, }, /** - * Lookup534: pallet_relayer::Call + * Lookup532: pallet_relayer::Call **/ PalletRelayerCall: { _enum: { @@ -4075,7 +4045,7 @@ export default { }, }, /** - * Lookup535: pallet_contracts::pallet::Call + * Lookup533: pallet_contracts::pallet::Call **/ PalletContractsCall: { _enum: { @@ -4140,13 +4110,13 @@ export default { }, }, /** - * Lookup539: pallet_contracts::wasm::Determinism + * Lookup537: pallet_contracts::wasm::Determinism **/ PalletContractsWasmDeterminism: { _enum: ['Deterministic', 'AllowIndeterminism'], }, /** - * Lookup540: polymesh_contracts::Call + * Lookup538: polymesh_contracts::Call **/ PolymeshContractsCall: { _enum: { @@ -4194,14 +4164,14 @@ export default { }, }, /** - * Lookup543: polymesh_contracts::NextUpgrade + * Lookup541: polymesh_contracts::NextUpgrade **/ PolymeshContractsNextUpgrade: { chainVersion: 'PolymeshContractsChainVersion', apiHash: 'PolymeshContractsApiCodeHash', }, /** - * Lookup544: polymesh_contracts::ApiCodeHash + * Lookup542: polymesh_contracts::ApiCodeHash **/ PolymeshContractsApiCodeHash: { _alias: { @@ -4210,7 +4180,7 @@ export default { hash_: 'H256', }, /** - * Lookup545: pallet_preimage::pallet::Call + * Lookup543: pallet_preimage::pallet::Call **/ PalletPreimageCall: { _enum: { @@ -4238,7 +4208,7 @@ export default { }, }, /** - * Lookup546: pallet_nft::Call + * Lookup544: pallet_nft::Call **/ PalletNftCall: { _enum: { @@ -4266,18 +4236,18 @@ export default { }, }, /** - * Lookup548: polymesh_primitives::nft::NFTCollectionKeys + * Lookup546: polymesh_primitives::nft::NFTCollectionKeys **/ PolymeshPrimitivesNftNftCollectionKeys: 'Vec', /** - * Lookup551: polymesh_primitives::nft::NFTMetadataAttribute + * Lookup549: polymesh_primitives::nft::NFTMetadataAttribute **/ PolymeshPrimitivesNftNftMetadataAttribute: { key: 'PolymeshPrimitivesAssetMetadataAssetMetadataKey', value: 'Bytes', }, /** - * Lookup552: pallet_test_utils::Call + * Lookup550: pallet_test_utils::Call **/ PalletTestUtilsCall: { _enum: { @@ -4294,7 +4264,7 @@ export default { }, }, /** - * Lookup553: pallet_committee::PolymeshVotes + * Lookup551: pallet_committee::PolymeshVotes **/ PalletCommitteePolymeshVotes: { index: 'u32', @@ -4303,7 +4273,7 @@ export default { expiry: 'PolymeshCommonUtilitiesMaybeBlock', }, /** - * Lookup555: pallet_committee::Error + * Lookup553: pallet_committee::Error **/ PalletCommitteeError: { _enum: [ @@ -4319,7 +4289,7 @@ export default { ], }, /** - * Lookup565: polymesh_primitives::multisig::ProposalDetails + * Lookup563: polymesh_primitives::multisig::ProposalDetails **/ PolymeshPrimitivesMultisigProposalDetails: { approvals: 'u64', @@ -4329,13 +4299,13 @@ export default { autoClose: 'bool', }, /** - * Lookup566: polymesh_primitives::multisig::ProposalStatus + * Lookup564: polymesh_primitives::multisig::ProposalStatus **/ PolymeshPrimitivesMultisigProposalStatus: { _enum: ['Invalid', 'ActiveOrExpired', 'ExecutionSuccessful', 'ExecutionFailed', 'Rejected'], }, /** - * Lookup568: pallet_multisig::Error + * Lookup566: pallet_multisig::Error **/ PalletMultisigError: { _enum: [ @@ -4368,7 +4338,7 @@ export default { ], }, /** - * Lookup570: pallet_bridge::BridgeTxDetail + * Lookup568: pallet_bridge::BridgeTxDetail **/ PalletBridgeBridgeTxDetail: { amount: 'u128', @@ -4377,7 +4347,7 @@ export default { txHash: 'H256', }, /** - * Lookup571: pallet_bridge::BridgeTxStatus + * Lookup569: pallet_bridge::BridgeTxStatus **/ PalletBridgeBridgeTxStatus: { _enum: { @@ -4389,7 +4359,7 @@ export default { }, }, /** - * Lookup574: pallet_bridge::Error + * Lookup572: pallet_bridge::Error **/ PalletBridgeError: { _enum: [ @@ -4409,7 +4379,7 @@ export default { ], }, /** - * Lookup575: pallet_staking::StakingLedger + * Lookup573: pallet_staking::StakingLedger **/ PalletStakingStakingLedger: { stash: 'AccountId32', @@ -4419,14 +4389,14 @@ export default { claimedRewards: 'Vec', }, /** - * Lookup577: pallet_staking::UnlockChunk + * Lookup575: pallet_staking::UnlockChunk **/ PalletStakingUnlockChunk: { value: 'Compact', era: 'Compact', }, /** - * Lookup578: pallet_staking::Nominations + * Lookup576: pallet_staking::Nominations **/ PalletStakingNominations: { targets: 'Vec', @@ -4434,27 +4404,27 @@ export default { suppressed: 'bool', }, /** - * Lookup579: pallet_staking::ActiveEraInfo + * Lookup577: pallet_staking::ActiveEraInfo **/ PalletStakingActiveEraInfo: { index: 'u32', start: 'Option', }, /** - * Lookup581: pallet_staking::EraRewardPoints + * Lookup579: pallet_staking::EraRewardPoints **/ PalletStakingEraRewardPoints: { total: 'u32', individual: 'BTreeMap', }, /** - * Lookup584: pallet_staking::Forcing + * Lookup582: pallet_staking::Forcing **/ PalletStakingForcing: { _enum: ['NotForcing', 'ForceNew', 'ForceNone', 'ForceAlways'], }, /** - * Lookup586: pallet_staking::UnappliedSlash + * Lookup584: pallet_staking::UnappliedSlash **/ PalletStakingUnappliedSlash: { validator: 'AccountId32', @@ -4464,7 +4434,7 @@ export default { payout: 'u128', }, /** - * Lookup590: pallet_staking::slashing::SlashingSpans + * Lookup588: pallet_staking::slashing::SlashingSpans **/ PalletStakingSlashingSlashingSpans: { spanIndex: 'u32', @@ -4473,14 +4443,14 @@ export default { prior: 'Vec', }, /** - * Lookup591: pallet_staking::slashing::SpanRecord + * Lookup589: pallet_staking::slashing::SpanRecord **/ PalletStakingSlashingSpanRecord: { slashed: 'u128', paidOut: 'u128', }, /** - * Lookup594: pallet_staking::ElectionResult + * Lookup592: pallet_staking::ElectionResult **/ PalletStakingElectionResult: { electedStashes: 'Vec', @@ -4488,7 +4458,7 @@ export default { compute: 'PalletStakingElectionCompute', }, /** - * Lookup595: pallet_staking::ElectionStatus + * Lookup593: pallet_staking::ElectionStatus **/ PalletStakingElectionStatus: { _enum: { @@ -4497,20 +4467,20 @@ export default { }, }, /** - * Lookup596: pallet_staking::PermissionedIdentityPrefs + * Lookup594: pallet_staking::PermissionedIdentityPrefs **/ PalletStakingPermissionedIdentityPrefs: { intendedCount: 'u32', runningCount: 'u32', }, /** - * Lookup597: pallet_staking::Releases + * Lookup595: pallet_staking::Releases **/ PalletStakingReleases: { _enum: ['V1_0_0Ancient', 'V2_0_0', 'V3_0_0', 'V4_0_0', 'V5_0_0', 'V6_0_0', 'V6_0_1', 'V7_0_0'], }, /** - * Lookup599: pallet_staking::Error + * Lookup597: pallet_staking::Error **/ PalletStakingError: { _enum: [ @@ -4560,24 +4530,24 @@ export default { ], }, /** - * Lookup600: sp_staking::offence::OffenceDetails + * Lookup598: sp_staking::offence::OffenceDetails **/ SpStakingOffenceOffenceDetails: { offender: '(AccountId32,PalletStakingExposure)', reporters: 'Vec', }, /** - * Lookup605: sp_core::crypto::KeyTypeId + * Lookup603: sp_core::crypto::KeyTypeId **/ SpCoreCryptoKeyTypeId: '[u8;4]', /** - * Lookup606: pallet_session::pallet::Error + * Lookup604: pallet_session::pallet::Error **/ PalletSessionError: { _enum: ['InvalidProof', 'NoAssociatedValidatorId', 'DuplicatedKey', 'NoKeys', 'NoAccount'], }, /** - * Lookup607: pallet_grandpa::StoredState + * Lookup605: pallet_grandpa::StoredState **/ PalletGrandpaStoredState: { _enum: { @@ -4594,7 +4564,7 @@ export default { }, }, /** - * Lookup608: pallet_grandpa::StoredPendingChange + * Lookup606: pallet_grandpa::StoredPendingChange **/ PalletGrandpaStoredPendingChange: { scheduledAt: 'u32', @@ -4603,7 +4573,7 @@ export default { forced: 'Option', }, /** - * Lookup610: pallet_grandpa::pallet::Error + * Lookup608: pallet_grandpa::pallet::Error **/ PalletGrandpaError: { _enum: [ @@ -4617,40 +4587,34 @@ export default { ], }, /** - * Lookup614: pallet_im_online::BoundedOpaqueNetworkState + * Lookup612: pallet_im_online::BoundedOpaqueNetworkState **/ PalletImOnlineBoundedOpaqueNetworkState: { peerId: 'Bytes', externalAddresses: 'Vec', }, /** - * Lookup618: pallet_im_online::pallet::Error + * Lookup616: pallet_im_online::pallet::Error **/ PalletImOnlineError: { _enum: ['InvalidKey', 'DuplicatedHeartbeat'], }, /** - * Lookup620: pallet_sudo::Error - **/ - PalletSudoError: { - _enum: ['RequireSudo'], - }, - /** - * Lookup621: pallet_asset::TickerRegistration + * Lookup618: pallet_asset::TickerRegistration **/ PalletAssetTickerRegistration: { owner: 'PolymeshPrimitivesIdentityId', expiry: 'Option', }, /** - * Lookup622: pallet_asset::TickerRegistrationConfig + * Lookup619: pallet_asset::TickerRegistrationConfig **/ PalletAssetTickerRegistrationConfig: { maxTickerLength: 'u8', registrationLength: 'Option', }, /** - * Lookup623: pallet_asset::SecurityToken + * Lookup620: pallet_asset::SecurityToken **/ PalletAssetSecurityToken: { totalSupply: 'u128', @@ -4659,13 +4623,13 @@ export default { assetType: 'PolymeshPrimitivesAssetAssetType', }, /** - * Lookup627: pallet_asset::AssetOwnershipRelation + * Lookup624: pallet_asset::AssetOwnershipRelation **/ PalletAssetAssetOwnershipRelation: { _enum: ['NotOwned', 'TickerOwned', 'AssetOwned'], }, /** - * Lookup633: pallet_asset::Error + * Lookup630: pallet_asset::Error **/ PalletAssetError: { _enum: [ @@ -4706,10 +4670,12 @@ export default { 'IncompatibleAssetTypeUpdate', 'AssetMetadataKeyBelongsToNFTCollection', 'AssetMetadataValueIsEmpty', + 'NumberOfAssetMediatorsExceeded', + 'InvalidTickerCharacter', ], }, /** - * Lookup636: pallet_corporate_actions::distribution::Error + * Lookup633: pallet_corporate_actions::distribution::Error **/ PalletCorporateActionsDistributionError: { _enum: [ @@ -4731,7 +4697,7 @@ export default { ], }, /** - * Lookup640: polymesh_common_utilities::traits::checkpoint::NextCheckpoints + * Lookup637: polymesh_common_utilities::traits::checkpoint::NextCheckpoints **/ PolymeshCommonUtilitiesCheckpointNextCheckpoints: { nextAt: 'u64', @@ -4739,7 +4705,7 @@ export default { schedules: 'BTreeMap', }, /** - * Lookup646: pallet_asset::checkpoint::Error + * Lookup643: pallet_asset::checkpoint::Error **/ PalletAssetCheckpointError: { _enum: [ @@ -4752,14 +4718,14 @@ export default { ], }, /** - * Lookup647: polymesh_primitives::compliance_manager::AssetCompliance + * Lookup644: polymesh_primitives::compliance_manager::AssetCompliance **/ PolymeshPrimitivesComplianceManagerAssetCompliance: { paused: 'bool', requirements: 'Vec', }, /** - * Lookup649: pallet_compliance_manager::Error + * Lookup646: pallet_compliance_manager::Error **/ PalletComplianceManagerError: { _enum: [ @@ -4773,7 +4739,7 @@ export default { ], }, /** - * Lookup652: pallet_corporate_actions::Error + * Lookup649: pallet_corporate_actions::Error **/ PalletCorporateActionsError: { _enum: [ @@ -4791,7 +4757,7 @@ export default { ], }, /** - * Lookup654: pallet_corporate_actions::ballot::Error + * Lookup651: pallet_corporate_actions::ballot::Error **/ PalletCorporateActionsBallotError: { _enum: [ @@ -4812,13 +4778,13 @@ export default { ], }, /** - * Lookup655: pallet_permissions::Error + * Lookup652: pallet_permissions::Error **/ PalletPermissionsError: { _enum: ['UnauthorizedCaller'], }, /** - * Lookup656: pallet_pips::PipsMetadata + * Lookup653: pallet_pips::PipsMetadata **/ PalletPipsPipsMetadata: { id: 'u32', @@ -4829,14 +4795,14 @@ export default { expiry: 'PolymeshCommonUtilitiesMaybeBlock', }, /** - * Lookup658: pallet_pips::DepositInfo + * Lookup655: pallet_pips::DepositInfo **/ PalletPipsDepositInfo: { owner: 'AccountId32', amount: 'u128', }, /** - * Lookup659: pallet_pips::Pip + * Lookup656: pallet_pips::Pip **/ PalletPipsPip: { id: 'u32', @@ -4844,7 +4810,7 @@ export default { proposer: 'PalletPipsProposer', }, /** - * Lookup660: pallet_pips::VotingResult + * Lookup657: pallet_pips::VotingResult **/ PalletPipsVotingResult: { ayesCount: 'u32', @@ -4853,11 +4819,11 @@ export default { naysStake: 'u128', }, /** - * Lookup661: pallet_pips::Vote + * Lookup658: pallet_pips::Vote **/ PalletPipsVote: '(bool,u128)', /** - * Lookup662: pallet_pips::SnapshotMetadata + * Lookup659: pallet_pips::SnapshotMetadata **/ PalletPipsSnapshotMetadata: { createdAt: 'u32', @@ -4865,7 +4831,7 @@ export default { id: 'u32', }, /** - * Lookup664: pallet_pips::Error + * Lookup661: pallet_pips::Error **/ PalletPipsError: { _enum: [ @@ -4890,7 +4856,7 @@ export default { ], }, /** - * Lookup673: pallet_portfolio::Error + * Lookup670: pallet_portfolio::Error **/ PalletPortfolioError: { _enum: [ @@ -4914,23 +4880,23 @@ export default { ], }, /** - * Lookup674: pallet_protocol_fee::Error + * Lookup671: pallet_protocol_fee::Error **/ PalletProtocolFeeError: { _enum: ['InsufficientAccountBalance', 'UnHandledImbalances', 'InsufficientSubsidyBalance'], }, /** - * Lookup677: pallet_scheduler::Scheduled, BlockNumber, polymesh_runtime_develop::runtime::OriginCaller, sp_core::crypto::AccountId32> + * Lookup674: pallet_scheduler::Scheduled, BlockNumber, polymesh_runtime_testnet::runtime::OriginCaller, sp_core::crypto::AccountId32> **/ PalletSchedulerScheduled: { maybeId: 'Option<[u8;32]>', priority: 'u8', call: 'FrameSupportPreimagesBounded', maybePeriodic: 'Option<(u32,u32)>', - origin: 'PolymeshRuntimeDevelopRuntimeOriginCaller', + origin: 'PolymeshRuntimeTestnetRuntimeOriginCaller', }, /** - * Lookup678: frame_support::traits::preimages::Bounded + * Lookup675: frame_support::traits::preimages::Bounded **/ FrameSupportPreimagesBounded: { _enum: { @@ -4951,7 +4917,7 @@ export default { }, }, /** - * Lookup681: pallet_scheduler::pallet::Error + * Lookup678: pallet_scheduler::pallet::Error **/ PalletSchedulerError: { _enum: [ @@ -4963,14 +4929,14 @@ export default { ], }, /** - * Lookup682: polymesh_primitives::settlement::Venue + * Lookup679: polymesh_primitives::settlement::Venue **/ PolymeshPrimitivesSettlementVenue: { creator: 'PolymeshPrimitivesIdentityId', venueType: 'PolymeshPrimitivesSettlementVenueType', }, /** - * Lookup686: polymesh_primitives::settlement::Instruction + * Lookup683: polymesh_primitives::settlement::Instruction **/ PolymeshPrimitivesSettlementInstruction: { instructionId: 'u64', @@ -4981,7 +4947,7 @@ export default { valueDate: 'Option', }, /** - * Lookup688: polymesh_primitives::settlement::LegStatus + * Lookup685: polymesh_primitives::settlement::LegStatus **/ PolymeshPrimitivesSettlementLegStatus: { _enum: { @@ -4991,13 +4957,13 @@ export default { }, }, /** - * Lookup690: polymesh_primitives::settlement::AffirmationStatus + * Lookup687: polymesh_primitives::settlement::AffirmationStatus **/ PolymeshPrimitivesSettlementAffirmationStatus: { _enum: ['Unknown', 'Pending', 'Affirmed'], }, /** - * Lookup694: polymesh_primitives::settlement::InstructionStatus + * Lookup691: polymesh_primitives::settlement::InstructionStatus **/ PolymeshPrimitivesSettlementInstructionStatus: { _enum: { @@ -5009,7 +4975,7 @@ export default { }, }, /** - * Lookup695: pallet_settlement::Error + * Lookup692: pallet_settlement::Error **/ PalletSettlementError: { _enum: [ @@ -5056,21 +5022,21 @@ export default { ], }, /** - * Lookup698: polymesh_primitives::statistics::Stat1stKey + * Lookup695: polymesh_primitives::statistics::Stat1stKey **/ PolymeshPrimitivesStatisticsStat1stKey: { asset: 'PolymeshPrimitivesStatisticsAssetScope', statType: 'PolymeshPrimitivesStatisticsStatType', }, /** - * Lookup699: polymesh_primitives::transfer_compliance::AssetTransferCompliance + * Lookup696: polymesh_primitives::transfer_compliance::AssetTransferCompliance **/ PolymeshPrimitivesTransferComplianceAssetTransferCompliance: { paused: 'bool', requirements: 'BTreeSet', }, /** - * Lookup703: pallet_statistics::Error + * Lookup700: pallet_statistics::Error **/ PalletStatisticsError: { _enum: [ @@ -5084,7 +5050,7 @@ export default { ], }, /** - * Lookup705: pallet_sto::Error + * Lookup702: pallet_sto::Error **/ PalletStoError: { _enum: [ @@ -5103,25 +5069,31 @@ export default { ], }, /** - * Lookup706: pallet_treasury::Error + * Lookup703: pallet_treasury::Error **/ PalletTreasuryError: { _enum: ['InsufficientBalance', 'InvalidIdentity'], }, /** - * Lookup707: pallet_utility::pallet::Error + * Lookup704: pallet_utility::pallet::Error **/ PalletUtilityError: { - _enum: ['TooManyCalls', 'InvalidSignature', 'TargetCddMissing', 'InvalidNonce'], + _enum: [ + 'TooManyCalls', + 'InvalidSignature', + 'TargetCddMissing', + 'InvalidNonce', + 'UnableToDeriveAccountId', + ], }, /** - * Lookup708: pallet_base::Error + * Lookup705: pallet_base::Error **/ PalletBaseError: { _enum: ['TooLong', 'CounterOverflow'], }, /** - * Lookup710: pallet_external_agents::Error + * Lookup707: pallet_external_agents::Error **/ PalletExternalAgentsError: { _enum: [ @@ -5134,14 +5106,14 @@ export default { ], }, /** - * Lookup711: pallet_relayer::Subsidy + * Lookup708: pallet_relayer::Subsidy **/ PalletRelayerSubsidy: { payingKey: 'AccountId32', remaining: 'u128', }, /** - * Lookup712: pallet_relayer::Error + * Lookup709: pallet_relayer::Error **/ PalletRelayerError: { _enum: [ @@ -5155,7 +5127,7 @@ export default { ], }, /** - * Lookup714: pallet_contracts::wasm::PrefabWasmModule + * Lookup711: pallet_contracts::wasm::PrefabWasmModule **/ PalletContractsWasmPrefabWasmModule: { instructionWeightsVersion: 'Compact', @@ -5165,7 +5137,7 @@ export default { determinism: 'PalletContractsWasmDeterminism', }, /** - * Lookup716: pallet_contracts::wasm::OwnerInfo + * Lookup713: pallet_contracts::wasm::OwnerInfo **/ PalletContractsWasmOwnerInfo: { owner: 'AccountId32', @@ -5173,7 +5145,7 @@ export default { refcount: 'Compact', }, /** - * Lookup717: pallet_contracts::storage::ContractInfo + * Lookup714: pallet_contracts::storage::ContractInfo **/ PalletContractsStorageContractInfo: { trieId: 'Bytes', @@ -5186,13 +5158,13 @@ export default { storageBaseDeposit: 'u128', }, /** - * Lookup720: pallet_contracts::storage::DeletedContract + * Lookup717: pallet_contracts::storage::DeletedContract **/ PalletContractsStorageDeletedContract: { trieId: 'Bytes', }, /** - * Lookup722: pallet_contracts::schedule::Schedule + * Lookup719: pallet_contracts::schedule::Schedule **/ PalletContractsSchedule: { limits: 'PalletContractsScheduleLimits', @@ -5200,7 +5172,7 @@ export default { hostFnWeights: 'PalletContractsScheduleHostFnWeights', }, /** - * Lookup723: pallet_contracts::schedule::Limits + * Lookup720: pallet_contracts::schedule::Limits **/ PalletContractsScheduleLimits: { eventTopics: 'u32', @@ -5214,7 +5186,7 @@ export default { payloadLen: 'u32', }, /** - * Lookup724: pallet_contracts::schedule::InstructionWeights + * Lookup721: pallet_contracts::schedule::InstructionWeights **/ PalletContractsScheduleInstructionWeights: { _alias: { @@ -5276,7 +5248,7 @@ export default { i64rotr: 'u32', }, /** - * Lookup725: pallet_contracts::schedule::HostFnWeights + * Lookup722: pallet_contracts::schedule::HostFnWeights **/ PalletContractsScheduleHostFnWeights: { _alias: { @@ -5343,7 +5315,7 @@ export default { instantiationNonce: 'SpWeightsWeightV2Weight', }, /** - * Lookup726: pallet_contracts::pallet::Error + * Lookup723: pallet_contracts::pallet::Error **/ PalletContractsError: { _enum: [ @@ -5378,7 +5350,7 @@ export default { ], }, /** - * Lookup728: polymesh_contracts::Error + * Lookup725: polymesh_contracts::Error **/ PolymeshContractsError: { _enum: [ @@ -5397,7 +5369,7 @@ export default { ], }, /** - * Lookup729: pallet_preimage::RequestStatus + * Lookup726: pallet_preimage::RequestStatus **/ PalletPreimageRequestStatus: { _enum: { @@ -5413,20 +5385,20 @@ export default { }, }, /** - * Lookup733: pallet_preimage::pallet::Error + * Lookup730: pallet_preimage::pallet::Error **/ PalletPreimageError: { _enum: ['TooBig', 'AlreadyNoted', 'NotAuthorized', 'NotNoted', 'Requested', 'NotRequested'], }, /** - * Lookup734: polymesh_primitives::nft::NFTCollection + * Lookup731: polymesh_primitives::nft::NFTCollection **/ PolymeshPrimitivesNftNftCollection: { id: 'u64', ticker: 'PolymeshPrimitivesTicker', }, /** - * Lookup739: pallet_nft::Error + * Lookup736: pallet_nft::Error **/ PalletNftError: { _enum: [ @@ -5452,46 +5424,47 @@ export default { 'ZeroCount', 'SupplyOverflow', 'SupplyUnderflow', + 'InvalidNFTTransferNFTIsLocked', ], }, /** - * Lookup740: pallet_test_utils::Error + * Lookup737: pallet_test_utils::Error **/ PalletTestUtilsError: 'Null', /** - * Lookup743: frame_system::extensions::check_spec_version::CheckSpecVersion + * Lookup740: frame_system::extensions::check_spec_version::CheckSpecVersion **/ FrameSystemExtensionsCheckSpecVersion: 'Null', /** - * Lookup744: frame_system::extensions::check_tx_version::CheckTxVersion + * Lookup741: frame_system::extensions::check_tx_version::CheckTxVersion **/ FrameSystemExtensionsCheckTxVersion: 'Null', /** - * Lookup745: frame_system::extensions::check_genesis::CheckGenesis + * Lookup742: frame_system::extensions::check_genesis::CheckGenesis **/ FrameSystemExtensionsCheckGenesis: 'Null', /** - * Lookup748: frame_system::extensions::check_nonce::CheckNonce + * Lookup745: frame_system::extensions::check_nonce::CheckNonce **/ FrameSystemExtensionsCheckNonce: 'Compact', /** - * Lookup749: polymesh_extensions::check_weight::CheckWeight + * Lookup746: polymesh_extensions::check_weight::CheckWeight **/ PolymeshExtensionsCheckWeight: 'FrameSystemExtensionsCheckWeight', /** - * Lookup750: frame_system::extensions::check_weight::CheckWeight + * Lookup747: frame_system::extensions::check_weight::CheckWeight **/ FrameSystemExtensionsCheckWeight: 'Null', /** - * Lookup751: pallet_transaction_payment::ChargeTransactionPayment + * Lookup748: pallet_transaction_payment::ChargeTransactionPayment **/ PalletTransactionPaymentChargeTransactionPayment: 'Compact', /** - * Lookup752: pallet_permissions::StoreCallMetadata + * Lookup749: pallet_permissions::StoreCallMetadata **/ PalletPermissionsStoreCallMetadata: 'Null', /** - * Lookup753: polymesh_runtime_develop::runtime::Runtime + * Lookup750: polymesh_runtime_testnet::runtime::Runtime **/ - PolymeshRuntimeDevelopRuntime: 'Null', + PolymeshRuntimeTestnetRuntime: 'Null', }; diff --git a/src/polkadot/registry.ts b/src/polkadot/registry.ts index 53cf944291..1cd286ad79 100644 --- a/src/polkadot/registry.ts +++ b/src/polkadot/registry.ts @@ -208,9 +208,6 @@ import type { PalletStoFundraiserTier, PalletStoPriceTier, PalletStoRawEvent, - PalletSudoCall, - PalletSudoError, - PalletSudoRawEvent, PalletTestUtilsCall, PalletTestUtilsError, PalletTestUtilsRawEvent, @@ -334,9 +331,9 @@ import type { PolymeshPrimitivesTransferComplianceAssetTransferCompliance, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, - PolymeshRuntimeDevelopRuntime, - PolymeshRuntimeDevelopRuntimeOriginCaller, - PolymeshRuntimeDevelopRuntimeSessionKeys, + PolymeshRuntimeTestnetRuntime, + PolymeshRuntimeTestnetRuntimeOriginCaller, + PolymeshRuntimeTestnetRuntimeSessionKeys, SpArithmeticArithmeticError, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAllowedSlots, @@ -582,9 +579,6 @@ declare module '@polkadot/types/types/registry' { PalletStoFundraiserTier: PalletStoFundraiserTier; PalletStoPriceTier: PalletStoPriceTier; PalletStoRawEvent: PalletStoRawEvent; - PalletSudoCall: PalletSudoCall; - PalletSudoError: PalletSudoError; - PalletSudoRawEvent: PalletSudoRawEvent; PalletTestUtilsCall: PalletTestUtilsCall; PalletTestUtilsError: PalletTestUtilsError; PalletTestUtilsRawEvent: PalletTestUtilsRawEvent; @@ -708,9 +702,9 @@ declare module '@polkadot/types/types/registry' { PolymeshPrimitivesTransferComplianceAssetTransferCompliance: PolymeshPrimitivesTransferComplianceAssetTransferCompliance; PolymeshPrimitivesTransferComplianceTransferCondition: PolymeshPrimitivesTransferComplianceTransferCondition; PolymeshPrimitivesTransferComplianceTransferConditionExemptKey: PolymeshPrimitivesTransferComplianceTransferConditionExemptKey; - PolymeshRuntimeDevelopRuntime: PolymeshRuntimeDevelopRuntime; - PolymeshRuntimeDevelopRuntimeOriginCaller: PolymeshRuntimeDevelopRuntimeOriginCaller; - PolymeshRuntimeDevelopRuntimeSessionKeys: PolymeshRuntimeDevelopRuntimeSessionKeys; + PolymeshRuntimeTestnetRuntime: PolymeshRuntimeTestnetRuntime; + PolymeshRuntimeTestnetRuntimeOriginCaller: PolymeshRuntimeTestnetRuntimeOriginCaller; + PolymeshRuntimeTestnetRuntimeSessionKeys: PolymeshRuntimeTestnetRuntimeSessionKeys; SpArithmeticArithmeticError: SpArithmeticArithmeticError; SpAuthorityDiscoveryAppPublic: SpAuthorityDiscoveryAppPublic; SpConsensusBabeAllowedSlots: SpConsensusBabeAllowedSlots; diff --git a/src/polkadot/types-lookup.ts b/src/polkadot/types-lookup.ts index e8fd7a6618..027bfa69e0 100644 --- a/src/polkadot/types-lookup.ts +++ b/src/polkadot/types-lookup.ts @@ -1685,18 +1685,7 @@ declare module '@polkadot/types/lookup' { readonly value: Compact; } - /** @name PalletSudoRawEvent (122) */ - interface PalletSudoRawEvent extends Enum { - readonly isSudid: boolean; - readonly asSudid: Result; - readonly isKeyChanged: boolean; - readonly asKeyChanged: Option; - readonly isSudoAsDone: boolean; - readonly asSudoAsDone: Result; - readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone'; - } - - /** @name PolymeshCommonUtilitiesAssetRawEvent (123) */ + /** @name PolymeshCommonUtilitiesAssetRawEvent (122) */ interface PolymeshCommonUtilitiesAssetRawEvent extends Enum { readonly isAssetCreated: boolean; readonly asAssetCreated: ITuple< @@ -1886,7 +1875,7 @@ declare module '@polkadot/types/lookup' { | 'RemovePreApprovedAsset'; } - /** @name PolymeshPrimitivesAssetAssetType (124) */ + /** @name PolymeshPrimitivesAssetAssetType (123) */ interface PolymeshPrimitivesAssetAssetType extends Enum { readonly isEquityCommon: boolean; readonly isEquityPreferred: boolean; @@ -1917,7 +1906,7 @@ declare module '@polkadot/types/lookup' { | 'NonFungible'; } - /** @name PolymeshPrimitivesAssetNonFungibleType (126) */ + /** @name PolymeshPrimitivesAssetNonFungibleType (125) */ interface PolymeshPrimitivesAssetNonFungibleType extends Enum { readonly isDerivative: boolean; readonly isFixedIncome: boolean; @@ -1927,7 +1916,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Derivative' | 'FixedIncome' | 'Invoice' | 'Custom'; } - /** @name PolymeshPrimitivesAssetIdentifier (129) */ + /** @name PolymeshPrimitivesAssetIdentifier (128) */ interface PolymeshPrimitivesAssetIdentifier extends Enum { readonly isCusip: boolean; readonly asCusip: U8aFixed; @@ -1942,7 +1931,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Cusip' | 'Cins' | 'Isin' | 'Lei' | 'Figi'; } - /** @name PolymeshPrimitivesDocument (135) */ + /** @name PolymeshPrimitivesDocument (134) */ interface PolymeshPrimitivesDocument extends Struct { readonly uri: Bytes; readonly contentHash: PolymeshPrimitivesDocumentHash; @@ -1951,7 +1940,7 @@ declare module '@polkadot/types/lookup' { readonly filingDate: Option; } - /** @name PolymeshPrimitivesDocumentHash (137) */ + /** @name PolymeshPrimitivesDocumentHash (136) */ interface PolymeshPrimitivesDocumentHash extends Enum { readonly isNone: boolean; readonly isH512: boolean; @@ -1973,13 +1962,13 @@ declare module '@polkadot/types/lookup' { readonly type: 'None' | 'H512' | 'H384' | 'H320' | 'H256' | 'H224' | 'H192' | 'H160' | 'H128'; } - /** @name PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail (148) */ + /** @name PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail (147) */ interface PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail extends Struct { readonly expire: Option; readonly lockStatus: PolymeshPrimitivesAssetMetadataAssetMetadataLockStatus; } - /** @name PolymeshPrimitivesAssetMetadataAssetMetadataLockStatus (149) */ + /** @name PolymeshPrimitivesAssetMetadataAssetMetadataLockStatus (148) */ interface PolymeshPrimitivesAssetMetadataAssetMetadataLockStatus extends Enum { readonly isUnlocked: boolean; readonly isLocked: boolean; @@ -1988,14 +1977,14 @@ declare module '@polkadot/types/lookup' { readonly type: 'Unlocked' | 'Locked' | 'LockedUntil'; } - /** @name PolymeshPrimitivesAssetMetadataAssetMetadataSpec (152) */ + /** @name PolymeshPrimitivesAssetMetadataAssetMetadataSpec (151) */ interface PolymeshPrimitivesAssetMetadataAssetMetadataSpec extends Struct { readonly url: Option; readonly description: Option; readonly typeDef: Option; } - /** @name PolymeshPrimitivesAssetMetadataAssetMetadataKey (159) */ + /** @name PolymeshPrimitivesAssetMetadataAssetMetadataKey (158) */ interface PolymeshPrimitivesAssetMetadataAssetMetadataKey extends Enum { readonly isGlobal: boolean; readonly asGlobal: u64; @@ -2004,7 +1993,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Global' | 'Local'; } - /** @name PolymeshPrimitivesPortfolioPortfolioUpdateReason (161) */ + /** @name PolymeshPrimitivesPortfolioPortfolioUpdateReason (160) */ interface PolymeshPrimitivesPortfolioPortfolioUpdateReason extends Enum { readonly isIssued: boolean; readonly asIssued: { @@ -2020,7 +2009,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Issued' | 'Redeemed' | 'Transferred' | 'ControllerTransfer'; } - /** @name PalletCorporateActionsDistributionEvent (164) */ + /** @name PalletCorporateActionsDistributionEvent (163) */ interface PalletCorporateActionsDistributionEvent extends Enum { readonly isCreated: boolean; readonly asCreated: ITuple< @@ -2044,16 +2033,16 @@ declare module '@polkadot/types/lookup' { readonly type: 'Created' | 'BenefitClaimed' | 'Reclaimed' | 'Removed'; } - /** @name PolymeshPrimitivesEventOnly (165) */ + /** @name PolymeshPrimitivesEventOnly (164) */ interface PolymeshPrimitivesEventOnly extends PolymeshPrimitivesIdentityId {} - /** @name PalletCorporateActionsCaId (166) */ + /** @name PalletCorporateActionsCaId (165) */ interface PalletCorporateActionsCaId extends Struct { readonly ticker: PolymeshPrimitivesTicker; readonly localId: u32; } - /** @name PalletCorporateActionsDistribution (168) */ + /** @name PalletCorporateActionsDistribution (167) */ interface PalletCorporateActionsDistribution extends Struct { readonly from: PolymeshPrimitivesIdentityIdPortfolioId; readonly currency: PolymeshPrimitivesTicker; @@ -2065,7 +2054,7 @@ declare module '@polkadot/types/lookup' { readonly expiresAt: Option; } - /** @name PolymeshCommonUtilitiesCheckpointEvent (170) */ + /** @name PolymeshCommonUtilitiesCheckpointEvent (169) */ interface PolymeshCommonUtilitiesCheckpointEvent extends Enum { readonly isCheckpointCreated: boolean; readonly asCheckpointCreated: ITuple< @@ -2098,12 +2087,12 @@ declare module '@polkadot/types/lookup' { | 'ScheduleRemoved'; } - /** @name PolymeshCommonUtilitiesCheckpointScheduleCheckpoints (173) */ + /** @name PolymeshCommonUtilitiesCheckpointScheduleCheckpoints (172) */ interface PolymeshCommonUtilitiesCheckpointScheduleCheckpoints extends Struct { readonly pending: BTreeSet; } - /** @name PolymeshCommonUtilitiesComplianceManagerEvent (176) */ + /** @name PolymeshCommonUtilitiesComplianceManagerEvent (175) */ interface PolymeshCommonUtilitiesComplianceManagerEvent extends Enum { readonly isComplianceRequirementCreated: boolean; readonly asComplianceRequirementCreated: ITuple< @@ -2169,20 +2158,20 @@ declare module '@polkadot/types/lookup' { | 'TrustedDefaultClaimIssuerRemoved'; } - /** @name PolymeshPrimitivesComplianceManagerComplianceRequirement (177) */ + /** @name PolymeshPrimitivesComplianceManagerComplianceRequirement (176) */ interface PolymeshPrimitivesComplianceManagerComplianceRequirement extends Struct { readonly senderConditions: Vec; readonly receiverConditions: Vec; readonly id: u32; } - /** @name PolymeshPrimitivesCondition (179) */ + /** @name PolymeshPrimitivesCondition (178) */ interface PolymeshPrimitivesCondition extends Struct { readonly conditionType: PolymeshPrimitivesConditionConditionType; readonly issuers: Vec; } - /** @name PolymeshPrimitivesConditionConditionType (180) */ + /** @name PolymeshPrimitivesConditionConditionType (179) */ interface PolymeshPrimitivesConditionConditionType extends Enum { readonly isIsPresent: boolean; readonly asIsPresent: PolymeshPrimitivesIdentityClaimClaim; @@ -2197,7 +2186,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'IsPresent' | 'IsAbsent' | 'IsAnyOf' | 'IsNoneOf' | 'IsIdentity'; } - /** @name PolymeshPrimitivesConditionTargetIdentity (182) */ + /** @name PolymeshPrimitivesConditionTargetIdentity (181) */ interface PolymeshPrimitivesConditionTargetIdentity extends Enum { readonly isExternalAgent: boolean; readonly isSpecific: boolean; @@ -2205,13 +2194,13 @@ declare module '@polkadot/types/lookup' { readonly type: 'ExternalAgent' | 'Specific'; } - /** @name PolymeshPrimitivesConditionTrustedIssuer (184) */ + /** @name PolymeshPrimitivesConditionTrustedIssuer (183) */ interface PolymeshPrimitivesConditionTrustedIssuer extends Struct { readonly issuer: PolymeshPrimitivesIdentityId; readonly trustedFor: PolymeshPrimitivesConditionTrustedFor; } - /** @name PolymeshPrimitivesConditionTrustedFor (185) */ + /** @name PolymeshPrimitivesConditionTrustedFor (184) */ interface PolymeshPrimitivesConditionTrustedFor extends Enum { readonly isAny: boolean; readonly isSpecific: boolean; @@ -2219,7 +2208,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Any' | 'Specific'; } - /** @name PolymeshPrimitivesIdentityClaimClaimType (187) */ + /** @name PolymeshPrimitivesIdentityClaimClaimType (186) */ interface PolymeshPrimitivesIdentityClaimClaimType extends Enum { readonly isAccredited: boolean; readonly isAffiliate: boolean; @@ -2245,7 +2234,7 @@ declare module '@polkadot/types/lookup' { | 'Custom'; } - /** @name PalletCorporateActionsEvent (189) */ + /** @name PalletCorporateActionsEvent (188) */ interface PalletCorporateActionsEvent extends Enum { readonly isMaxDetailsLengthChanged: boolean; readonly asMaxDetailsLengthChanged: ITuple<[PolymeshPrimitivesIdentityId, u32]>; @@ -2304,20 +2293,20 @@ declare module '@polkadot/types/lookup' { | 'RecordDateChanged'; } - /** @name PalletCorporateActionsTargetIdentities (190) */ + /** @name PalletCorporateActionsTargetIdentities (189) */ interface PalletCorporateActionsTargetIdentities extends Struct { readonly identities: Vec; readonly treatment: PalletCorporateActionsTargetTreatment; } - /** @name PalletCorporateActionsTargetTreatment (191) */ + /** @name PalletCorporateActionsTargetTreatment (190) */ interface PalletCorporateActionsTargetTreatment extends Enum { readonly isInclude: boolean; readonly isExclude: boolean; readonly type: 'Include' | 'Exclude'; } - /** @name PalletCorporateActionsCorporateAction (193) */ + /** @name PalletCorporateActionsCorporateAction (192) */ interface PalletCorporateActionsCorporateAction extends Struct { readonly kind: PalletCorporateActionsCaKind; readonly declDate: u64; @@ -2327,7 +2316,7 @@ declare module '@polkadot/types/lookup' { readonly withholdingTax: Vec>; } - /** @name PalletCorporateActionsCaKind (194) */ + /** @name PalletCorporateActionsCaKind (193) */ interface PalletCorporateActionsCaKind extends Enum { readonly isPredictableBenefit: boolean; readonly isUnpredictableBenefit: boolean; @@ -2342,13 +2331,13 @@ declare module '@polkadot/types/lookup' { | 'Other'; } - /** @name PalletCorporateActionsRecordDate (196) */ + /** @name PalletCorporateActionsRecordDate (195) */ interface PalletCorporateActionsRecordDate extends Struct { readonly date: u64; readonly checkpoint: PalletCorporateActionsCaCheckpoint; } - /** @name PalletCorporateActionsCaCheckpoint (197) */ + /** @name PalletCorporateActionsCaCheckpoint (196) */ interface PalletCorporateActionsCaCheckpoint extends Enum { readonly isScheduled: boolean; readonly asScheduled: ITuple<[u64, u64]>; @@ -2357,7 +2346,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Scheduled' | 'Existing'; } - /** @name PalletCorporateActionsBallotEvent (202) */ + /** @name PalletCorporateActionsBallotEvent (201) */ interface PalletCorporateActionsBallotEvent extends Enum { readonly isCreated: boolean; readonly asCreated: ITuple< @@ -2406,32 +2395,32 @@ declare module '@polkadot/types/lookup' { | 'Removed'; } - /** @name PalletCorporateActionsBallotBallotTimeRange (203) */ + /** @name PalletCorporateActionsBallotBallotTimeRange (202) */ interface PalletCorporateActionsBallotBallotTimeRange extends Struct { readonly start: u64; readonly end: u64; } - /** @name PalletCorporateActionsBallotBallotMeta (204) */ + /** @name PalletCorporateActionsBallotBallotMeta (203) */ interface PalletCorporateActionsBallotBallotMeta extends Struct { readonly title: Bytes; readonly motions: Vec; } - /** @name PalletCorporateActionsBallotMotion (207) */ + /** @name PalletCorporateActionsBallotMotion (206) */ interface PalletCorporateActionsBallotMotion extends Struct { readonly title: Bytes; readonly infoLink: Bytes; readonly choices: Vec; } - /** @name PalletCorporateActionsBallotBallotVote (213) */ + /** @name PalletCorporateActionsBallotBallotVote (212) */ interface PalletCorporateActionsBallotBallotVote extends Struct { readonly power: u128; readonly fallback: Option; } - /** @name PalletPipsRawEvent (216) */ + /** @name PalletPipsRawEvent (215) */ interface PalletPipsRawEvent extends Enum { readonly isHistoricalPipsPruned: boolean; readonly asHistoricalPipsPruned: ITuple<[PolymeshPrimitivesIdentityId, bool, bool]>; @@ -2519,7 +2508,7 @@ declare module '@polkadot/types/lookup' { | 'ExecutionCancellingFailed'; } - /** @name PalletPipsProposer (217) */ + /** @name PalletPipsProposer (216) */ interface PalletPipsProposer extends Enum { readonly isCommunity: boolean; readonly asCommunity: AccountId32; @@ -2528,14 +2517,14 @@ declare module '@polkadot/types/lookup' { readonly type: 'Community' | 'Committee'; } - /** @name PalletPipsCommittee (218) */ + /** @name PalletPipsCommittee (217) */ interface PalletPipsCommittee extends Enum { readonly isTechnical: boolean; readonly isUpgrade: boolean; readonly type: 'Technical' | 'Upgrade'; } - /** @name PalletPipsProposalData (222) */ + /** @name PalletPipsProposalData (221) */ interface PalletPipsProposalData extends Enum { readonly isHash: boolean; readonly asHash: H256; @@ -2544,7 +2533,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Hash' | 'Proposal'; } - /** @name PalletPipsProposalState (223) */ + /** @name PalletPipsProposalState (222) */ interface PalletPipsProposalState extends Enum { readonly isPending: boolean; readonly isRejected: boolean; @@ -2555,13 +2544,13 @@ declare module '@polkadot/types/lookup' { readonly type: 'Pending' | 'Rejected' | 'Scheduled' | 'Failed' | 'Executed' | 'Expired'; } - /** @name PalletPipsSnapshottedPip (226) */ + /** @name PalletPipsSnapshottedPip (225) */ interface PalletPipsSnapshottedPip extends Struct { readonly id: u32; readonly weight: ITuple<[bool, u128]>; } - /** @name PolymeshCommonUtilitiesPortfolioEvent (232) */ + /** @name PolymeshCommonUtilitiesPortfolioEvent (231) */ interface PolymeshCommonUtilitiesPortfolioEvent extends Enum { readonly isPortfolioCreated: boolean; readonly asPortfolioCreated: ITuple<[PolymeshPrimitivesIdentityId, u64, Bytes]>; @@ -2616,7 +2605,7 @@ declare module '@polkadot/types/lookup' { | 'RevokePreApprovedPortfolio'; } - /** @name PolymeshPrimitivesPortfolioFundDescription (236) */ + /** @name PolymeshPrimitivesPortfolioFundDescription (235) */ interface PolymeshPrimitivesPortfolioFundDescription extends Enum { readonly isFungible: boolean; readonly asFungible: { @@ -2628,13 +2617,13 @@ declare module '@polkadot/types/lookup' { readonly type: 'Fungible' | 'NonFungible'; } - /** @name PolymeshPrimitivesNftNfTs (237) */ + /** @name PolymeshPrimitivesNftNfTs (236) */ interface PolymeshPrimitivesNftNfTs extends Struct { readonly ticker: PolymeshPrimitivesTicker; readonly ids: Vec; } - /** @name PalletProtocolFeeRawEvent (240) */ + /** @name PalletProtocolFeeRawEvent (239) */ interface PalletProtocolFeeRawEvent extends Enum { readonly isFeeSet: boolean; readonly asFeeSet: ITuple<[PolymeshPrimitivesIdentityId, u128]>; @@ -2645,10 +2634,10 @@ declare module '@polkadot/types/lookup' { readonly type: 'FeeSet' | 'CoefficientSet' | 'FeeCharged'; } - /** @name PolymeshPrimitivesPosRatio (241) */ + /** @name PolymeshPrimitivesPosRatio (240) */ interface PolymeshPrimitivesPosRatio extends ITuple<[u32, u32]> {} - /** @name PalletSchedulerEvent (242) */ + /** @name PalletSchedulerEvent (241) */ interface PalletSchedulerEvent extends Enum { readonly isScheduled: boolean; readonly asScheduled: { @@ -2690,7 +2679,7 @@ declare module '@polkadot/types/lookup' { | 'PermanentlyOverweight'; } - /** @name PolymeshCommonUtilitiesSettlementRawEvent (245) */ + /** @name PolymeshCommonUtilitiesSettlementRawEvent (244) */ interface PolymeshCommonUtilitiesSettlementRawEvent extends Enum { readonly isVenueCreated: boolean; readonly asVenueCreated: ITuple< @@ -2798,7 +2787,7 @@ declare module '@polkadot/types/lookup' { | 'InstructionAutomaticallyAffirmed'; } - /** @name PolymeshPrimitivesSettlementVenueType (248) */ + /** @name PolymeshPrimitivesSettlementVenueType (247) */ interface PolymeshPrimitivesSettlementVenueType extends Enum { readonly isOther: boolean; readonly isDistribution: boolean; @@ -2807,10 +2796,10 @@ declare module '@polkadot/types/lookup' { readonly type: 'Other' | 'Distribution' | 'Sto' | 'Exchange'; } - /** @name PolymeshPrimitivesSettlementReceiptMetadata (251) */ + /** @name PolymeshPrimitivesSettlementReceiptMetadata (250) */ interface PolymeshPrimitivesSettlementReceiptMetadata extends U8aFixed {} - /** @name PolymeshPrimitivesSettlementSettlementType (253) */ + /** @name PolymeshPrimitivesSettlementSettlementType (252) */ interface PolymeshPrimitivesSettlementSettlementType extends Enum { readonly isSettleOnAffirmation: boolean; readonly isSettleOnBlock: boolean; @@ -2820,7 +2809,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'SettleOnAffirmation' | 'SettleOnBlock' | 'SettleManual'; } - /** @name PolymeshPrimitivesSettlementLeg (255) */ + /** @name PolymeshPrimitivesSettlementLeg (254) */ interface PolymeshPrimitivesSettlementLeg extends Enum { readonly isFungible: boolean; readonly asFungible: { @@ -2845,7 +2834,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Fungible' | 'NonFungible' | 'OffChain'; } - /** @name PolymeshCommonUtilitiesStatisticsEvent (256) */ + /** @name PolymeshCommonUtilitiesStatisticsEvent (255) */ interface PolymeshCommonUtilitiesStatisticsEvent extends Enum { readonly isStatTypesAdded: boolean; readonly asStatTypesAdded: ITuple< @@ -2905,14 +2894,14 @@ declare module '@polkadot/types/lookup' { | 'TransferConditionExemptionsRemoved'; } - /** @name PolymeshPrimitivesStatisticsAssetScope (257) */ + /** @name PolymeshPrimitivesStatisticsAssetScope (256) */ interface PolymeshPrimitivesStatisticsAssetScope extends Enum { readonly isTicker: boolean; readonly asTicker: PolymeshPrimitivesTicker; readonly type: 'Ticker'; } - /** @name PolymeshPrimitivesStatisticsStatType (259) */ + /** @name PolymeshPrimitivesStatisticsStatType (258) */ interface PolymeshPrimitivesStatisticsStatType extends Struct { readonly op: PolymeshPrimitivesStatisticsStatOpType; readonly claimIssuer: Option< @@ -2920,20 +2909,20 @@ declare module '@polkadot/types/lookup' { >; } - /** @name PolymeshPrimitivesStatisticsStatOpType (260) */ + /** @name PolymeshPrimitivesStatisticsStatOpType (259) */ interface PolymeshPrimitivesStatisticsStatOpType extends Enum { readonly isCount: boolean; readonly isBalance: boolean; readonly type: 'Count' | 'Balance'; } - /** @name PolymeshPrimitivesStatisticsStatUpdate (264) */ + /** @name PolymeshPrimitivesStatisticsStatUpdate (263) */ interface PolymeshPrimitivesStatisticsStatUpdate extends Struct { readonly key2: PolymeshPrimitivesStatisticsStat2ndKey; readonly value: Option; } - /** @name PolymeshPrimitivesStatisticsStat2ndKey (265) */ + /** @name PolymeshPrimitivesStatisticsStat2ndKey (264) */ interface PolymeshPrimitivesStatisticsStat2ndKey extends Enum { readonly isNoClaimStat: boolean; readonly isClaim: boolean; @@ -2941,7 +2930,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'NoClaimStat' | 'Claim'; } - /** @name PolymeshPrimitivesStatisticsStatClaim (266) */ + /** @name PolymeshPrimitivesStatisticsStatClaim (265) */ interface PolymeshPrimitivesStatisticsStatClaim extends Enum { readonly isAccredited: boolean; readonly asAccredited: bool; @@ -2952,7 +2941,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Accredited' | 'Affiliate' | 'Jurisdiction'; } - /** @name PolymeshPrimitivesTransferComplianceTransferCondition (270) */ + /** @name PolymeshPrimitivesTransferComplianceTransferCondition (269) */ interface PolymeshPrimitivesTransferComplianceTransferCondition extends Enum { readonly isMaxInvestorCount: boolean; readonly asMaxInvestorCount: u64; @@ -2969,14 +2958,14 @@ declare module '@polkadot/types/lookup' { readonly type: 'MaxInvestorCount' | 'MaxInvestorOwnership' | 'ClaimCount' | 'ClaimOwnership'; } - /** @name PolymeshPrimitivesTransferComplianceTransferConditionExemptKey (271) */ + /** @name PolymeshPrimitivesTransferComplianceTransferConditionExemptKey (270) */ interface PolymeshPrimitivesTransferComplianceTransferConditionExemptKey extends Struct { readonly asset: PolymeshPrimitivesStatisticsAssetScope; readonly op: PolymeshPrimitivesStatisticsStatOpType; readonly claimType: Option; } - /** @name PalletStoRawEvent (273) */ + /** @name PalletStoRawEvent (272) */ interface PalletStoRawEvent extends Enum { readonly isFundraiserCreated: boolean; readonly asFundraiserCreated: ITuple< @@ -3012,7 +3001,7 @@ declare module '@polkadot/types/lookup' { | 'FundraiserClosed'; } - /** @name PalletStoFundraiser (276) */ + /** @name PalletStoFundraiser (275) */ interface PalletStoFundraiser extends Struct { readonly creator: PolymeshPrimitivesIdentityId; readonly offeringPortfolio: PolymeshPrimitivesIdentityIdPortfolioId; @@ -3027,14 +3016,14 @@ declare module '@polkadot/types/lookup' { readonly minimumInvestment: u128; } - /** @name PalletStoFundraiserTier (278) */ + /** @name PalletStoFundraiserTier (277) */ interface PalletStoFundraiserTier extends Struct { readonly total: u128; readonly price: u128; readonly remaining: u128; } - /** @name PalletStoFundraiserStatus (279) */ + /** @name PalletStoFundraiserStatus (278) */ interface PalletStoFundraiserStatus extends Enum { readonly isLive: boolean; readonly isFrozen: boolean; @@ -3043,7 +3032,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Live' | 'Frozen' | 'Closed' | 'ClosedEarly'; } - /** @name PalletTreasuryRawEvent (280) */ + /** @name PalletTreasuryRawEvent (279) */ interface PalletTreasuryRawEvent extends Enum { readonly isTreasuryDisbursement: boolean; readonly asTreasuryDisbursement: ITuple< @@ -3058,7 +3047,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'TreasuryDisbursement' | 'TreasuryDisbursementFailed' | 'TreasuryReimbursement'; } - /** @name PalletUtilityEvent (281) */ + /** @name PalletUtilityEvent (280) */ interface PalletUtilityEvent extends Enum { readonly isBatchInterrupted: boolean; readonly asBatchInterrupted: { @@ -3103,14 +3092,14 @@ declare module '@polkadot/types/lookup' { | 'BatchCompletedOld'; } - /** @name PolymeshCommonUtilitiesBaseEvent (285) */ + /** @name PolymeshCommonUtilitiesBaseEvent (284) */ interface PolymeshCommonUtilitiesBaseEvent extends Enum { readonly isUnexpectedError: boolean; readonly asUnexpectedError: Option; readonly type: 'UnexpectedError'; } - /** @name PolymeshCommonUtilitiesExternalAgentsEvent (287) */ + /** @name PolymeshCommonUtilitiesExternalAgentsEvent (286) */ interface PolymeshCommonUtilitiesExternalAgentsEvent extends Enum { readonly isGroupCreated: boolean; readonly asGroupCreated: ITuple< @@ -3155,7 +3144,7 @@ declare module '@polkadot/types/lookup' { | 'GroupChanged'; } - /** @name PolymeshCommonUtilitiesRelayerRawEvent (288) */ + /** @name PolymeshCommonUtilitiesRelayerRawEvent (287) */ interface PolymeshCommonUtilitiesRelayerRawEvent extends Enum { readonly isAuthorizedPayingKey: boolean; readonly asAuthorizedPayingKey: ITuple< @@ -3176,7 +3165,7 @@ declare module '@polkadot/types/lookup' { | 'UpdatedPolyxLimit'; } - /** @name PalletContractsEvent (289) */ + /** @name PalletContractsEvent (288) */ interface PalletContractsEvent extends Enum { readonly isInstantiated: boolean; readonly asInstantiated: { @@ -3228,7 +3217,7 @@ declare module '@polkadot/types/lookup' { | 'DelegateCalled'; } - /** @name PolymeshContractsRawEvent (290) */ + /** @name PolymeshContractsRawEvent (289) */ interface PolymeshContractsRawEvent extends Enum { readonly isApiHashUpdated: boolean; readonly asApiHashUpdated: ITuple<[PolymeshContractsApi, PolymeshContractsChainVersion, H256]>; @@ -3237,22 +3226,22 @@ declare module '@polkadot/types/lookup' { readonly type: 'ApiHashUpdated' | 'ScRuntimeCall'; } - /** @name PolymeshContractsApi (291) */ + /** @name PolymeshContractsApi (290) */ interface PolymeshContractsApi extends Struct { readonly desc: U8aFixed; readonly major: u32; } - /** @name PolymeshContractsChainVersion (292) */ + /** @name PolymeshContractsChainVersion (291) */ interface PolymeshContractsChainVersion extends Struct { readonly specVersion: u32; readonly txVersion: u32; } - /** @name PolymeshContractsChainExtensionExtrinsicId (293) */ + /** @name PolymeshContractsChainExtensionExtrinsicId (292) */ interface PolymeshContractsChainExtensionExtrinsicId extends ITuple<[u8, u8]> {} - /** @name PalletPreimageEvent (294) */ + /** @name PalletPreimageEvent (293) */ interface PalletPreimageEvent extends Enum { readonly isNoted: boolean; readonly asNoted: { @@ -3269,7 +3258,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Noted' | 'Requested' | 'Cleared'; } - /** @name PolymeshCommonUtilitiesNftEvent (295) */ + /** @name PolymeshCommonUtilitiesNftEvent (294) */ interface PolymeshCommonUtilitiesNftEvent extends Enum { readonly isNftCollectionCreated: boolean; readonly asNftCollectionCreated: ITuple< @@ -3288,7 +3277,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'NftCollectionCreated' | 'NftPortfolioUpdated'; } - /** @name PalletTestUtilsRawEvent (297) */ + /** @name PalletTestUtilsRawEvent (296) */ interface PalletTestUtilsRawEvent extends Enum { readonly isDidStatus: boolean; readonly asDidStatus: ITuple<[PolymeshPrimitivesIdentityId, AccountId32]>; @@ -3297,7 +3286,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'DidStatus' | 'CddStatus'; } - /** @name FrameSystemPhase (298) */ + /** @name FrameSystemPhase (297) */ interface FrameSystemPhase extends Enum { readonly isApplyExtrinsic: boolean; readonly asApplyExtrinsic: u32; @@ -3306,13 +3295,13 @@ declare module '@polkadot/types/lookup' { readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization'; } - /** @name FrameSystemLastRuntimeUpgradeInfo (301) */ + /** @name FrameSystemLastRuntimeUpgradeInfo (300) */ interface FrameSystemLastRuntimeUpgradeInfo extends Struct { readonly specVersion: Compact; readonly specName: Text; } - /** @name FrameSystemCall (304) */ + /** @name FrameSystemCall (303) */ interface FrameSystemCall extends Enum { readonly isRemark: boolean; readonly asRemark: { @@ -3358,21 +3347,21 @@ declare module '@polkadot/types/lookup' { | 'RemarkWithEvent'; } - /** @name FrameSystemLimitsBlockWeights (308) */ + /** @name FrameSystemLimitsBlockWeights (307) */ interface FrameSystemLimitsBlockWeights extends Struct { readonly baseBlock: SpWeightsWeightV2Weight; readonly maxBlock: SpWeightsWeightV2Weight; readonly perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; } - /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (309) */ + /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (308) */ interface FrameSupportDispatchPerDispatchClassWeightsPerClass extends Struct { readonly normal: FrameSystemLimitsWeightsPerClass; readonly operational: FrameSystemLimitsWeightsPerClass; readonly mandatory: FrameSystemLimitsWeightsPerClass; } - /** @name FrameSystemLimitsWeightsPerClass (310) */ + /** @name FrameSystemLimitsWeightsPerClass (309) */ interface FrameSystemLimitsWeightsPerClass extends Struct { readonly baseExtrinsic: SpWeightsWeightV2Weight; readonly maxExtrinsic: Option; @@ -3380,25 +3369,25 @@ declare module '@polkadot/types/lookup' { readonly reserved: Option; } - /** @name FrameSystemLimitsBlockLength (312) */ + /** @name FrameSystemLimitsBlockLength (311) */ interface FrameSystemLimitsBlockLength extends Struct { readonly max: FrameSupportDispatchPerDispatchClassU32; } - /** @name FrameSupportDispatchPerDispatchClassU32 (313) */ + /** @name FrameSupportDispatchPerDispatchClassU32 (312) */ interface FrameSupportDispatchPerDispatchClassU32 extends Struct { readonly normal: u32; readonly operational: u32; readonly mandatory: u32; } - /** @name SpWeightsRuntimeDbWeight (314) */ + /** @name SpWeightsRuntimeDbWeight (313) */ interface SpWeightsRuntimeDbWeight extends Struct { readonly read: u64; readonly write: u64; } - /** @name SpVersionRuntimeVersion (315) */ + /** @name SpVersionRuntimeVersion (314) */ interface SpVersionRuntimeVersion extends Struct { readonly specName: Text; readonly implName: Text; @@ -3410,7 +3399,7 @@ declare module '@polkadot/types/lookup' { readonly stateVersion: u8; } - /** @name FrameSystemError (320) */ + /** @name FrameSystemError (319) */ interface FrameSystemError extends Enum { readonly isInvalidSpecName: boolean; readonly isSpecVersionNeedsToIncrease: boolean; @@ -3427,10 +3416,10 @@ declare module '@polkadot/types/lookup' { | 'CallFiltered'; } - /** @name SpConsensusBabeAppPublic (323) */ + /** @name SpConsensusBabeAppPublic (322) */ interface SpConsensusBabeAppPublic extends SpCoreSr25519Public {} - /** @name SpConsensusBabeDigestsNextConfigDescriptor (326) */ + /** @name SpConsensusBabeDigestsNextConfigDescriptor (325) */ interface SpConsensusBabeDigestsNextConfigDescriptor extends Enum { readonly isV1: boolean; readonly asV1: { @@ -3440,7 +3429,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'V1'; } - /** @name SpConsensusBabeAllowedSlots (328) */ + /** @name SpConsensusBabeAllowedSlots (327) */ interface SpConsensusBabeAllowedSlots extends Enum { readonly isPrimarySlots: boolean; readonly isPrimaryAndSecondaryPlainSlots: boolean; @@ -3448,7 +3437,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'PrimarySlots' | 'PrimaryAndSecondaryPlainSlots' | 'PrimaryAndSecondaryVRFSlots'; } - /** @name SpConsensusBabeDigestsPreDigest (332) */ + /** @name SpConsensusBabeDigestsPreDigest (331) */ interface SpConsensusBabeDigestsPreDigest extends Enum { readonly isPrimary: boolean; readonly asPrimary: SpConsensusBabeDigestsPrimaryPreDigest; @@ -3459,7 +3448,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Primary' | 'SecondaryPlain' | 'SecondaryVRF'; } - /** @name SpConsensusBabeDigestsPrimaryPreDigest (333) */ + /** @name SpConsensusBabeDigestsPrimaryPreDigest (332) */ interface SpConsensusBabeDigestsPrimaryPreDigest extends Struct { readonly authorityIndex: u32; readonly slot: u64; @@ -3467,13 +3456,13 @@ declare module '@polkadot/types/lookup' { readonly vrfProof: U8aFixed; } - /** @name SpConsensusBabeDigestsSecondaryPlainPreDigest (334) */ + /** @name SpConsensusBabeDigestsSecondaryPlainPreDigest (333) */ interface SpConsensusBabeDigestsSecondaryPlainPreDigest extends Struct { readonly authorityIndex: u32; readonly slot: u64; } - /** @name SpConsensusBabeDigestsSecondaryVRFPreDigest (335) */ + /** @name SpConsensusBabeDigestsSecondaryVRFPreDigest (334) */ interface SpConsensusBabeDigestsSecondaryVRFPreDigest extends Struct { readonly authorityIndex: u32; readonly slot: u64; @@ -3481,13 +3470,13 @@ declare module '@polkadot/types/lookup' { readonly vrfProof: U8aFixed; } - /** @name SpConsensusBabeBabeEpochConfiguration (336) */ + /** @name SpConsensusBabeBabeEpochConfiguration (335) */ interface SpConsensusBabeBabeEpochConfiguration extends Struct { readonly c: ITuple<[u64, u64]>; readonly allowedSlots: SpConsensusBabeAllowedSlots; } - /** @name PalletBabeCall (340) */ + /** @name PalletBabeCall (339) */ interface PalletBabeCall extends Enum { readonly isReportEquivocation: boolean; readonly asReportEquivocation: { @@ -3506,7 +3495,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'ReportEquivocation' | 'ReportEquivocationUnsigned' | 'PlanConfigChange'; } - /** @name SpConsensusSlotsEquivocationProof (341) */ + /** @name SpConsensusSlotsEquivocationProof (340) */ interface SpConsensusSlotsEquivocationProof extends Struct { readonly offender: SpConsensusBabeAppPublic; readonly slot: u64; @@ -3514,7 +3503,7 @@ declare module '@polkadot/types/lookup' { readonly secondHeader: SpRuntimeHeader; } - /** @name SpRuntimeHeader (342) */ + /** @name SpRuntimeHeader (341) */ interface SpRuntimeHeader extends Struct { readonly parentHash: H256; readonly number: Compact; @@ -3523,17 +3512,17 @@ declare module '@polkadot/types/lookup' { readonly digest: SpRuntimeDigest; } - /** @name SpRuntimeBlakeTwo256 (343) */ + /** @name SpRuntimeBlakeTwo256 (342) */ type SpRuntimeBlakeTwo256 = Null; - /** @name SpSessionMembershipProof (344) */ + /** @name SpSessionMembershipProof (343) */ interface SpSessionMembershipProof extends Struct { readonly session: u32; readonly trieNodes: Vec; readonly validatorCount: u32; } - /** @name PalletBabeError (345) */ + /** @name PalletBabeError (344) */ interface PalletBabeError extends Enum { readonly isInvalidEquivocationProof: boolean; readonly isInvalidKeyOwnershipProof: boolean; @@ -3546,7 +3535,7 @@ declare module '@polkadot/types/lookup' { | 'InvalidConfiguration'; } - /** @name PalletTimestampCall (346) */ + /** @name PalletTimestampCall (345) */ interface PalletTimestampCall extends Enum { readonly isSet: boolean; readonly asSet: { @@ -3555,7 +3544,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Set'; } - /** @name PalletIndicesCall (348) */ + /** @name PalletIndicesCall (347) */ interface PalletIndicesCall extends Enum { readonly isClaim: boolean; readonly asClaim: { @@ -3583,7 +3572,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Claim' | 'Transfer' | 'Free' | 'ForceTransfer' | 'Freeze'; } - /** @name PalletIndicesError (350) */ + /** @name PalletIndicesError (349) */ interface PalletIndicesError extends Enum { readonly isNotAssigned: boolean; readonly isNotOwner: boolean; @@ -3593,14 +3582,14 @@ declare module '@polkadot/types/lookup' { readonly type: 'NotAssigned' | 'NotOwner' | 'InUse' | 'NotTransfer' | 'Permanent'; } - /** @name PalletBalancesBalanceLock (352) */ + /** @name PalletBalancesBalanceLock (351) */ interface PalletBalancesBalanceLock extends Struct { readonly id: U8aFixed; readonly amount: u128; readonly reasons: PolymeshCommonUtilitiesBalancesReasons; } - /** @name PolymeshCommonUtilitiesBalancesReasons (353) */ + /** @name PolymeshCommonUtilitiesBalancesReasons (352) */ interface PolymeshCommonUtilitiesBalancesReasons extends Enum { readonly isFee: boolean; readonly isMisc: boolean; @@ -3608,7 +3597,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Fee' | 'Misc' | 'All'; } - /** @name PalletBalancesCall (354) */ + /** @name PalletBalancesCall (353) */ interface PalletBalancesCall extends Enum { readonly isTransfer: boolean; readonly asTransfer: { @@ -3650,7 +3639,7 @@ declare module '@polkadot/types/lookup' { | 'BurnAccountBalance'; } - /** @name PalletBalancesError (355) */ + /** @name PalletBalancesError (354) */ interface PalletBalancesError extends Enum { readonly isLiquidityRestrictions: boolean; readonly isOverflow: boolean; @@ -3665,14 +3654,14 @@ declare module '@polkadot/types/lookup' { | 'ReceiverCddMissing'; } - /** @name PalletTransactionPaymentReleases (357) */ + /** @name PalletTransactionPaymentReleases (356) */ interface PalletTransactionPaymentReleases extends Enum { readonly isV1Ancient: boolean; readonly isV2: boolean; readonly type: 'V1Ancient' | 'V2'; } - /** @name SpWeightsWeightToFeeCoefficient (359) */ + /** @name SpWeightsWeightToFeeCoefficient (358) */ interface SpWeightsWeightToFeeCoefficient extends Struct { readonly coeffInteger: u128; readonly coeffFrac: Perbill; @@ -3680,24 +3669,24 @@ declare module '@polkadot/types/lookup' { readonly degree: u8; } - /** @name PolymeshPrimitivesIdentityDidRecord (360) */ + /** @name PolymeshPrimitivesIdentityDidRecord (359) */ interface PolymeshPrimitivesIdentityDidRecord extends Struct { readonly primaryKey: Option; } - /** @name PalletIdentityClaim1stKey (362) */ + /** @name PalletIdentityClaim1stKey (361) */ interface PalletIdentityClaim1stKey extends Struct { readonly target: PolymeshPrimitivesIdentityId; readonly claimType: PolymeshPrimitivesIdentityClaimClaimType; } - /** @name PalletIdentityClaim2ndKey (363) */ + /** @name PalletIdentityClaim2ndKey (362) */ interface PalletIdentityClaim2ndKey extends Struct { readonly issuer: PolymeshPrimitivesIdentityId; readonly scope: Option; } - /** @name PolymeshPrimitivesSecondaryKeyKeyRecord (364) */ + /** @name PolymeshPrimitivesSecondaryKeyKeyRecord (363) */ interface PolymeshPrimitivesSecondaryKeyKeyRecord extends Enum { readonly isPrimaryKey: boolean; readonly asPrimaryKey: PolymeshPrimitivesIdentityId; @@ -3710,7 +3699,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'PrimaryKey' | 'SecondaryKey' | 'MultiSigSignerKey'; } - /** @name PolymeshPrimitivesAuthorization (367) */ + /** @name PolymeshPrimitivesAuthorization (366) */ interface PolymeshPrimitivesAuthorization extends Struct { readonly authorizationData: PolymeshPrimitivesAuthorizationAuthorizationData; readonly authorizedBy: PolymeshPrimitivesIdentityId; @@ -3719,7 +3708,7 @@ declare module '@polkadot/types/lookup' { readonly count: u32; } - /** @name PalletIdentityCall (370) */ + /** @name PalletIdentityCall (369) */ interface PalletIdentityCall extends Enum { readonly isCddRegisterDid: boolean; readonly asCddRegisterDid: { @@ -3854,19 +3843,19 @@ declare module '@polkadot/types/lookup' { | 'UnlinkChildIdentity'; } - /** @name PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuth (372) */ + /** @name PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuth (371) */ interface PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuth extends Struct { readonly secondaryKey: PolymeshPrimitivesSecondaryKey; readonly authSignature: H512; } - /** @name PolymeshCommonUtilitiesIdentityCreateChildIdentityWithAuth (375) */ + /** @name PolymeshCommonUtilitiesIdentityCreateChildIdentityWithAuth (374) */ interface PolymeshCommonUtilitiesIdentityCreateChildIdentityWithAuth extends Struct { readonly key: AccountId32; readonly authSignature: H512; } - /** @name PalletIdentityError (376) */ + /** @name PalletIdentityError (375) */ interface PalletIdentityError extends Enum { readonly isAlreadyLinked: boolean; readonly isMissingCurrentIdentity: boolean; @@ -3937,14 +3926,14 @@ declare module '@polkadot/types/lookup' { | 'ExceptNotAllowedForExtrinsics'; } - /** @name PolymeshCommonUtilitiesGroupInactiveMember (378) */ + /** @name PolymeshCommonUtilitiesGroupInactiveMember (377) */ interface PolymeshCommonUtilitiesGroupInactiveMember extends Struct { readonly id: PolymeshPrimitivesIdentityId; readonly deactivatedAt: u64; readonly expiry: Option; } - /** @name PalletGroupCall (379) */ + /** @name PalletGroupCall (378) */ interface PalletGroupCall extends Enum { readonly isSetActiveMembersLimit: boolean; readonly asSetActiveMembersLimit: { @@ -3984,7 +3973,7 @@ declare module '@polkadot/types/lookup' { | 'AbdicateMembership'; } - /** @name PalletGroupError (380) */ + /** @name PalletGroupError (379) */ interface PalletGroupError extends Enum { readonly isOnlyPrimaryKeyAllowed: boolean; readonly isDuplicateMember: boolean; @@ -4003,7 +3992,7 @@ declare module '@polkadot/types/lookup' { | 'ActiveMembersLimitOverflow'; } - /** @name PalletCommitteeCall (382) */ + /** @name PalletCommitteeCall (381) */ interface PalletCommitteeCall extends Enum { readonly isSetVoteThreshold: boolean; readonly asSetVoteThreshold: { @@ -4037,7 +4026,7 @@ declare module '@polkadot/types/lookup' { | 'Vote'; } - /** @name PalletMultisigCall (388) */ + /** @name PalletMultisigCall (387) */ interface PalletMultisigCall extends Enum { readonly isCreateMultisig: boolean; readonly asCreateMultisig: { @@ -4171,7 +4160,7 @@ declare module '@polkadot/types/lookup' { | 'RemoveCreatorControls'; } - /** @name PalletBridgeCall (389) */ + /** @name PalletBridgeCall (388) */ interface PalletBridgeCall extends Enum { readonly isChangeController: boolean; readonly asChangeController: { @@ -4256,7 +4245,7 @@ declare module '@polkadot/types/lookup' { | 'RemoveTxs'; } - /** @name PalletStakingCall (393) */ + /** @name PalletStakingCall (392) */ interface PalletStakingCall extends Enum { readonly isBond: boolean; readonly asBond: { @@ -4433,7 +4422,7 @@ declare module '@polkadot/types/lookup' { | 'ChillFromGovernance'; } - /** @name PalletStakingRewardDestination (394) */ + /** @name PalletStakingRewardDestination (393) */ interface PalletStakingRewardDestination extends Enum { readonly isStaked: boolean; readonly isStash: boolean; @@ -4443,13 +4432,13 @@ declare module '@polkadot/types/lookup' { readonly type: 'Staked' | 'Stash' | 'Controller' | 'Account'; } - /** @name PalletStakingValidatorPrefs (395) */ + /** @name PalletStakingValidatorPrefs (394) */ interface PalletStakingValidatorPrefs extends Struct { readonly commission: Compact; readonly blocked: bool; } - /** @name PalletStakingCompactAssignments (401) */ + /** @name PalletStakingCompactAssignments (400) */ interface PalletStakingCompactAssignments extends Struct { readonly votes1: Vec, Compact]>>; readonly votes2: Vec< @@ -4499,42 +4488,42 @@ declare module '@polkadot/types/lookup' { >; } - /** @name SpNposElectionsElectionScore (452) */ + /** @name SpNposElectionsElectionScore (451) */ interface SpNposElectionsElectionScore extends Struct { readonly minimalStake: u128; readonly sumStake: u128; readonly sumStakeSquared: u128; } - /** @name PalletStakingElectionSize (453) */ + /** @name PalletStakingElectionSize (452) */ interface PalletStakingElectionSize extends Struct { readonly validators: Compact; readonly nominators: Compact; } - /** @name PalletSessionCall (454) */ + /** @name PalletSessionCall (453) */ interface PalletSessionCall extends Enum { readonly isSetKeys: boolean; readonly asSetKeys: { - readonly keys_: PolymeshRuntimeDevelopRuntimeSessionKeys; + readonly keys_: PolymeshRuntimeTestnetRuntimeSessionKeys; readonly proof: Bytes; } & Struct; readonly isPurgeKeys: boolean; readonly type: 'SetKeys' | 'PurgeKeys'; } - /** @name PolymeshRuntimeDevelopRuntimeSessionKeys (455) */ - interface PolymeshRuntimeDevelopRuntimeSessionKeys extends Struct { + /** @name PolymeshRuntimeTestnetRuntimeSessionKeys (454) */ + interface PolymeshRuntimeTestnetRuntimeSessionKeys extends Struct { readonly grandpa: SpConsensusGrandpaAppPublic; readonly babe: SpConsensusBabeAppPublic; readonly imOnline: PalletImOnlineSr25519AppSr25519Public; readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic; } - /** @name SpAuthorityDiscoveryAppPublic (456) */ + /** @name SpAuthorityDiscoveryAppPublic (455) */ interface SpAuthorityDiscoveryAppPublic extends SpCoreSr25519Public {} - /** @name PalletGrandpaCall (457) */ + /** @name PalletGrandpaCall (456) */ interface PalletGrandpaCall extends Enum { readonly isReportEquivocation: boolean; readonly asReportEquivocation: { @@ -4554,13 +4543,13 @@ declare module '@polkadot/types/lookup' { readonly type: 'ReportEquivocation' | 'ReportEquivocationUnsigned' | 'NoteStalled'; } - /** @name SpConsensusGrandpaEquivocationProof (458) */ + /** @name SpConsensusGrandpaEquivocationProof (457) */ interface SpConsensusGrandpaEquivocationProof extends Struct { readonly setId: u64; readonly equivocation: SpConsensusGrandpaEquivocation; } - /** @name SpConsensusGrandpaEquivocation (459) */ + /** @name SpConsensusGrandpaEquivocation (458) */ interface SpConsensusGrandpaEquivocation extends Enum { readonly isPrevote: boolean; readonly asPrevote: FinalityGrandpaEquivocationPrevote; @@ -4569,7 +4558,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Prevote' | 'Precommit'; } - /** @name FinalityGrandpaEquivocationPrevote (460) */ + /** @name FinalityGrandpaEquivocationPrevote (459) */ interface FinalityGrandpaEquivocationPrevote extends Struct { readonly roundNumber: u64; readonly identity: SpConsensusGrandpaAppPublic; @@ -4577,19 +4566,19 @@ declare module '@polkadot/types/lookup' { readonly second: ITuple<[FinalityGrandpaPrevote, SpConsensusGrandpaAppSignature]>; } - /** @name FinalityGrandpaPrevote (461) */ + /** @name FinalityGrandpaPrevote (460) */ interface FinalityGrandpaPrevote extends Struct { readonly targetHash: H256; readonly targetNumber: u32; } - /** @name SpConsensusGrandpaAppSignature (462) */ + /** @name SpConsensusGrandpaAppSignature (461) */ interface SpConsensusGrandpaAppSignature extends SpCoreEd25519Signature {} - /** @name SpCoreEd25519Signature (463) */ + /** @name SpCoreEd25519Signature (462) */ interface SpCoreEd25519Signature extends U8aFixed {} - /** @name FinalityGrandpaEquivocationPrecommit (465) */ + /** @name FinalityGrandpaEquivocationPrecommit (464) */ interface FinalityGrandpaEquivocationPrecommit extends Struct { readonly roundNumber: u64; readonly identity: SpConsensusGrandpaAppPublic; @@ -4597,13 +4586,13 @@ declare module '@polkadot/types/lookup' { readonly second: ITuple<[FinalityGrandpaPrecommit, SpConsensusGrandpaAppSignature]>; } - /** @name FinalityGrandpaPrecommit (466) */ + /** @name FinalityGrandpaPrecommit (465) */ interface FinalityGrandpaPrecommit extends Struct { readonly targetHash: H256; readonly targetNumber: u32; } - /** @name PalletImOnlineCall (468) */ + /** @name PalletImOnlineCall (467) */ interface PalletImOnlineCall extends Enum { readonly isHeartbeat: boolean; readonly asHeartbeat: { @@ -4613,7 +4602,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Heartbeat'; } - /** @name PalletImOnlineHeartbeat (469) */ + /** @name PalletImOnlineHeartbeat (468) */ interface PalletImOnlineHeartbeat extends Struct { readonly blockNumber: u32; readonly networkState: SpCoreOffchainOpaqueNetworkState; @@ -4622,42 +4611,19 @@ declare module '@polkadot/types/lookup' { readonly validatorsLen: u32; } - /** @name SpCoreOffchainOpaqueNetworkState (470) */ + /** @name SpCoreOffchainOpaqueNetworkState (469) */ interface SpCoreOffchainOpaqueNetworkState extends Struct { readonly peerId: OpaquePeerId; readonly externalAddresses: Vec; } - /** @name PalletImOnlineSr25519AppSr25519Signature (474) */ + /** @name PalletImOnlineSr25519AppSr25519Signature (473) */ interface PalletImOnlineSr25519AppSr25519Signature extends SpCoreSr25519Signature {} - /** @name SpCoreSr25519Signature (475) */ + /** @name SpCoreSr25519Signature (474) */ interface SpCoreSr25519Signature extends U8aFixed {} - /** @name PalletSudoCall (476) */ - interface PalletSudoCall extends Enum { - readonly isSudo: boolean; - readonly asSudo: { - readonly call: Call; - } & Struct; - readonly isSudoUncheckedWeight: boolean; - readonly asSudoUncheckedWeight: { - readonly call: Call; - readonly weight: SpWeightsWeightV2Weight; - } & Struct; - readonly isSetKey: boolean; - readonly asSetKey: { - readonly new_: MultiAddress; - } & Struct; - readonly isSudoAs: boolean; - readonly asSudoAs: { - readonly who: MultiAddress; - readonly call: Call; - } & Struct; - readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs'; - } - - /** @name PalletAssetCall (477) */ + /** @name PalletAssetCall (475) */ interface PalletAssetCall extends Enum { readonly isRegisterTicker: boolean; readonly asRegisterTicker: { @@ -4849,7 +4815,7 @@ declare module '@polkadot/types/lookup' { | 'RemoveTickerPreApproval'; } - /** @name PalletCorporateActionsDistributionCall (479) */ + /** @name PalletCorporateActionsDistributionCall (477) */ interface PalletCorporateActionsDistributionCall extends Enum { readonly isDistribute: boolean; readonly asDistribute: { @@ -4881,7 +4847,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Distribute' | 'Claim' | 'PushBenefit' | 'Reclaim' | 'RemoveDistribution'; } - /** @name PalletAssetCheckpointCall (481) */ + /** @name PalletAssetCheckpointCall (479) */ interface PalletAssetCheckpointCall extends Enum { readonly isCreateCheckpoint: boolean; readonly asCreateCheckpoint: { @@ -4908,7 +4874,7 @@ declare module '@polkadot/types/lookup' { | 'RemoveSchedule'; } - /** @name PalletComplianceManagerCall (482) */ + /** @name PalletComplianceManagerCall (480) */ interface PalletComplianceManagerCall extends Enum { readonly isAddComplianceRequirement: boolean; readonly asAddComplianceRequirement: { @@ -4965,7 +4931,7 @@ declare module '@polkadot/types/lookup' { | 'ChangeComplianceRequirement'; } - /** @name PalletCorporateActionsCall (483) */ + /** @name PalletCorporateActionsCall (481) */ interface PalletCorporateActionsCall extends Enum { readonly isSetMaxDetailsLength: boolean; readonly asSetMaxDetailsLength: { @@ -5034,7 +5000,7 @@ declare module '@polkadot/types/lookup' { | 'InitiateCorporateActionAndDistribute'; } - /** @name PalletCorporateActionsRecordDateSpec (485) */ + /** @name PalletCorporateActionsRecordDateSpec (483) */ interface PalletCorporateActionsRecordDateSpec extends Enum { readonly isScheduled: boolean; readonly asScheduled: u64; @@ -5045,7 +5011,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Scheduled' | 'ExistingSchedule' | 'Existing'; } - /** @name PalletCorporateActionsInitiateCorporateActionArgs (488) */ + /** @name PalletCorporateActionsInitiateCorporateActionArgs (486) */ interface PalletCorporateActionsInitiateCorporateActionArgs extends Struct { readonly ticker: PolymeshPrimitivesTicker; readonly kind: PalletCorporateActionsCaKind; @@ -5057,7 +5023,7 @@ declare module '@polkadot/types/lookup' { readonly withholdingTax: Option>>; } - /** @name PalletCorporateActionsBallotCall (489) */ + /** @name PalletCorporateActionsBallotCall (487) */ interface PalletCorporateActionsBallotCall extends Enum { readonly isAttachBallot: boolean; readonly asAttachBallot: { @@ -5099,7 +5065,7 @@ declare module '@polkadot/types/lookup' { | 'RemoveBallot'; } - /** @name PalletPipsCall (490) */ + /** @name PalletPipsCall (488) */ interface PalletPipsCall extends Enum { readonly isSetPruneHistoricalPips: boolean; readonly asSetPruneHistoricalPips: { @@ -5190,7 +5156,7 @@ declare module '@polkadot/types/lookup' { | 'ExpireScheduledPip'; } - /** @name PalletPipsSnapshotResult (493) */ + /** @name PalletPipsSnapshotResult (491) */ interface PalletPipsSnapshotResult extends Enum { readonly isApprove: boolean; readonly isReject: boolean; @@ -5198,7 +5164,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Approve' | 'Reject' | 'Skip'; } - /** @name PalletPortfolioCall (494) */ + /** @name PalletPortfolioCall (492) */ interface PalletPortfolioCall extends Enum { readonly isCreatePortfolio: boolean; readonly asCreatePortfolio: { @@ -5264,13 +5230,13 @@ declare module '@polkadot/types/lookup' { | 'CreateCustodyPortfolio'; } - /** @name PolymeshPrimitivesPortfolioFund (496) */ + /** @name PolymeshPrimitivesPortfolioFund (494) */ interface PolymeshPrimitivesPortfolioFund extends Struct { readonly description: PolymeshPrimitivesPortfolioFundDescription; readonly memo: Option; } - /** @name PalletProtocolFeeCall (497) */ + /** @name PalletProtocolFeeCall (495) */ interface PalletProtocolFeeCall extends Enum { readonly isChangeCoefficient: boolean; readonly asChangeCoefficient: { @@ -5284,7 +5250,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'ChangeCoefficient' | 'ChangeBaseFee'; } - /** @name PolymeshCommonUtilitiesProtocolFeeProtocolOp (498) */ + /** @name PolymeshCommonUtilitiesProtocolFeeProtocolOp (496) */ interface PolymeshCommonUtilitiesProtocolFeeProtocolOp extends Enum { readonly isAssetRegisterTicker: boolean; readonly isAssetIssue: boolean; @@ -5321,7 +5287,7 @@ declare module '@polkadot/types/lookup' { | 'IdentityCreateChildIdentity'; } - /** @name PalletSchedulerCall (499) */ + /** @name PalletSchedulerCall (497) */ interface PalletSchedulerCall extends Enum { readonly isSchedule: boolean; readonly asSchedule: { @@ -5371,7 +5337,7 @@ declare module '@polkadot/types/lookup' { | 'ScheduleNamedAfter'; } - /** @name PalletSettlementCall (501) */ + /** @name PalletSettlementCall (499) */ interface PalletSettlementCall extends Enum { readonly isCreateVenue: boolean; readonly asCreateVenue: { @@ -5511,7 +5477,7 @@ declare module '@polkadot/types/lookup' { | 'WithdrawAffirmationWithCount'; } - /** @name PolymeshPrimitivesSettlementReceiptDetails (503) */ + /** @name PolymeshPrimitivesSettlementReceiptDetails (501) */ interface PolymeshPrimitivesSettlementReceiptDetails extends Struct { readonly uid: u64; readonly instructionId: u64; @@ -5521,7 +5487,7 @@ declare module '@polkadot/types/lookup' { readonly metadata: Option; } - /** @name SpRuntimeMultiSignature (504) */ + /** @name SpRuntimeMultiSignature (502) */ interface SpRuntimeMultiSignature extends Enum { readonly isEd25519: boolean; readonly asEd25519: SpCoreEd25519Signature; @@ -5532,24 +5498,24 @@ declare module '@polkadot/types/lookup' { readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa'; } - /** @name SpCoreEcdsaSignature (505) */ + /** @name SpCoreEcdsaSignature (503) */ interface SpCoreEcdsaSignature extends U8aFixed {} - /** @name PolymeshPrimitivesSettlementAffirmationCount (508) */ + /** @name PolymeshPrimitivesSettlementAffirmationCount (506) */ interface PolymeshPrimitivesSettlementAffirmationCount extends Struct { readonly senderAssetCount: PolymeshPrimitivesSettlementAssetCount; readonly receiverAssetCount: PolymeshPrimitivesSettlementAssetCount; readonly offchainCount: u32; } - /** @name PolymeshPrimitivesSettlementAssetCount (509) */ + /** @name PolymeshPrimitivesSettlementAssetCount (507) */ interface PolymeshPrimitivesSettlementAssetCount extends Struct { readonly fungible: u32; readonly nonFungible: u32; readonly offChain: u32; } - /** @name PalletStatisticsCall (511) */ + /** @name PalletStatisticsCall (509) */ interface PalletStatisticsCall extends Enum { readonly isSetActiveAssetStats: boolean; readonly asSetActiveAssetStats: { @@ -5580,7 +5546,7 @@ declare module '@polkadot/types/lookup' { | 'SetEntitiesExempt'; } - /** @name PalletStoCall (516) */ + /** @name PalletStoCall (514) */ interface PalletStoCall extends Enum { readonly isCreateFundraiser: boolean; readonly asCreateFundraiser: { @@ -5636,13 +5602,13 @@ declare module '@polkadot/types/lookup' { | 'Stop'; } - /** @name PalletStoPriceTier (518) */ + /** @name PalletStoPriceTier (516) */ interface PalletStoPriceTier extends Struct { readonly total: u128; readonly price: u128; } - /** @name PalletTreasuryCall (520) */ + /** @name PalletTreasuryCall (518) */ interface PalletTreasuryCall extends Enum { readonly isDisbursement: boolean; readonly asDisbursement: { @@ -5655,13 +5621,13 @@ declare module '@polkadot/types/lookup' { readonly type: 'Disbursement' | 'Reimbursement'; } - /** @name PolymeshPrimitivesBeneficiary (522) */ + /** @name PolymeshPrimitivesBeneficiary (520) */ interface PolymeshPrimitivesBeneficiary extends Struct { readonly id: PolymeshPrimitivesIdentityId; readonly amount: u128; } - /** @name PalletUtilityCall (523) */ + /** @name PalletUtilityCall (521) */ interface PalletUtilityCall extends Enum { readonly isBatch: boolean; readonly asBatch: { @@ -5679,7 +5645,7 @@ declare module '@polkadot/types/lookup' { } & Struct; readonly isDispatchAs: boolean; readonly asDispatchAs: { - readonly asOrigin: PolymeshRuntimeDevelopRuntimeOriginCaller; + readonly asOrigin: PolymeshRuntimeTestnetRuntimeOriginCaller; readonly call: Call; } & Struct; readonly isForceBatch: boolean; @@ -5703,6 +5669,11 @@ declare module '@polkadot/types/lookup' { readonly asBatchOptimistic: { readonly calls: Vec; } & Struct; + readonly isAsDerivative: boolean; + readonly asAsDerivative: { + readonly index: u16; + readonly call: Call; + } & Struct; readonly type: | 'Batch' | 'RelayTx' @@ -5712,17 +5683,18 @@ declare module '@polkadot/types/lookup' { | 'WithWeight' | 'BatchOld' | 'BatchAtomic' - | 'BatchOptimistic'; + | 'BatchOptimistic' + | 'AsDerivative'; } - /** @name PalletUtilityUniqueCall (525) */ + /** @name PalletUtilityUniqueCall (523) */ interface PalletUtilityUniqueCall extends Struct { readonly nonce: u64; readonly call: Call; } - /** @name PolymeshRuntimeDevelopRuntimeOriginCaller (526) */ - interface PolymeshRuntimeDevelopRuntimeOriginCaller extends Enum { + /** @name PolymeshRuntimeTestnetRuntimeOriginCaller (524) */ + interface PolymeshRuntimeTestnetRuntimeOriginCaller extends Enum { readonly isSystem: boolean; readonly asSystem: FrameSupportDispatchRawOrigin; readonly isVoid: boolean; @@ -5740,7 +5712,7 @@ declare module '@polkadot/types/lookup' { | 'UpgradeCommittee'; } - /** @name FrameSupportDispatchRawOrigin (527) */ + /** @name FrameSupportDispatchRawOrigin (525) */ interface FrameSupportDispatchRawOrigin extends Enum { readonly isRoot: boolean; readonly isSigned: boolean; @@ -5749,31 +5721,31 @@ declare module '@polkadot/types/lookup' { readonly type: 'Root' | 'Signed' | 'None'; } - /** @name PalletCommitteeRawOriginInstance1 (528) */ + /** @name PalletCommitteeRawOriginInstance1 (526) */ interface PalletCommitteeRawOriginInstance1 extends Enum { readonly isEndorsed: boolean; readonly type: 'Endorsed'; } - /** @name PalletCommitteeRawOriginInstance3 (529) */ + /** @name PalletCommitteeRawOriginInstance3 (527) */ interface PalletCommitteeRawOriginInstance3 extends Enum { readonly isEndorsed: boolean; readonly type: 'Endorsed'; } - /** @name PalletCommitteeRawOriginInstance4 (530) */ + /** @name PalletCommitteeRawOriginInstance4 (528) */ interface PalletCommitteeRawOriginInstance4 extends Enum { readonly isEndorsed: boolean; readonly type: 'Endorsed'; } - /** @name SpCoreVoid (531) */ + /** @name SpCoreVoid (529) */ type SpCoreVoid = Null; - /** @name PalletBaseCall (532) */ + /** @name PalletBaseCall (530) */ type PalletBaseCall = Null; - /** @name PalletExternalAgentsCall (533) */ + /** @name PalletExternalAgentsCall (531) */ interface PalletExternalAgentsCall extends Enum { readonly isCreateGroup: boolean; readonly asCreateGroup: { @@ -5829,7 +5801,7 @@ declare module '@polkadot/types/lookup' { | 'CreateAndChangeCustomGroup'; } - /** @name PalletRelayerCall (534) */ + /** @name PalletRelayerCall (532) */ interface PalletRelayerCall extends Enum { readonly isSetPayingKey: boolean; readonly asSetPayingKey: { @@ -5869,7 +5841,7 @@ declare module '@polkadot/types/lookup' { | 'DecreasePolyxLimit'; } - /** @name PalletContractsCall (535) */ + /** @name PalletContractsCall (533) */ interface PalletContractsCall extends Enum { readonly isCallOldWeight: boolean; readonly asCallOldWeight: { @@ -5950,14 +5922,14 @@ declare module '@polkadot/types/lookup' { | 'Instantiate'; } - /** @name PalletContractsWasmDeterminism (539) */ + /** @name PalletContractsWasmDeterminism (537) */ interface PalletContractsWasmDeterminism extends Enum { readonly isDeterministic: boolean; readonly isAllowIndeterminism: boolean; readonly type: 'Deterministic' | 'AllowIndeterminism'; } - /** @name PolymeshContractsCall (540) */ + /** @name PolymeshContractsCall (538) */ interface PolymeshContractsCall extends Enum { readonly isInstantiateWithCodePerms: boolean; readonly asInstantiateWithCodePerms: { @@ -6015,18 +5987,18 @@ declare module '@polkadot/types/lookup' { | 'UpgradeApi'; } - /** @name PolymeshContractsNextUpgrade (543) */ + /** @name PolymeshContractsNextUpgrade (541) */ interface PolymeshContractsNextUpgrade extends Struct { readonly chainVersion: PolymeshContractsChainVersion; readonly apiHash: PolymeshContractsApiCodeHash; } - /** @name PolymeshContractsApiCodeHash (544) */ + /** @name PolymeshContractsApiCodeHash (542) */ interface PolymeshContractsApiCodeHash extends Struct { readonly hash_: H256; } - /** @name PalletPreimageCall (545) */ + /** @name PalletPreimageCall (543) */ interface PalletPreimageCall extends Enum { readonly isNotePreimage: boolean; readonly asNotePreimage: { @@ -6047,7 +6019,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'NotePreimage' | 'UnnotePreimage' | 'RequestPreimage' | 'UnrequestPreimage'; } - /** @name PalletNftCall (546) */ + /** @name PalletNftCall (544) */ interface PalletNftCall extends Enum { readonly isCreateNftCollection: boolean; readonly asCreateNftCollection: { @@ -6077,17 +6049,17 @@ declare module '@polkadot/types/lookup' { readonly type: 'CreateNftCollection' | 'IssueNft' | 'RedeemNft' | 'ControllerTransfer'; } - /** @name PolymeshPrimitivesNftNftCollectionKeys (548) */ + /** @name PolymeshPrimitivesNftNftCollectionKeys (546) */ interface PolymeshPrimitivesNftNftCollectionKeys extends Vec {} - /** @name PolymeshPrimitivesNftNftMetadataAttribute (551) */ + /** @name PolymeshPrimitivesNftNftMetadataAttribute (549) */ interface PolymeshPrimitivesNftNftMetadataAttribute extends Struct { readonly key: PolymeshPrimitivesAssetMetadataAssetMetadataKey; readonly value: Bytes; } - /** @name PalletTestUtilsCall (552) */ + /** @name PalletTestUtilsCall (550) */ interface PalletTestUtilsCall extends Enum { readonly isRegisterDid: boolean; readonly asRegisterDid: { @@ -6105,7 +6077,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'RegisterDid' | 'MockCddRegisterDid' | 'GetMyDid' | 'GetCddOf'; } - /** @name PalletCommitteePolymeshVotes (553) */ + /** @name PalletCommitteePolymeshVotes (551) */ interface PalletCommitteePolymeshVotes extends Struct { readonly index: u32; readonly ayes: Vec; @@ -6113,7 +6085,7 @@ declare module '@polkadot/types/lookup' { readonly expiry: PolymeshCommonUtilitiesMaybeBlock; } - /** @name PalletCommitteeError (555) */ + /** @name PalletCommitteeError (553) */ interface PalletCommitteeError extends Enum { readonly isDuplicateVote: boolean; readonly isNotAMember: boolean; @@ -6136,7 +6108,7 @@ declare module '@polkadot/types/lookup' { | 'ProposalsLimitReached'; } - /** @name PolymeshPrimitivesMultisigProposalDetails (565) */ + /** @name PolymeshPrimitivesMultisigProposalDetails (563) */ interface PolymeshPrimitivesMultisigProposalDetails extends Struct { readonly approvals: u64; readonly rejections: u64; @@ -6145,7 +6117,7 @@ declare module '@polkadot/types/lookup' { readonly autoClose: bool; } - /** @name PolymeshPrimitivesMultisigProposalStatus (566) */ + /** @name PolymeshPrimitivesMultisigProposalStatus (564) */ interface PolymeshPrimitivesMultisigProposalStatus extends Enum { readonly isInvalid: boolean; readonly isActiveOrExpired: boolean; @@ -6160,7 +6132,7 @@ declare module '@polkadot/types/lookup' { | 'Rejected'; } - /** @name PalletMultisigError (568) */ + /** @name PalletMultisigError (566) */ interface PalletMultisigError extends Enum { readonly isCddMissing: boolean; readonly isProposalMissing: boolean; @@ -6217,7 +6189,7 @@ declare module '@polkadot/types/lookup' { | 'CreatorControlsHaveBeenRemoved'; } - /** @name PalletBridgeBridgeTxDetail (570) */ + /** @name PalletBridgeBridgeTxDetail (568) */ interface PalletBridgeBridgeTxDetail extends Struct { readonly amount: u128; readonly status: PalletBridgeBridgeTxStatus; @@ -6225,7 +6197,7 @@ declare module '@polkadot/types/lookup' { readonly txHash: H256; } - /** @name PalletBridgeBridgeTxStatus (571) */ + /** @name PalletBridgeBridgeTxStatus (569) */ interface PalletBridgeBridgeTxStatus extends Enum { readonly isAbsent: boolean; readonly isPending: boolean; @@ -6236,7 +6208,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Absent' | 'Pending' | 'Frozen' | 'Timelocked' | 'Handled'; } - /** @name PalletBridgeError (574) */ + /** @name PalletBridgeError (572) */ interface PalletBridgeError extends Enum { readonly isControllerNotSet: boolean; readonly isBadCaller: boolean; @@ -6267,7 +6239,7 @@ declare module '@polkadot/types/lookup' { | 'TimelockedTx'; } - /** @name PalletStakingStakingLedger (575) */ + /** @name PalletStakingStakingLedger (573) */ interface PalletStakingStakingLedger extends Struct { readonly stash: AccountId32; readonly total: Compact; @@ -6276,32 +6248,32 @@ declare module '@polkadot/types/lookup' { readonly claimedRewards: Vec; } - /** @name PalletStakingUnlockChunk (577) */ + /** @name PalletStakingUnlockChunk (575) */ interface PalletStakingUnlockChunk extends Struct { readonly value: Compact; readonly era: Compact; } - /** @name PalletStakingNominations (578) */ + /** @name PalletStakingNominations (576) */ interface PalletStakingNominations extends Struct { readonly targets: Vec; readonly submittedIn: u32; readonly suppressed: bool; } - /** @name PalletStakingActiveEraInfo (579) */ + /** @name PalletStakingActiveEraInfo (577) */ interface PalletStakingActiveEraInfo extends Struct { readonly index: u32; readonly start: Option; } - /** @name PalletStakingEraRewardPoints (581) */ + /** @name PalletStakingEraRewardPoints (579) */ interface PalletStakingEraRewardPoints extends Struct { readonly total: u32; readonly individual: BTreeMap; } - /** @name PalletStakingForcing (584) */ + /** @name PalletStakingForcing (582) */ interface PalletStakingForcing extends Enum { readonly isNotForcing: boolean; readonly isForceNew: boolean; @@ -6310,7 +6282,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'NotForcing' | 'ForceNew' | 'ForceNone' | 'ForceAlways'; } - /** @name PalletStakingUnappliedSlash (586) */ + /** @name PalletStakingUnappliedSlash (584) */ interface PalletStakingUnappliedSlash extends Struct { readonly validator: AccountId32; readonly own: u128; @@ -6319,7 +6291,7 @@ declare module '@polkadot/types/lookup' { readonly payout: u128; } - /** @name PalletStakingSlashingSlashingSpans (590) */ + /** @name PalletStakingSlashingSlashingSpans (588) */ interface PalletStakingSlashingSlashingSpans extends Struct { readonly spanIndex: u32; readonly lastStart: u32; @@ -6327,20 +6299,20 @@ declare module '@polkadot/types/lookup' { readonly prior: Vec; } - /** @name PalletStakingSlashingSpanRecord (591) */ + /** @name PalletStakingSlashingSpanRecord (589) */ interface PalletStakingSlashingSpanRecord extends Struct { readonly slashed: u128; readonly paidOut: u128; } - /** @name PalletStakingElectionResult (594) */ + /** @name PalletStakingElectionResult (592) */ interface PalletStakingElectionResult extends Struct { readonly electedStashes: Vec; readonly exposures: Vec>; readonly compute: PalletStakingElectionCompute; } - /** @name PalletStakingElectionStatus (595) */ + /** @name PalletStakingElectionStatus (593) */ interface PalletStakingElectionStatus extends Enum { readonly isClosed: boolean; readonly isOpen: boolean; @@ -6348,13 +6320,13 @@ declare module '@polkadot/types/lookup' { readonly type: 'Closed' | 'Open'; } - /** @name PalletStakingPermissionedIdentityPrefs (596) */ + /** @name PalletStakingPermissionedIdentityPrefs (594) */ interface PalletStakingPermissionedIdentityPrefs extends Struct { readonly intendedCount: u32; readonly runningCount: u32; } - /** @name PalletStakingReleases (597) */ + /** @name PalletStakingReleases (595) */ interface PalletStakingReleases extends Enum { readonly isV100Ancient: boolean; readonly isV200: boolean; @@ -6367,7 +6339,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'V100Ancient' | 'V200' | 'V300' | 'V400' | 'V500' | 'V600' | 'V601' | 'V700'; } - /** @name PalletStakingError (599) */ + /** @name PalletStakingError (597) */ interface PalletStakingError extends Enum { readonly isNotController: boolean; readonly isNotStash: boolean; @@ -6458,16 +6430,16 @@ declare module '@polkadot/types/lookup' { | 'InvalidValidatorUnbondAmount'; } - /** @name SpStakingOffenceOffenceDetails (600) */ + /** @name SpStakingOffenceOffenceDetails (598) */ interface SpStakingOffenceOffenceDetails extends Struct { readonly offender: ITuple<[AccountId32, PalletStakingExposure]>; readonly reporters: Vec; } - /** @name SpCoreCryptoKeyTypeId (605) */ + /** @name SpCoreCryptoKeyTypeId (603) */ interface SpCoreCryptoKeyTypeId extends U8aFixed {} - /** @name PalletSessionError (606) */ + /** @name PalletSessionError (604) */ interface PalletSessionError extends Enum { readonly isInvalidProof: boolean; readonly isNoAssociatedValidatorId: boolean; @@ -6482,7 +6454,7 @@ declare module '@polkadot/types/lookup' { | 'NoAccount'; } - /** @name PalletGrandpaStoredState (607) */ + /** @name PalletGrandpaStoredState (605) */ interface PalletGrandpaStoredState extends Enum { readonly isLive: boolean; readonly isPendingPause: boolean; @@ -6499,7 +6471,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Live' | 'PendingPause' | 'Paused' | 'PendingResume'; } - /** @name PalletGrandpaStoredPendingChange (608) */ + /** @name PalletGrandpaStoredPendingChange (606) */ interface PalletGrandpaStoredPendingChange extends Struct { readonly scheduledAt: u32; readonly delay: u32; @@ -6507,7 +6479,7 @@ declare module '@polkadot/types/lookup' { readonly forced: Option; } - /** @name PalletGrandpaError (610) */ + /** @name PalletGrandpaError (608) */ interface PalletGrandpaError extends Enum { readonly isPauseFailed: boolean; readonly isResumeFailed: boolean; @@ -6526,38 +6498,32 @@ declare module '@polkadot/types/lookup' { | 'DuplicateOffenceReport'; } - /** @name PalletImOnlineBoundedOpaqueNetworkState (614) */ + /** @name PalletImOnlineBoundedOpaqueNetworkState (612) */ interface PalletImOnlineBoundedOpaqueNetworkState extends Struct { readonly peerId: Bytes; readonly externalAddresses: Vec; } - /** @name PalletImOnlineError (618) */ + /** @name PalletImOnlineError (616) */ interface PalletImOnlineError extends Enum { readonly isInvalidKey: boolean; readonly isDuplicatedHeartbeat: boolean; readonly type: 'InvalidKey' | 'DuplicatedHeartbeat'; } - /** @name PalletSudoError (620) */ - interface PalletSudoError extends Enum { - readonly isRequireSudo: boolean; - readonly type: 'RequireSudo'; - } - - /** @name PalletAssetTickerRegistration (621) */ + /** @name PalletAssetTickerRegistration (618) */ interface PalletAssetTickerRegistration extends Struct { readonly owner: PolymeshPrimitivesIdentityId; readonly expiry: Option; } - /** @name PalletAssetTickerRegistrationConfig (622) */ + /** @name PalletAssetTickerRegistrationConfig (619) */ interface PalletAssetTickerRegistrationConfig extends Struct { readonly maxTickerLength: u8; readonly registrationLength: Option; } - /** @name PalletAssetSecurityToken (623) */ + /** @name PalletAssetSecurityToken (620) */ interface PalletAssetSecurityToken extends Struct { readonly totalSupply: u128; readonly ownerDid: PolymeshPrimitivesIdentityId; @@ -6565,7 +6531,7 @@ declare module '@polkadot/types/lookup' { readonly assetType: PolymeshPrimitivesAssetAssetType; } - /** @name PalletAssetAssetOwnershipRelation (627) */ + /** @name PalletAssetAssetOwnershipRelation (624) */ interface PalletAssetAssetOwnershipRelation extends Enum { readonly isNotOwned: boolean; readonly isTickerOwned: boolean; @@ -6573,7 +6539,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'NotOwned' | 'TickerOwned' | 'AssetOwned'; } - /** @name PalletAssetError (633) */ + /** @name PalletAssetError (630) */ interface PalletAssetError extends Enum { readonly isUnauthorized: boolean; readonly isAssetAlreadyCreated: boolean; @@ -6612,6 +6578,8 @@ declare module '@polkadot/types/lookup' { readonly isIncompatibleAssetTypeUpdate: boolean; readonly isAssetMetadataKeyBelongsToNFTCollection: boolean; readonly isAssetMetadataValueIsEmpty: boolean; + readonly isNumberOfAssetMediatorsExceeded: boolean; + readonly isInvalidTickerCharacter: boolean; readonly type: | 'Unauthorized' | 'AssetAlreadyCreated' @@ -6649,10 +6617,12 @@ declare module '@polkadot/types/lookup' { | 'UnexpectedNonFungibleToken' | 'IncompatibleAssetTypeUpdate' | 'AssetMetadataKeyBelongsToNFTCollection' - | 'AssetMetadataValueIsEmpty'; + | 'AssetMetadataValueIsEmpty' + | 'NumberOfAssetMediatorsExceeded' + | 'InvalidTickerCharacter'; } - /** @name PalletCorporateActionsDistributionError (636) */ + /** @name PalletCorporateActionsDistributionError (633) */ interface PalletCorporateActionsDistributionError extends Enum { readonly isCaNotBenefit: boolean; readonly isAlreadyExists: boolean; @@ -6687,14 +6657,14 @@ declare module '@polkadot/types/lookup' { | 'DistributionPerShareIsZero'; } - /** @name PolymeshCommonUtilitiesCheckpointNextCheckpoints (640) */ + /** @name PolymeshCommonUtilitiesCheckpointNextCheckpoints (637) */ interface PolymeshCommonUtilitiesCheckpointNextCheckpoints extends Struct { readonly nextAt: u64; readonly totalPending: u64; readonly schedules: BTreeMap; } - /** @name PalletAssetCheckpointError (646) */ + /** @name PalletAssetCheckpointError (643) */ interface PalletAssetCheckpointError extends Enum { readonly isNoSuchSchedule: boolean; readonly isScheduleNotRemovable: boolean; @@ -6711,13 +6681,13 @@ declare module '@polkadot/types/lookup' { | 'ScheduleHasExpiredCheckpoints'; } - /** @name PolymeshPrimitivesComplianceManagerAssetCompliance (647) */ + /** @name PolymeshPrimitivesComplianceManagerAssetCompliance (644) */ interface PolymeshPrimitivesComplianceManagerAssetCompliance extends Struct { readonly paused: bool; readonly requirements: Vec; } - /** @name PalletComplianceManagerError (649) */ + /** @name PalletComplianceManagerError (646) */ interface PalletComplianceManagerError extends Enum { readonly isUnauthorized: boolean; readonly isDidNotExist: boolean; @@ -6736,7 +6706,7 @@ declare module '@polkadot/types/lookup' { | 'WeightLimitExceeded'; } - /** @name PalletCorporateActionsError (652) */ + /** @name PalletCorporateActionsError (649) */ interface PalletCorporateActionsError extends Enum { readonly isDetailsTooLong: boolean; readonly isDuplicateDidTax: boolean; @@ -6763,7 +6733,7 @@ declare module '@polkadot/types/lookup' { | 'NotTargetedByCA'; } - /** @name PalletCorporateActionsBallotError (654) */ + /** @name PalletCorporateActionsBallotError (651) */ interface PalletCorporateActionsBallotError extends Enum { readonly isCaNotNotice: boolean; readonly isAlreadyExists: boolean; @@ -6796,13 +6766,13 @@ declare module '@polkadot/types/lookup' { | 'RcvNotAllowed'; } - /** @name PalletPermissionsError (655) */ + /** @name PalletPermissionsError (652) */ interface PalletPermissionsError extends Enum { readonly isUnauthorizedCaller: boolean; readonly type: 'UnauthorizedCaller'; } - /** @name PalletPipsPipsMetadata (656) */ + /** @name PalletPipsPipsMetadata (653) */ interface PalletPipsPipsMetadata extends Struct { readonly id: u32; readonly url: Option; @@ -6812,20 +6782,20 @@ declare module '@polkadot/types/lookup' { readonly expiry: PolymeshCommonUtilitiesMaybeBlock; } - /** @name PalletPipsDepositInfo (658) */ + /** @name PalletPipsDepositInfo (655) */ interface PalletPipsDepositInfo extends Struct { readonly owner: AccountId32; readonly amount: u128; } - /** @name PalletPipsPip (659) */ + /** @name PalletPipsPip (656) */ interface PalletPipsPip extends Struct { readonly id: u32; readonly proposal: Call; readonly proposer: PalletPipsProposer; } - /** @name PalletPipsVotingResult (660) */ + /** @name PalletPipsVotingResult (657) */ interface PalletPipsVotingResult extends Struct { readonly ayesCount: u32; readonly ayesStake: u128; @@ -6833,17 +6803,17 @@ declare module '@polkadot/types/lookup' { readonly naysStake: u128; } - /** @name PalletPipsVote (661) */ + /** @name PalletPipsVote (658) */ interface PalletPipsVote extends ITuple<[bool, u128]> {} - /** @name PalletPipsSnapshotMetadata (662) */ + /** @name PalletPipsSnapshotMetadata (659) */ interface PalletPipsSnapshotMetadata extends Struct { readonly createdAt: u32; readonly madeBy: AccountId32; readonly id: u32; } - /** @name PalletPipsError (664) */ + /** @name PalletPipsError (661) */ interface PalletPipsError extends Enum { readonly isRescheduleNotByReleaseCoordinator: boolean; readonly isNotFromCommunity: boolean; @@ -6884,7 +6854,7 @@ declare module '@polkadot/types/lookup' { | 'ProposalNotInScheduledState'; } - /** @name PalletPortfolioError (673) */ + /** @name PalletPortfolioError (670) */ interface PalletPortfolioError extends Enum { readonly isPortfolioDoesNotExist: boolean; readonly isInsufficientPortfolioBalance: boolean; @@ -6923,7 +6893,7 @@ declare module '@polkadot/types/lookup' { | 'MissingOwnersPermission'; } - /** @name PalletProtocolFeeError (674) */ + /** @name PalletProtocolFeeError (671) */ interface PalletProtocolFeeError extends Enum { readonly isInsufficientAccountBalance: boolean; readonly isUnHandledImbalances: boolean; @@ -6934,16 +6904,16 @@ declare module '@polkadot/types/lookup' { | 'InsufficientSubsidyBalance'; } - /** @name PalletSchedulerScheduled (677) */ + /** @name PalletSchedulerScheduled (674) */ interface PalletSchedulerScheduled extends Struct { readonly maybeId: Option; readonly priority: u8; readonly call: FrameSupportPreimagesBounded; readonly maybePeriodic: Option>; - readonly origin: PolymeshRuntimeDevelopRuntimeOriginCaller; + readonly origin: PolymeshRuntimeTestnetRuntimeOriginCaller; } - /** @name FrameSupportPreimagesBounded (678) */ + /** @name FrameSupportPreimagesBounded (675) */ interface FrameSupportPreimagesBounded extends Enum { readonly isLegacy: boolean; readonly asLegacy: { @@ -6959,7 +6929,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Legacy' | 'Inline' | 'Lookup'; } - /** @name PalletSchedulerError (681) */ + /** @name PalletSchedulerError (678) */ interface PalletSchedulerError extends Enum { readonly isFailedToSchedule: boolean; readonly isNotFound: boolean; @@ -6974,13 +6944,13 @@ declare module '@polkadot/types/lookup' { | 'Named'; } - /** @name PolymeshPrimitivesSettlementVenue (682) */ + /** @name PolymeshPrimitivesSettlementVenue (679) */ interface PolymeshPrimitivesSettlementVenue extends Struct { readonly creator: PolymeshPrimitivesIdentityId; readonly venueType: PolymeshPrimitivesSettlementVenueType; } - /** @name PolymeshPrimitivesSettlementInstruction (686) */ + /** @name PolymeshPrimitivesSettlementInstruction (683) */ interface PolymeshPrimitivesSettlementInstruction extends Struct { readonly instructionId: u64; readonly venueId: u64; @@ -6990,7 +6960,7 @@ declare module '@polkadot/types/lookup' { readonly valueDate: Option; } - /** @name PolymeshPrimitivesSettlementLegStatus (688) */ + /** @name PolymeshPrimitivesSettlementLegStatus (685) */ interface PolymeshPrimitivesSettlementLegStatus extends Enum { readonly isPendingTokenLock: boolean; readonly isExecutionPending: boolean; @@ -6999,7 +6969,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'PendingTokenLock' | 'ExecutionPending' | 'ExecutionToBeSkipped'; } - /** @name PolymeshPrimitivesSettlementAffirmationStatus (690) */ + /** @name PolymeshPrimitivesSettlementAffirmationStatus (687) */ interface PolymeshPrimitivesSettlementAffirmationStatus extends Enum { readonly isUnknown: boolean; readonly isPending: boolean; @@ -7007,7 +6977,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Unknown' | 'Pending' | 'Affirmed'; } - /** @name PolymeshPrimitivesSettlementInstructionStatus (694) */ + /** @name PolymeshPrimitivesSettlementInstructionStatus (691) */ interface PolymeshPrimitivesSettlementInstructionStatus extends Enum { readonly isUnknown: boolean; readonly isPending: boolean; @@ -7019,7 +6989,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Unknown' | 'Pending' | 'Failed' | 'Success' | 'Rejected'; } - /** @name PalletSettlementError (695) */ + /** @name PalletSettlementError (692) */ interface PalletSettlementError extends Enum { readonly isInvalidVenue: boolean; readonly isUnauthorized: boolean; @@ -7104,19 +7074,19 @@ declare module '@polkadot/types/lookup' { | 'NumberOfVenueSignersExceeded'; } - /** @name PolymeshPrimitivesStatisticsStat1stKey (698) */ + /** @name PolymeshPrimitivesStatisticsStat1stKey (695) */ interface PolymeshPrimitivesStatisticsStat1stKey extends Struct { readonly asset: PolymeshPrimitivesStatisticsAssetScope; readonly statType: PolymeshPrimitivesStatisticsStatType; } - /** @name PolymeshPrimitivesTransferComplianceAssetTransferCompliance (699) */ + /** @name PolymeshPrimitivesTransferComplianceAssetTransferCompliance (696) */ interface PolymeshPrimitivesTransferComplianceAssetTransferCompliance extends Struct { readonly paused: bool; readonly requirements: BTreeSet; } - /** @name PalletStatisticsError (703) */ + /** @name PalletStatisticsError (700) */ interface PalletStatisticsError extends Enum { readonly isInvalidTransfer: boolean; readonly isStatTypeMissing: boolean; @@ -7135,7 +7105,7 @@ declare module '@polkadot/types/lookup' { | 'WeightLimitExceeded'; } - /** @name PalletStoError (705) */ + /** @name PalletStoError (702) */ interface PalletStoError extends Enum { readonly isUnauthorized: boolean; readonly isOverflow: boolean; @@ -7164,30 +7134,36 @@ declare module '@polkadot/types/lookup' { | 'InvestmentAmountTooLow'; } - /** @name PalletTreasuryError (706) */ + /** @name PalletTreasuryError (703) */ interface PalletTreasuryError extends Enum { readonly isInsufficientBalance: boolean; readonly isInvalidIdentity: boolean; readonly type: 'InsufficientBalance' | 'InvalidIdentity'; } - /** @name PalletUtilityError (707) */ + /** @name PalletUtilityError (704) */ interface PalletUtilityError extends Enum { readonly isTooManyCalls: boolean; readonly isInvalidSignature: boolean; readonly isTargetCddMissing: boolean; readonly isInvalidNonce: boolean; - readonly type: 'TooManyCalls' | 'InvalidSignature' | 'TargetCddMissing' | 'InvalidNonce'; + readonly isUnableToDeriveAccountId: boolean; + readonly type: + | 'TooManyCalls' + | 'InvalidSignature' + | 'TargetCddMissing' + | 'InvalidNonce' + | 'UnableToDeriveAccountId'; } - /** @name PalletBaseError (708) */ + /** @name PalletBaseError (705) */ interface PalletBaseError extends Enum { readonly isTooLong: boolean; readonly isCounterOverflow: boolean; readonly type: 'TooLong' | 'CounterOverflow'; } - /** @name PalletExternalAgentsError (710) */ + /** @name PalletExternalAgentsError (707) */ interface PalletExternalAgentsError extends Enum { readonly isNoSuchAG: boolean; readonly isUnauthorizedAgent: boolean; @@ -7204,13 +7180,13 @@ declare module '@polkadot/types/lookup' { | 'SecondaryKeyNotAuthorizedForAsset'; } - /** @name PalletRelayerSubsidy (711) */ + /** @name PalletRelayerSubsidy (708) */ interface PalletRelayerSubsidy extends Struct { readonly payingKey: AccountId32; readonly remaining: u128; } - /** @name PalletRelayerError (712) */ + /** @name PalletRelayerError (709) */ interface PalletRelayerError extends Enum { readonly isUserKeyCddMissing: boolean; readonly isPayingKeyCddMissing: boolean; @@ -7229,7 +7205,7 @@ declare module '@polkadot/types/lookup' { | 'Overflow'; } - /** @name PalletContractsWasmPrefabWasmModule (714) */ + /** @name PalletContractsWasmPrefabWasmModule (711) */ interface PalletContractsWasmPrefabWasmModule extends Struct { readonly instructionWeightsVersion: Compact; readonly initial: Compact; @@ -7238,14 +7214,14 @@ declare module '@polkadot/types/lookup' { readonly determinism: PalletContractsWasmDeterminism; } - /** @name PalletContractsWasmOwnerInfo (716) */ + /** @name PalletContractsWasmOwnerInfo (713) */ interface PalletContractsWasmOwnerInfo extends Struct { readonly owner: AccountId32; readonly deposit: Compact; readonly refcount: Compact; } - /** @name PalletContractsStorageContractInfo (717) */ + /** @name PalletContractsStorageContractInfo (714) */ interface PalletContractsStorageContractInfo extends Struct { readonly trieId: Bytes; readonly depositAccount: AccountId32; @@ -7257,19 +7233,19 @@ declare module '@polkadot/types/lookup' { readonly storageBaseDeposit: u128; } - /** @name PalletContractsStorageDeletedContract (720) */ + /** @name PalletContractsStorageDeletedContract (717) */ interface PalletContractsStorageDeletedContract extends Struct { readonly trieId: Bytes; } - /** @name PalletContractsSchedule (722) */ + /** @name PalletContractsSchedule (719) */ interface PalletContractsSchedule extends Struct { readonly limits: PalletContractsScheduleLimits; readonly instructionWeights: PalletContractsScheduleInstructionWeights; readonly hostFnWeights: PalletContractsScheduleHostFnWeights; } - /** @name PalletContractsScheduleLimits (723) */ + /** @name PalletContractsScheduleLimits (720) */ interface PalletContractsScheduleLimits extends Struct { readonly eventTopics: u32; readonly globals: u32; @@ -7282,7 +7258,7 @@ declare module '@polkadot/types/lookup' { readonly payloadLen: u32; } - /** @name PalletContractsScheduleInstructionWeights (724) */ + /** @name PalletContractsScheduleInstructionWeights (721) */ interface PalletContractsScheduleInstructionWeights extends Struct { readonly version: u32; readonly fallback: u32; @@ -7340,7 +7316,7 @@ declare module '@polkadot/types/lookup' { readonly i64rotr: u32; } - /** @name PalletContractsScheduleHostFnWeights (725) */ + /** @name PalletContractsScheduleHostFnWeights (722) */ interface PalletContractsScheduleHostFnWeights extends Struct { readonly caller: SpWeightsWeightV2Weight; readonly isContract: SpWeightsWeightV2Weight; @@ -7403,7 +7379,7 @@ declare module '@polkadot/types/lookup' { readonly instantiationNonce: SpWeightsWeightV2Weight; } - /** @name PalletContractsError (726) */ + /** @name PalletContractsError (723) */ interface PalletContractsError extends Enum { readonly isInvalidScheduleVersion: boolean; readonly isInvalidCallFlags: boolean; @@ -7464,7 +7440,7 @@ declare module '@polkadot/types/lookup' { | 'Indeterministic'; } - /** @name PolymeshContractsError (728) */ + /** @name PolymeshContractsError (725) */ interface PolymeshContractsError extends Enum { readonly isInvalidFuncId: boolean; readonly isInvalidRuntimeCall: boolean; @@ -7493,7 +7469,7 @@ declare module '@polkadot/types/lookup' { | 'NoUpgradesSupported'; } - /** @name PalletPreimageRequestStatus (729) */ + /** @name PalletPreimageRequestStatus (726) */ interface PalletPreimageRequestStatus extends Enum { readonly isUnrequested: boolean; readonly asUnrequested: { @@ -7509,7 +7485,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Unrequested' | 'Requested'; } - /** @name PalletPreimageError (733) */ + /** @name PalletPreimageError (730) */ interface PalletPreimageError extends Enum { readonly isTooBig: boolean; readonly isAlreadyNoted: boolean; @@ -7526,13 +7502,13 @@ declare module '@polkadot/types/lookup' { | 'NotRequested'; } - /** @name PolymeshPrimitivesNftNftCollection (734) */ + /** @name PolymeshPrimitivesNftNftCollection (731) */ interface PolymeshPrimitivesNftNftCollection extends Struct { readonly id: u64; readonly ticker: PolymeshPrimitivesTicker; } - /** @name PalletNftError (739) */ + /** @name PalletNftError (736) */ interface PalletNftError extends Enum { readonly isBalanceOverflow: boolean; readonly isBalanceUnderflow: boolean; @@ -7556,6 +7532,7 @@ declare module '@polkadot/types/lookup' { readonly isZeroCount: boolean; readonly isSupplyOverflow: boolean; readonly isSupplyUnderflow: boolean; + readonly isInvalidNFTTransferNFTIsLocked: boolean; readonly type: | 'BalanceOverflow' | 'BalanceUnderflow' @@ -7578,36 +7555,37 @@ declare module '@polkadot/types/lookup' { | 'UnregisteredMetadataKey' | 'ZeroCount' | 'SupplyOverflow' - | 'SupplyUnderflow'; + | 'SupplyUnderflow' + | 'InvalidNFTTransferNFTIsLocked'; } - /** @name PalletTestUtilsError (740) */ + /** @name PalletTestUtilsError (737) */ type PalletTestUtilsError = Null; - /** @name FrameSystemExtensionsCheckSpecVersion (743) */ + /** @name FrameSystemExtensionsCheckSpecVersion (740) */ type FrameSystemExtensionsCheckSpecVersion = Null; - /** @name FrameSystemExtensionsCheckTxVersion (744) */ + /** @name FrameSystemExtensionsCheckTxVersion (741) */ type FrameSystemExtensionsCheckTxVersion = Null; - /** @name FrameSystemExtensionsCheckGenesis (745) */ + /** @name FrameSystemExtensionsCheckGenesis (742) */ type FrameSystemExtensionsCheckGenesis = Null; - /** @name FrameSystemExtensionsCheckNonce (748) */ + /** @name FrameSystemExtensionsCheckNonce (745) */ interface FrameSystemExtensionsCheckNonce extends Compact {} - /** @name PolymeshExtensionsCheckWeight (749) */ + /** @name PolymeshExtensionsCheckWeight (746) */ interface PolymeshExtensionsCheckWeight extends FrameSystemExtensionsCheckWeight {} - /** @name FrameSystemExtensionsCheckWeight (750) */ + /** @name FrameSystemExtensionsCheckWeight (747) */ type FrameSystemExtensionsCheckWeight = Null; - /** @name PalletTransactionPaymentChargeTransactionPayment (751) */ + /** @name PalletTransactionPaymentChargeTransactionPayment (748) */ interface PalletTransactionPaymentChargeTransactionPayment extends Compact {} - /** @name PalletPermissionsStoreCallMetadata (752) */ + /** @name PalletPermissionsStoreCallMetadata (749) */ type PalletPermissionsStoreCallMetadata = Null; - /** @name PolymeshRuntimeDevelopRuntime (753) */ - type PolymeshRuntimeDevelopRuntime = Null; + /** @name PolymeshRuntimeTestnetRuntime (750) */ + type PolymeshRuntimeTestnetRuntime = Null; } // declare module diff --git a/src/utils/__tests__/conversion.ts b/src/utils/__tests__/conversion.ts index 9fac7e2614..487cb97f29 100644 --- a/src/utils/__tests__/conversion.ts +++ b/src/utils/__tests__/conversion.ts @@ -3618,6 +3618,7 @@ describe('nftDispatchErrorToTransferError', () => { NFTNotFound: { is: jest.fn().mockReturnValue(false) }, InvalidNFTTransferNFTNotOwned: { is: jest.fn().mockReturnValue(false) }, InvalidNFTTransferSamePortfolio: { is: jest.fn().mockReturnValue(false) }, + InvalidNFTTransferNFTIsLocked: { is: jest.fn().mockReturnValue(false) }, } as unknown as DecoratedErrors<'promise'>['nft']; const mockError = dsMockUtils.createMockDispatchResult({ diff --git a/src/utils/conversion.ts b/src/utils/conversion.ts index 3a8f185642..e61c4550b5 100644 --- a/src/utils/conversion.ts +++ b/src/utils/conversion.ts @@ -3175,11 +3175,16 @@ export function nftDispatchErrorToTransferError( NFTNotFound: notFoundErr, InvalidNFTTransferNFTNotOwned: notOwnedErr, InvalidNFTTransferSamePortfolio: samePortfolioErr, + InvalidNFTTransferNFTIsLocked: nftLockedErr, } = context.polymeshApi.errors.nft; if (error.isModule) { const moduleErr = error.asModule; - if ([notOwnedErr, notFoundErr, insufficientErr, duplicateErr].some(err => err.is(moduleErr))) { + if ( + [notOwnedErr, notFoundErr, insufficientErr, duplicateErr, nftLockedErr].some(err => + err.is(moduleErr) + ) + ) { return TransferError.InsufficientPortfolioBalance; } else if (frozenErr.is(moduleErr)) { return TransferError.TransfersFrozen; From 7cd662d42f09092190abc686f524036a30587f30 Mon Sep 17 00:00:00 2001 From: Prashant Bajpai <34747455+prashantasdeveloper@users.noreply.github.com> Date: Tue, 16 Apr 2024 23:08:59 +0530 Subject: [PATCH 2/5] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Modify=20updateReadme?= =?UTF-8?q?=20script=20to=20update=20chain=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- scripts/consts.js | 6 ---- scripts/updateReadme.js | 73 +++++++++++++++++++++++------------------ 3 files changed, 42 insertions(+), 39 deletions(-) delete mode 100644 scripts/consts.js diff --git a/README.md b/README.md index 2567943a4d..919d2d64b1 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ ## Polymesh version -This release is compatible with Polymesh v6.x.x and Polymesh Private v1.x.x +This release is compatible with Polymesh v6.0, v6.1, v6.2 and Polymesh Private v1.0 diff --git a/scripts/consts.js b/scripts/consts.js deleted file mode 100644 index e128edeff4..0000000000 --- a/scripts/consts.js +++ /dev/null @@ -1,6 +0,0 @@ -/* eslint-disable @typescript-eslint/naming-convention */ -module.exports = { - NODE_URL: 'localhost', - WS_PORT: '9944', - SCHEMA_PORT: '3008', -}; diff --git a/scripts/updateReadme.js b/scripts/updateReadme.js index 5f55b65454..4714401061 100644 --- a/scripts/updateReadme.js +++ b/scripts/updateReadme.js @@ -1,12 +1,22 @@ -/* eslint-disable @typescript-eslint/naming-convention */ -const W3CWebSocket = require('websocket').w3cwebsocket; -const WebSocketAsPromised = require('websocket-as-promised'); -/* eslint-enable @typescript-eslint/naming-convention */ +/* eslint-disable */ +const fs = require('fs'); +const path = require('path'); const replace = require('replace-in-file'); -const { NODE_URL, WS_PORT } = require('./consts'); +const versionRegex = /This release is compatible with Polymesh v(.*) and Polymesh Private .*/; +const ppVersionRegex = /This release is compatible with Polymesh v.* and Polymesh Private v(.*)/; -const versionRegex = /This release is compatible with Polymesh v(\d+\.\d+\.\d+)/; +const getSupportedNodeVersion = path => { + const constantsFile = fs.readFileSync(path, { + encoding: 'utf8', + }); + + const regex = /export const SUPPORTED_NODE_VERSION_RANGE = '([^']+)';/g; + + const match = regex.exec(constantsFile); + + return match[1]; +}; /** * Replace the version number in the README @@ -15,29 +25,28 @@ const createReplacementVersion = newVersion => (text, prevVersion) => { return text.replace(prevVersion, newVersion); }; -// eslint-disable-next-line @typescript-eslint/no-floating-promises -(async () => { - const wsp = new WebSocketAsPromised(`ws://${NODE_URL}:${WS_PORT}`, { - createWebSocket: url => new W3CWebSocket(url), - packMessage: data => JSON.stringify(data), - unpackMessage: data => JSON.parse(data.toString()), - attachRequestId: (data, requestId) => Object.assign({ id: requestId }, data), - extractRequestId: data => data && data.id, - }); - - await wsp.open(); - - const { result: version } = await wsp.sendRequest({ - jsonrpc: '2.0', - method: 'system_version', - params: [], - }); - - replace.sync({ - files: 'README.md', - from: versionRegex, - to: createReplacementVersion(version), - }); - - process.exit(0); -})(); +const supportedNodeVersionString = supportedNodeVersion => + supportedNodeVersion + .split('||') + .map(version => version.trim()) + .join(', v'); + +const { + SUPPORTED_NODE_VERSION_RANGE: supportedNodeVersionForPolymesh, +} = require('@polymeshassociation/polymesh-sdk/utils/constants'); + +replace.sync({ + files: 'README.md', + from: versionRegex, + to: createReplacementVersion(supportedNodeVersionString(supportedNodeVersionForPolymesh)), +}); + +const supportedNodeVersionForPolymeshPrivate = getSupportedNodeVersion( + path.resolve('src', 'utils', 'constants.ts') +); + +replace.sync({ + files: 'README.md', + from: ppVersionRegex, + to: createReplacementVersion(supportedNodeVersionString(supportedNodeVersionForPolymeshPrivate)), +}); From 197fbe6628a502b092fccac6259319757abb94be Mon Sep 17 00:00:00 2001 From: Prashant Bajpai <34747455+prashantasdeveloper@users.noreply.github.com> Date: Tue, 23 Apr 2024 11:56:00 +0530 Subject: [PATCH 3/5] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20Export=20public=20en?= =?UTF-8?q?tities,=20utils=20and=20consts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/client/Polymesh.ts | 3 +- src/api/entities/ConfidentialAsset/types.ts | 4 +- src/api/entities/Identity/__tests__/index.ts | 158 ++++++++++++++++++ src/api/entities/Identity/index.ts | 110 ++++++++++++ src/api/entities/types.ts | 7 + .../__tests__/applyIncomingAssetBalance.ts | 4 +- src/api/procedures/createConfidentialAsset.ts | 3 +- src/api/procedures/types.ts | 2 + src/base/ConfidentialProcedure.ts | 11 +- src/internal.ts | 1 + src/testUtils/mocks/entities.ts | 6 +- src/types/index.ts | 2 +- src/utils/conversion.ts | 5 + src/utils/internal.ts | 20 ++- src/utils/typeguards.ts | 2 + tsconfig.json | 44 ++--- 16 files changed, 326 insertions(+), 56 deletions(-) create mode 100644 src/api/entities/Identity/__tests__/index.ts create mode 100644 src/api/entities/Identity/index.ts diff --git a/src/api/client/Polymesh.ts b/src/api/client/Polymesh.ts index 035ad08c68..5d86a3a5c4 100644 --- a/src/api/client/Polymesh.ts +++ b/src/api/client/Polymesh.ts @@ -19,11 +19,10 @@ import { import { SigningManager } from '@polymeshassociation/signing-manager-types'; import { ConfidentialAccounts } from '~/api/client/ConfidentialAccounts'; +import { ConfidentialAssets } from '~/api/client/ConfidentialAssets'; import { ConfidentialSettlements } from '~/api/client/ConfidentialSettlements'; import schema from '~/polkadot/schema'; -import { ConfidentialAssets } from './ConfidentialAssets'; - export interface ConnectParams { /** * The websocket URL for the Polymesh node to connect to diff --git a/src/api/entities/ConfidentialAsset/types.ts b/src/api/entities/ConfidentialAsset/types.ts index 71fbccf6eb..c994b1d515 100644 --- a/src/api/entities/ConfidentialAsset/types.ts +++ b/src/api/entities/ConfidentialAsset/types.ts @@ -1,9 +1,7 @@ import { EventIdEnum } from '@polymeshassociation/polymesh-sdk/middleware/types'; -import { Identity } from '@polymeshassociation/polymesh-sdk/types'; import BigNumber from 'bignumber.js'; -import { ConfidentialVenue } from '~/internal'; -import { ConfidentialAccount } from '~/types'; +import { ConfidentialAccount, ConfidentialVenue, Identity } from '~/internal'; export interface ConfidentialAssetDetails { owner: Identity; diff --git a/src/api/entities/Identity/__tests__/index.ts b/src/api/entities/Identity/__tests__/index.ts new file mode 100644 index 0000000000..f8d8c9f0e4 --- /dev/null +++ b/src/api/entities/Identity/__tests__/index.ts @@ -0,0 +1,158 @@ +import { u64 } from '@polkadot/types'; +import { PolymeshPrimitivesIdentityId } from '@polkadot/types/lookup'; +import BigNumber from 'bignumber.js'; +import { when } from 'jest-when'; + +import { Context, Entity, Identity } from '~/internal'; +import { dsMockUtils, entityMockUtils, procedureMockUtils } from '~/testUtils/mocks'; +import { MockContext } from '~/testUtils/mocks/dataSources'; +import { ConfidentialLegParty } from '~/types'; +import { tuple } from '~/types/utils'; +import * as utilsConversionModule from '~/utils/conversion'; + +jest.mock( + '~/api/entities/ConfidentialAsset', + require('~/testUtils/mocks/entities').mockConfidentialAssetModule( + '~/api/entities/ConfidentialAsset' + ) +); + +jest.mock( + '~/api/entities/ConfidentialVenue', + require('~/testUtils/mocks/entities').mockConfidentialVenueModule( + '~/api/entities/ConfidentialVenue' + ) +); + +describe('Identity class', () => { + let context: MockContext; + let stringToIdentityIdSpy: jest.SpyInstance; + let u64ToBigNumberSpy: jest.SpyInstance; + + beforeAll(() => { + dsMockUtils.initMocks(); + entityMockUtils.initMocks(); + procedureMockUtils.initMocks(); + stringToIdentityIdSpy = jest.spyOn(utilsConversionModule, 'stringToIdentityId'); + u64ToBigNumberSpy = jest.spyOn(utilsConversionModule, 'u64ToBigNumber'); + }); + + beforeEach(() => { + context = dsMockUtils.getContextInstance({ + middlewareEnabled: true, + }); + }); + + afterEach(() => { + dsMockUtils.reset(); + entityMockUtils.reset(); + procedureMockUtils.reset(); + }); + + afterAll(() => { + dsMockUtils.cleanup(); + procedureMockUtils.cleanup(); + }); + + it('should extend Entity', () => { + expect(Identity.prototype instanceof Entity).toBe(true); + }); + + describe('constructor', () => { + it('should assign did to instance', () => { + const did = 'abc'; + const identity = new Identity({ did }, context); + + expect(identity.did).toBe(did); + }); + }); + + describe('method: isUniqueIdentifiers', () => { + it('should return true if the object conforms to the interface', () => { + expect(Identity.isUniqueIdentifiers({ did: 'someDid' })).toBe(true); + expect(Identity.isUniqueIdentifiers({})).toBe(false); + expect(Identity.isUniqueIdentifiers({ did: 3 })).toBe(false); + }); + }); + + describe('method: getInvolvedConfidentialTransactions', () => { + const transactionId = new BigNumber(1); + const legId = new BigNumber(2); + + it('should return the transactions with the identity affirmation status', async () => { + dsMockUtils.createQueryMock('confidentialAsset', 'userAffirmations', { + entries: [ + tuple( + [ + dsMockUtils.createMockIdentityId('someDid'), + [ + dsMockUtils.createMockConfidentialTransactionId(transactionId), + dsMockUtils.createMockConfidentialTransactionLegId(legId), + dsMockUtils.createMockConfidentialLegParty('Sender'), + ], + ], + dsMockUtils.createMockOption(dsMockUtils.createMockBool(false)) + ), + ], + }); + + const identity = new Identity({ did: 'someDid' }, context); + + const result = await identity.getInvolvedConfidentialTransactions(); + + expect(result).toEqual({ + data: expect.arrayContaining([ + expect.objectContaining({ + affirmed: false, + legId: new BigNumber(2), + role: ConfidentialLegParty.Sender, + transaction: expect.objectContaining({ id: transactionId }), + }), + ]), + next: null, + }); + }); + }); + + describe('method: getConfidentialVenues', () => { + let did: string; + let confidentialVenueId: BigNumber; + + let rawDid: PolymeshPrimitivesIdentityId; + let rawConfidentialVenueId: u64; + + beforeAll(() => { + did = 'someDid'; + confidentialVenueId = new BigNumber(5); + + rawDid = dsMockUtils.createMockIdentityId(did); + rawConfidentialVenueId = dsMockUtils.createMockU64(confidentialVenueId); + }); + + beforeEach(() => { + when(stringToIdentityIdSpy).calledWith(did, context).mockReturnValue(rawDid); + }); + + afterAll(() => { + jest.restoreAllMocks(); + }); + + it('should return a list of Confidential Venues', async () => { + when(u64ToBigNumberSpy) + .calledWith(rawConfidentialVenueId) + .mockReturnValue(confidentialVenueId); + + const mock = dsMockUtils.createQueryMock('confidentialAsset', 'identityVenues'); + const mockStorageKey = { args: [rawDid, rawConfidentialVenueId] }; + + mock.keys = jest.fn().mockResolvedValue([mockStorageKey]); + + const identity = new Identity({ did }, context); + + const result = await identity.getConfidentialVenues(); + expect(result).toEqual( + expect.arrayContaining([expect.objectContaining({ id: confidentialVenueId })]) + ); + }); + }); +}); diff --git a/src/api/entities/Identity/index.ts b/src/api/entities/Identity/index.ts new file mode 100644 index 0000000000..c74f300893 --- /dev/null +++ b/src/api/entities/Identity/index.ts @@ -0,0 +1,110 @@ +import { Identity as PublicIdentity } from '@polymeshassociation/polymesh-sdk/internal'; +import { + boolToBoolean, + stringToIdentityId, + u64ToBigNumber, +} from '@polymeshassociation/polymesh-sdk/utils/conversion'; +import { requestPaginated } from '@polymeshassociation/polymesh-sdk/utils/internal'; + +import { ConfidentialTransaction, ConfidentialVenue } from '~/internal'; +import { ConfidentialAffirmation, PaginationOptions, ResultSet } from '~/types'; +import { + confidentialLegPartyToRole, + confidentialTransactionIdToBigNumber, + confidentialTransactionLegIdToBigNumber, +} from '~/utils/conversion'; + +/** + * Properties that uniquely identify an Identity + */ +export interface UniqueIdentifiers { + did: string; +} + +/** + * Represents an Identity in the Polymesh blockchain + */ +export class Identity extends PublicIdentity { + /** + * @hidden + * Checks if a value is of type {@link UniqueIdentifiers} + */ + public static override isUniqueIdentifiers(identifier: unknown): identifier is UniqueIdentifiers { + const { did } = identifier as UniqueIdentifiers; + + return typeof did === 'string'; + } + + /** + * Get Confidential Transactions affirmations involving this identity + * + * @note supports pagination + */ + public async getInvolvedConfidentialTransactions( + paginationOpts?: PaginationOptions + ): Promise> { + const { + did, + context, + context: { + polymeshApi: { + query: { confidentialAsset }, + }, + }, + } = this; + + const { entries, lastKey: next } = await requestPaginated(confidentialAsset.userAffirmations, { + arg: did, + paginationOpts, + }); + + const data = entries.map(entry => { + const [key, value] = entry; + const affirmed = boolToBoolean(value.unwrap()); + const [rawTransactionId, rawLegId, rawLegParty] = key.args[1]; + + const transactionId = confidentialTransactionIdToBigNumber(rawTransactionId); + const legId = confidentialTransactionLegIdToBigNumber(rawLegId); + const role = confidentialLegPartyToRole(rawLegParty); + + const transaction = new ConfidentialTransaction({ id: transactionId }, context); + + return { + affirmed, + legId, + transaction, + role, + }; + }); + + return { + data, + next, + }; + } + + /** + * Retrieve all Confidential Venues created by this Identity + */ + public async getConfidentialVenues(): Promise { + const { + context: { + polymeshApi: { + query: { confidentialAsset }, + }, + }, + did, + context, + } = this; + + const rawDid = stringToIdentityId(did, context); + + const venueIdsKeys = await confidentialAsset.identityVenues.keys(rawDid); + + return venueIdsKeys.map(key => { + const rawVenueId = key.args[1]; + + return new ConfidentialVenue({ id: u64ToBigNumber(rawVenueId) }, context); + }); + } +} diff --git a/src/api/entities/types.ts b/src/api/entities/types.ts index 59f7ea9ab8..2864f507fe 100644 --- a/src/api/entities/types.ts +++ b/src/api/entities/types.ts @@ -1,10 +1,17 @@ +import { Identity as PublicIdentityClass } from '@polymeshassociation/polymesh-sdk/internal'; + import { ConfidentialAccount as ConfidentialAccountClass, ConfidentialAsset as ConfidentialAssetClass, ConfidentialTransaction as ConfidentialTransactionClass, ConfidentialVenue as ConfidentialVenueClass, + Identity as IdentityClass, } from '~/internal'; +export * from '@polymeshassociation/polymesh-sdk/api/entities/types'; + +export type Identity = IdentityClass; +export type PublicIdentity = PublicIdentityClass; export type ConfidentialAccount = ConfidentialAccountClass; export type ConfidentialAsset = ConfidentialAssetClass; export type ConfidentialVenue = ConfidentialVenueClass; diff --git a/src/api/procedures/__tests__/applyIncomingAssetBalance.ts b/src/api/procedures/__tests__/applyIncomingAssetBalance.ts index 6268aaaa65..cef5dc559d 100644 --- a/src/api/procedures/__tests__/applyIncomingAssetBalance.ts +++ b/src/api/procedures/__tests__/applyIncomingAssetBalance.ts @@ -5,14 +5,12 @@ import { getAuthorization, prepareApplyIncomingBalance, } from '~/api/procedures/applyIncomingAssetBalance'; -import { Context, PolymeshError } from '~/internal'; +import { ConfidentialAccount, Context, PolymeshError } from '~/internal'; import { dsMockUtils, entityMockUtils, procedureMockUtils } from '~/testUtils/mocks'; import { Mocked } from '~/testUtils/types'; import { ApplyIncomingBalanceParams, ConfidentialAsset, TxTags } from '~/types'; import * as utilsConversionModule from '~/utils/conversion'; -import { ConfidentialAccount } from './../../entities/types'; - describe('applyIncomingAssetBalance procedure', () => { let mockContext: Mocked; let account: ConfidentialAccount; diff --git a/src/api/procedures/createConfidentialAsset.ts b/src/api/procedures/createConfidentialAsset.ts index 54194bc9f7..0ce10c106d 100644 --- a/src/api/procedures/createConfidentialAsset.ts +++ b/src/api/procedures/createConfidentialAsset.ts @@ -1,7 +1,6 @@ import { ISubmittableResult } from '@polkadot/types/types'; import { TransactionSpec } from '@polymeshassociation/polymesh-sdk/types/internal'; import { - asIdentity, assertIdentityExists, filterEventRecords, } from '@polymeshassociation/polymesh-sdk/utils/internal'; @@ -15,7 +14,7 @@ import { meshConfidentialAssetToAssetId, stringToBytes, } from '~/utils/conversion'; -import { asConfidentialAccount } from '~/utils/internal'; +import { asConfidentialAccount, asIdentity } from '~/utils/internal'; /** * @hidden diff --git a/src/api/procedures/types.ts b/src/api/procedures/types.ts index 12bc14330b..2380d32bd9 100644 --- a/src/api/procedures/types.ts +++ b/src/api/procedures/types.ts @@ -1,5 +1,7 @@ import { Identity } from '~/internal'; import { ConfidentialAccount, ConfidentialAsset } from '~/types'; + +export * from '@polymeshassociation/polymesh-sdk/api/procedures/types'; export interface ConfidentialTransactionLeg { /** * The assets (or their IDs) for this leg of the transaction. Amounts are specified in the later proof generation steps diff --git a/src/base/ConfidentialProcedure.ts b/src/base/ConfidentialProcedure.ts index 18c35af7d0..c53a164c07 100644 --- a/src/base/ConfidentialProcedure.ts +++ b/src/base/ConfidentialProcedure.ts @@ -8,7 +8,7 @@ import { import { ErrorCode, GenericPolymeshTransaction, - Identity, + Identity as PublicIdentity, ProcedureOpts, SignerType, TxTag as PublicTxTag, @@ -19,6 +19,7 @@ import { } from '@polymeshassociation/polymesh-sdk/types/internal'; import { signerToString } from '@polymeshassociation/polymesh-sdk/utils/conversion'; +import { Identity } from '~/internal'; import { ConfidentialCheckRolesResult, ConfidentialProcedureAuthorization, @@ -54,7 +55,7 @@ async function getAgentPermissionsResult( asset, transactions: transactions as PublicTxTag[], }) - : { result: false, missingPermissions: transactions as PublicTxTag[] }; + : { result: false, missingPermissions: transactions }; } /** @@ -183,7 +184,7 @@ export class ConfidentialProcedure< const account = ctx.getSigningAccount(); - const fetchIdentity = async (): Promise => { + const fetchIdentity = async (): Promise => { if (identity) return identity; return account.getIdentity(); @@ -194,7 +195,7 @@ export class ConfidentialProcedure< } else if (typeof roles === 'string') { rolesResult = { result: false, message: roles }; } else { - identity = await fetchIdentity(); + identity = (await fetchIdentity()) as unknown as Identity; noIdentity = !identity; rolesResult = { result: false, missingRoles: roles }; @@ -230,7 +231,7 @@ export class ConfidentialProcedure< if (assets?.length && transactions?.length) { assertOnlyOneAsset(assets); - identity = await fetchIdentity(); + identity = (await fetchIdentity()) as unknown as Identity; noIdentity = !identity; diff --git a/src/internal.ts b/src/internal.ts index e23a105046..b9b7331be4 100644 --- a/src/internal.ts +++ b/src/internal.ts @@ -2,6 +2,7 @@ export * from '@polymeshassociation/polymesh-sdk/internal'; +export { Identity } from '~/api/entities/Identity'; export { ConfidentialProcedure } from '~/base/ConfidentialProcedure'; export { addConfidentialTransaction } from '~/api/procedures/addConfidentialTransaction'; export { executeConfidentialTransaction } from '~/api/procedures/executeConfidentialTransaction'; diff --git a/src/testUtils/mocks/entities.ts b/src/testUtils/mocks/entities.ts index aada177d50..accb7e2e7f 100644 --- a/src/testUtils/mocks/entities.ts +++ b/src/testUtils/mocks/entities.ts @@ -1,8 +1,10 @@ /* istanbul ignore file */ + /* eslint-disable @typescript-eslint/explicit-function-return-type */ /* eslint-disable @typescript-eslint/naming-convention */ /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-use-before-define */ +import { Identity } from '@polymeshassociation/polymesh-sdk/internal'; import { AccountBalance, ActiveTransferRestrictions, @@ -82,7 +84,7 @@ import { DefaultPortfolio, DividendDistribution, FungibleAsset, - Identity, + Identity as PrivateIdentity, Instruction, KnownPermissionGroup, MetadataEntry, @@ -110,7 +112,7 @@ import { ConfidentialVenueFilteringDetails, } from '~/types'; -export type MockIdentity = Mocked; +export type MockIdentity = Mocked; export type MockChildIdentity = Mocked; export type MockAccount = Mocked; export type MockSubsidy = Mocked; diff --git a/src/types/index.ts b/src/types/index.ts index 8d3dd3b9eb..d273dab972 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -24,6 +24,7 @@ import { CheckPermissionsResult } from '~/types/internal'; export { EventRecord } from '@polkadot/types/interfaces'; export { ConnectParams } from '~/api/client/Polymesh'; +export * from '@polymeshassociation/polymesh-sdk/api/client/types'; export * from '~/api/entities/types'; export * from '~/api/procedures/types'; export * from '@polymeshassociation/polymesh-sdk/base/types'; @@ -52,7 +53,6 @@ export { export { CountryCode, ModuleName, TxTag, TxTags }; // Roles - export enum RoleType { TickerOwner = 'TickerOwner', CddProvider = 'CddProvider', diff --git a/src/utils/conversion.ts b/src/utils/conversion.ts index 6e0f80e4a2..6e19bbd42e 100644 --- a/src/utils/conversion.ts +++ b/src/utils/conversion.ts @@ -63,6 +63,11 @@ import { export * from '~/generated/utils'; +export { + stringToIdentityId, + u64ToBigNumber, +} from '@polymeshassociation/polymesh-sdk/utils/conversion'; + /** * @hidden */ diff --git a/src/utils/internal.ts b/src/utils/internal.ts index ff14344fc6..3d6e91b7d7 100644 --- a/src/utils/internal.ts +++ b/src/utils/internal.ts @@ -6,7 +6,6 @@ import { DefaultPortfolio, ErrorCode, GenericPolymeshTransaction, - Identity, NumberedPortfolio, PermissionType, ProcedureOpts, @@ -34,6 +33,7 @@ import { ConfidentialAsset, ConfidentialVenue, Context, + Identity, PolymeshError, TickerReservation, Venue, @@ -56,6 +56,14 @@ import { isConfidentialAssetOwnerRole, isConfidentialVenueOwnerRole } from '~/ut export * from '~/generated/utils'; +/** + * @hidden + * Given a DID return the corresponding Identity, given an Identity return the Identity + */ +export function asIdentity(value: string | Identity, context: Context): Identity { + return typeof value === 'string' ? new Identity({ did: value }, context) : value; +} + /** * @hidden */ @@ -565,7 +573,11 @@ export const checkConfidentialPermissions = async ( /** * Check whether an Identity possesses the specified Role */ -const hasRole = async (identity: Identity, role: Role, context: Context): Promise => { +const hasRole = async ( + identity: T, + role: Role, + context: Context +): Promise => { const { did } = identity; if (isConfidentialAssetOwnerRole(role)) { @@ -625,8 +637,8 @@ const hasRole = async (identity: Identity, role: Role, context: Context): Promis /** * Check whether this Identity possesses all specified roles */ -export const checkConfidentialRoles = async ( - identity: Identity, +export const checkConfidentialRoles = async ( + identity: T, roles: Role[], context: Context ): Promise => { diff --git a/src/utils/typeguards.ts b/src/utils/typeguards.ts index 3d65ff20e6..337c48aee6 100644 --- a/src/utils/typeguards.ts +++ b/src/utils/typeguards.ts @@ -2,6 +2,8 @@ import { ConfidentialAssetOwnerRole, ConfidentialVenueOwnerRole, Role, RoleType } from '~/types'; +export * from '@polymeshassociation/polymesh-sdk/utils'; + /** * Return whether Role is VenueOwnerRole */ diff --git a/tsconfig.json b/tsconfig.json index 60b6d6770d..3837de73cc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,28 +4,16 @@ "rootDir": "src", "baseUrl": ".", "paths": { - "~/*": [ - "src/*" - ], - "polymesh-types/*": [ - "src/polkadot/*" - ], - "@polkadot/api/augment": [ - "src/polkadot/augment-api.ts" - ], - "@polkadot/types/augment": [ - "src/polkadot/augment-types.ts" - ], - "@polkadot/types/lookup": [ - "src/polkadot/types-lookup.ts" - ] + "~/*": ["src/*"], + "polymesh-types/*": ["src/polkadot/*"], + "@polkadot/api/augment": ["src/polkadot/augment-api.ts"], + "@polkadot/types/augment": ["src/polkadot/augment-types.ts"], + "@polkadot/types/lookup": ["src/polkadot/types-lookup.ts"] }, "plugins": [ { "transform": "@ovos-media/ts-transform-paths", - "exclude": [ - "*" - ], + "exclude": ["*"] } ], "useUnknownInCatchVariables": false, @@ -40,20 +28,8 @@ "esModuleInterop": true, "resolveJsonModule": true, "skipLibCheck": true, - "lib": [ - "es2017", - "dom" - ], - "typeRoots": [ - "./node_modules/@types", - "./src/typings" - ] + "lib": ["es2017", "dom"], + "typeRoots": ["./node_modules/@types", "./src/typings"] }, - "exclude": [ - "dist", - "node_modules", - "src/sandbox.ts", - "test.ts", - "src-temp" - ] -} \ No newline at end of file + "exclude": ["dist", "node_modules", "sandbox.ts", "test.ts", "src-temp"] +} From 82776f3eaefe466ff85496690302f09f35ea683b Mon Sep 17 00:00:00 2001 From: Prashant Bajpai <34747455+prashantasdeveloper@users.noreply.github.com> Date: Wed, 24 Apr 2024 14:24:06 +0530 Subject: [PATCH 4/5] =?UTF-8?q?chore:=20=F0=9F=A4=96=20Bump=20polmesh-sdk?= =?UTF-8?q?=20to=20`24.2.1`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- sdk-docs-typedoc.json | 2 +- src/api/entities/Identity/index.ts | 10 ------ src/api/entities/types.ts | 50 ++++++++++++++++++++++++++++-- src/base/ConfidentialProcedure.ts | 2 +- src/testUtils/mocks/dataSources.ts | 8 +++-- src/testUtils/mocks/entities.ts | 2 +- src/types/index.ts | 2 +- src/types/internal.ts | 45 --------------------------- src/utils/__tests__/internal.ts | 20 ++++++++++++ src/utils/internal.ts | 3 +- yarn.lock | 8 ++--- 12 files changed, 85 insertions(+), 69 deletions(-) diff --git a/package.json b/package.json index 81b05ce977..5fe772b1e5 100644 --- a/package.json +++ b/package.json @@ -127,7 +127,7 @@ "@polkadot/api": "10.9.1", "@polkadot/util": "12.4.2", "@polkadot/util-crypto": "12.4.2", - "@polymeshassociation/polymesh-sdk": "24.1.0", + "@polymeshassociation/polymesh-sdk": "24.2.1", "bignumber.js": "9.0.1", "bluebird": "^3.7.2", "cross-fetch": "^4.0.0", diff --git a/sdk-docs-typedoc.json b/sdk-docs-typedoc.json index 6c9638a432..7873d0368f 100644 --- a/sdk-docs-typedoc.json +++ b/sdk-docs-typedoc.json @@ -7,7 +7,7 @@ "src/generated/types.ts", "src/types/index.ts", "src/types/utils", - "src/utils/index.ts", + "src/entities/types.ts", "src/base" ], "entryPointStrategy": "expand", diff --git a/src/api/entities/Identity/index.ts b/src/api/entities/Identity/index.ts index c74f300893..129d6868d6 100644 --- a/src/api/entities/Identity/index.ts +++ b/src/api/entities/Identity/index.ts @@ -25,16 +25,6 @@ export interface UniqueIdentifiers { * Represents an Identity in the Polymesh blockchain */ export class Identity extends PublicIdentity { - /** - * @hidden - * Checks if a value is of type {@link UniqueIdentifiers} - */ - public static override isUniqueIdentifiers(identifier: unknown): identifier is UniqueIdentifiers { - const { did } = identifier as UniqueIdentifiers; - - return typeof did === 'string'; - } - /** * Get Confidential Transactions affirmations involving this identity * diff --git a/src/api/entities/types.ts b/src/api/entities/types.ts index 2864f507fe..46372ba811 100644 --- a/src/api/entities/types.ts +++ b/src/api/entities/types.ts @@ -1,5 +1,14 @@ -import { Identity as PublicIdentityClass } from '@polymeshassociation/polymesh-sdk/internal'; +import { + BaseAsset, + Identity as PublicIdentityClass, +} from '@polymeshassociation/polymesh-sdk/internal'; +import { + DefaultPortfolio, + NumberedPortfolio, + SignerType, +} from '@polymeshassociation/polymesh-sdk/types'; +import { TxTag } from '~/generated/types'; import { ConfidentialAccount as ConfidentialAccountClass, ConfidentialAsset as ConfidentialAssetClass, @@ -17,6 +26,43 @@ export type ConfidentialAsset = ConfidentialAssetClass; export type ConfidentialVenue = ConfidentialVenueClass; export type ConfidentialTransaction = ConfidentialTransactionClass; +export * from './ConfidentialAccount/types'; export * from './ConfidentialAsset/types'; export * from './ConfidentialTransaction/types'; -export * from './ConfidentialAccount/types'; + +/** + * This represents positive permissions (i.e. only "includes"). It is used + * for specifying procedure requirements and querying if an Account has certain + * permissions. Null values represent full permissions in that category + */ +export interface SimplePermissions { + /** + * list of required Asset permissions + */ + assets?: BaseAsset[] | null; + /** + * list of required Transaction permissions + */ + transactions?: TxTag[] | null; + portfolios?: (DefaultPortfolio | NumberedPortfolio)[] | null; +} + +/** + * Result of a `checkPermissions` call. If `Type` is `Account`, represents whether the Account + * has all the necessary secondary key Permissions. If `Type` is `Identity`, represents whether the + * Identity has all the necessary external agent Permissions + */ +export interface CheckPermissionsResult { + /** + * required permissions which the signer *DOESN'T* have. Only present if `result` is `false` + */ + missingPermissions?: Type extends SignerType.Account ? SimplePermissions : TxTag[] | null; + /** + * whether the signer complies with the required permissions or not + */ + result: boolean; + /** + * optional message explaining the reason for failure in special cases + */ + message?: string; +} diff --git a/src/base/ConfidentialProcedure.ts b/src/base/ConfidentialProcedure.ts index c53a164c07..23fcfecec0 100644 --- a/src/base/ConfidentialProcedure.ts +++ b/src/base/ConfidentialProcedure.ts @@ -21,12 +21,12 @@ import { signerToString } from '@polymeshassociation/polymesh-sdk/utils/conversi import { Identity } from '~/internal'; import { + CheckPermissionsResult, ConfidentialCheckRolesResult, ConfidentialProcedureAuthorization, ConfidentialProcedureAuthorizationStatus, TxTag, } from '~/types'; -import { CheckPermissionsResult } from '~/types/internal'; import { checkConfidentialPermissions, checkConfidentialRoles } from '~/utils/internal'; /** diff --git a/src/testUtils/mocks/dataSources.ts b/src/testUtils/mocks/dataSources.ts index cfd38d9567..e6c91480e2 100644 --- a/src/testUtils/mocks/dataSources.ts +++ b/src/testUtils/mocks/dataSources.ts @@ -172,8 +172,12 @@ import { } from '~/polkadot/polymesh'; import { dsMockUtils } from '~/testUtils/mocks'; import { Mocked } from '~/testUtils/types'; -import { ConfidentialCheckRolesResult, CountryCode as CountryCodeEnum } from '~/types'; -import { CheckPermissionsResult, Consts, Extrinsics, Queries, Rpcs } from '~/types/internal'; +import { + CheckPermissionsResult, + ConfidentialCheckRolesResult, + CountryCode as CountryCodeEnum, +} from '~/types'; +import { Consts, Extrinsics, Queries, Rpcs } from '~/types/internal'; import { ArgsType, Mutable, tuple } from '~/types/utils'; import { STATE_RUNTIME_VERSION_CALL, SYSTEM_VERSION_RPC_CALL } from '~/utils/constants'; diff --git a/src/testUtils/mocks/entities.ts b/src/testUtils/mocks/entities.ts index accb7e2e7f..ed1c568a2c 100644 --- a/src/testUtils/mocks/entities.ts +++ b/src/testUtils/mocks/entities.ts @@ -13,7 +13,6 @@ import { AssetWithGroup, Authorization, AuthorizationType, - CheckPermissionsResult, CheckRolesResult, CollectionKey, ComplianceRequirements, @@ -102,6 +101,7 @@ import { import { entityMockUtils } from '~/testUtils/mocks'; import { Mocked } from '~/testUtils/types'; import { + CheckPermissionsResult, ConfidentialAssetBalance, ConfidentialAssetDetails, ConfidentialLeg, diff --git a/src/types/index.ts b/src/types/index.ts index d273dab972..5e30fc61f3 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -20,7 +20,7 @@ import { import BigNumber from 'bignumber.js'; import { CountryCode, ModuleName, TxTag, TxTags } from '~/generated/types'; -import { CheckPermissionsResult } from '~/types/internal'; +import { CheckPermissionsResult } from '~/types'; export { EventRecord } from '@polkadot/types/interfaces'; export { ConnectParams } from '~/api/client/Polymesh'; diff --git a/src/types/internal.ts b/src/types/internal.ts index 9700620b41..b271ed4571 100644 --- a/src/types/internal.ts +++ b/src/types/internal.ts @@ -8,14 +8,6 @@ import { SubmittableExtrinsics, } from '@polkadot/api/types'; import { RpcInterface } from '@polkadot/rpc-core/types'; -import { BaseAsset } from '@polymeshassociation/polymesh-sdk/internal'; -import { - DefaultPortfolio, - NumberedPortfolio, - SignerType, -} from '@polymeshassociation/polymesh-sdk/types'; - -import { TxTag } from '~/generated/types'; /** * Polkadot's `tx` submodule @@ -49,40 +41,3 @@ export type Queries = QueryableStorage<'promise'>; export type Consts = QueryableConsts<'promise'>; export type Rpcs = DecoratedRpc<'promise', RpcInterface>; - -/** - * This represents positive permissions (i.e. only "includes"). It is used - * for specifying procedure requirements and querying if an Account has certain - * permissions. Null values represent full permissions in that category - */ -export interface SimplePermissions { - /** - * list of required Asset permissions - */ - assets?: BaseAsset[] | null; - /** - * list of required Transaction permissions - */ - transactions?: TxTag[] | null; - portfolios?: (DefaultPortfolio | NumberedPortfolio)[] | null; -} - -/** - * Result of a `checkPermissions` call. If `Type` is `Account`, represents whether the Account - * has all the necessary secondary key Permissions. If `Type` is `Identity`, represents whether the - * Identity has all the necessary external agent Permissions - */ -export interface CheckPermissionsResult { - /** - * required permissions which the signer *DOESN'T* have. Only present if `result` is `false` - */ - missingPermissions?: Type extends SignerType.Account ? SimplePermissions : TxTag[] | null; - /** - * whether the signer complies with the required permissions or not - */ - result: boolean; - /** - * optional message explaining the reason for failure in special cases - */ - message?: string; -} diff --git a/src/utils/__tests__/internal.ts b/src/utils/__tests__/internal.ts index 00291bd9ea..5f5a1e47a3 100644 --- a/src/utils/__tests__/internal.ts +++ b/src/utils/__tests__/internal.ts @@ -31,6 +31,7 @@ import * as utilsInternalModule from '~/utils/internal'; import { asConfidentialAccount, asConfidentialAsset, + asIdentity, assertCaAssetValid, assertElgamalPubKeyValid, checkConfidentialPermissions, @@ -80,6 +81,25 @@ jest.mock( ) ); +describe('asIdentity', () => { + it('should return identity instance', () => { + const mockContext = dsMockUtils.getContextInstance(); + + const did = 'did'; + const identity = entityMockUtils.getIdentityInstance({ + did, + }); + + let result = asIdentity(did, mockContext); + + expect(result).toEqual(expect.objectContaining({ did })); + + result = asIdentity(identity, mockContext); + + expect(result).toEqual(expect.objectContaining({ did })); + }); +}); + describe('createProcedureMethod', () => { let context: Context; let prepare: jest.Mock; diff --git a/src/utils/internal.ts b/src/utils/internal.ts index 3d6e91b7d7..6a242d9e78 100644 --- a/src/utils/internal.ts +++ b/src/utils/internal.ts @@ -39,6 +39,7 @@ import { Venue, } from '~/internal'; import { + CheckPermissionsResult, ConfidentialCheckRolesResult, ConfidentialNoArgsProcedureMethod, ConfidentialOptionalArgsProcedureMethod, @@ -46,11 +47,11 @@ import { ConfidentialProcedureMethod, ModuleName, Role, + SimplePermissions, TransactionPermissions, TxTag, TxTags, } from '~/types'; -import { CheckPermissionsResult, SimplePermissions } from '~/types/internal'; import { ConfidentialProcedureFunc } from '~/types/utils'; import { isConfidentialAssetOwnerRole, isConfidentialVenueOwnerRole } from '~/utils'; diff --git a/yarn.lock b/yarn.lock index ee17ced7d0..458c474074 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2261,10 +2261,10 @@ dependencies: "@polymeshassociation/signing-manager-types" "^3.2.0" -"@polymeshassociation/polymesh-sdk@24.1.0": - version "24.1.0" - resolved "https://registry.yarnpkg.com/@polymeshassociation/polymesh-sdk/-/polymesh-sdk-24.1.0.tgz#542e8fa43f830578988659ba50732ed97a36109f" - integrity sha512-8v4+WDX8f1PVxCWdfrNnftriyjSrMT5I8zysxRBCHwNv/riP/3BpqFkdhipg3ksR+5GCYER6ghiFB1Mw0rbh1w== +"@polymeshassociation/polymesh-sdk@24.2.1": + version "24.2.1" + resolved "https://registry.yarnpkg.com/@polymeshassociation/polymesh-sdk/-/polymesh-sdk-24.2.1.tgz#3fd4c8da94e39b80e2778bdc3c62b17348d6c331" + integrity sha512-mKFqSEC98akG+F/50alDLXnOD/VrkKdf5pXRM6KRY0OCJxOV0JYfEk23NApHx/OCgzu9CiTHElgBMjoRywAp3A== dependencies: "@apollo/client" "^3.8.1" "@polkadot/api" "10.9.1" From 43fcf7f1ec2b57c052368a9ee5f53ad2425e4f2f Mon Sep 17 00:00:00 2001 From: Prashant Bajpai <34747455+prashantasdeveloper@users.noreply.github.com> Date: Thu, 25 Apr 2024 11:46:19 +0530 Subject: [PATCH 5/5] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20include=20`src?= =?UTF-8?q?/entities/types.ts`=20in=20sdk-docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk-docs-typedoc.json | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk-docs-typedoc.json b/sdk-docs-typedoc.json index 7873d0368f..db47b12d07 100644 --- a/sdk-docs-typedoc.json +++ b/sdk-docs-typedoc.json @@ -19,7 +19,6 @@ "src/base/Context.ts", "src/base/Procedure.ts", "**/sandbox.ts", - "src/api/entities/types.ts", "src/api/entities/Namespace.ts", "src/types/internal.ts", "src/utils/**",