git.delta.rocks / unique-network / refs/commits / a026438a3d7a

difftreelog

fix after rebase

Daniel Shiposha2022-12-19parent: #d46d545.patch.diff
in: master

8 files changed

modifiedruntime/common/config/pallets/mod.rsdiffbeforeafterboth
--- a/runtime/common/config/pallets/mod.rs
+++ b/runtime/common/config/pallets/mod.rs
@@ -25,7 +25,7 @@
 	},
 	Runtime, RuntimeEvent, RuntimeCall, Balances,
 };
-use frame_support::traits::ConstU64;
+use frame_support::traits::{ConstU32, ConstU64};
 use up_common::{
 	types::{AccountId, Balance, BlockNumber},
 	constants::*,
modifiedtests/src/interfaces/augment-api-consts.tsdiffbeforeafterboth
before · tests/src/interfaces/augment-api-consts.ts
1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34// import type lookup before we augment - in some environments5// this is required to allow for ambient/previous definitions6import '@polkadot/api-base/types/consts';78import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';9import type { Option, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';10import type { Codec } from '@polkadot/types-codec/types';11import type { H160, Perbill, Permill } from '@polkadot/types/interfaces/runtime';12import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, UpDataStructsCollectionLimits, XcmV1MultiLocation } from '@polkadot/types/lookup';1314export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;1516declare module '@polkadot/api-base/types/consts' {17  interface AugmentedConsts<ApiType extends ApiTypes> {18    appPromotion: {19      /**20       * Rate of return for interval in blocks defined in `RecalculationInterval`.21       **/22      intervalIncome: Perbill & AugmentedConst<ApiType>;23      /**24       * Decimals for the `Currency`.25       **/26      nominal: u128 & AugmentedConst<ApiType>;27      /**28       * The app's pallet id, used for deriving its sovereign account address.29       **/30      palletId: FrameSupportPalletId & AugmentedConst<ApiType>;31      /**32       * In parachain blocks.33       **/34      pendingInterval: u32 & AugmentedConst<ApiType>;35      /**36       * In relay blocks.37       **/38      recalculationInterval: u32 & AugmentedConst<ApiType>;39      /**40       * Generic const41       **/42      [key: string]: Codec;43    };44    balances: {45      /**46       * The minimum amount required to keep an account open.47       **/48      existentialDeposit: u128 & AugmentedConst<ApiType>;49      /**50       * The maximum number of locks that should exist on an account.51       * Not strictly enforced, but used for weight estimation.52       **/53      maxLocks: u32 & AugmentedConst<ApiType>;54      /**55       * The maximum number of named reserves that can exist on an account.56       **/57      maxReserves: u32 & AugmentedConst<ApiType>;58      /**59       * Generic const60       **/61      [key: string]: Codec;62    };63    common: {64      /**65       * Maximum admins per collection.66       **/67      collectionAdminsLimit: u32 & AugmentedConst<ApiType>;68      /**69       * Set price to create a collection.70       **/71      collectionCreationPrice: u128 & AugmentedConst<ApiType>;72      /**73       * Address under which the CollectionHelper contract would be available.74       **/75      contractAddress: H160 & AugmentedConst<ApiType>;76      /**77       * Generic const78       **/79      [key: string]: Codec;80    };81    configuration: {82      appPromotionDailyRate: Perbill & AugmentedConst<ApiType>;83      dayRelayBlocks: u32 & AugmentedConst<ApiType>;84      defaultMinGasPrice: u64 & AugmentedConst<ApiType>;85<<<<<<< HEAD86      defaultWeightToFeeCoefficient: u32 & AugmentedConst<ApiType>;87      maxXcmAllowedLocations: u32 & AugmentedConst<ApiType>;88=======89      defaultWeightToFeeCoefficient: u64 & AugmentedConst<ApiType>;90>>>>>>> chore: regenerate types91      /**92       * Generic const93       **/94      [key: string]: Codec;95    };96    evmContractHelpers: {97      /**98       * Address, under which magic contract will be available99       **/100      contractAddress: H160 & AugmentedConst<ApiType>;101      /**102       * Generic const103       **/104      [key: string]: Codec;105    };106    inflation: {107      /**108       * Number of blocks that pass between treasury balance updates due to inflation109       **/110      inflationBlockInterval: u32 & AugmentedConst<ApiType>;111      /**112       * Generic const113       **/114      [key: string]: Codec;115    };116    system: {117      /**118       * Maximum number of block number to block hash mappings to keep (oldest pruned first).119       **/120      blockHashCount: u32 & AugmentedConst<ApiType>;121      /**122       * The maximum length of a block (in bytes).123       **/124      blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;125      /**126       * Block & extrinsics weights: base values and limits.127       **/128      blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;129      /**130       * The weight of runtime database operations the runtime can invoke.131       **/132      dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;133      /**134       * The designated SS58 prefix of this chain.135       * 136       * This replaces the "ss58Format" property declared in the chain spec. Reason is137       * that the runtime should know about the prefix in order to make use of it as138       * an identifier of the chain.139       **/140      ss58Prefix: u16 & AugmentedConst<ApiType>;141      /**142       * Get the chain's current version.143       **/144      version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;145      /**146       * Generic const147       **/148      [key: string]: Codec;149    };150    timestamp: {151      /**152       * The minimum period between blocks. Beware that this is different to the *expected*153       * period that the block production apparatus provides. Your chosen consensus system will154       * generally work with this to determine a sensible block time. e.g. For Aura, it will be155       * double this period on default settings.156       **/157      minimumPeriod: u64 & AugmentedConst<ApiType>;158      /**159       * Generic const160       **/161      [key: string]: Codec;162    };163    tokens: {164      maxLocks: u32 & AugmentedConst<ApiType>;165      /**166       * The maximum number of named reserves that can exist on an account.167       **/168      maxReserves: u32 & AugmentedConst<ApiType>;169      /**170       * Generic const171       **/172      [key: string]: Codec;173    };174    transactionPayment: {175      /**176       * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their177       * `priority`178       * 179       * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later180       * added to a tip component in regular `priority` calculations.181       * It means that a `Normal` transaction can front-run a similarly-sized `Operational`182       * extrinsic (with no tip), by including a tip value greater than the virtual tip.183       * 184       * ```rust,ignore185       * // For `Normal`186       * let priority = priority_calc(tip);187       * 188       * // For `Operational`189       * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;190       * let priority = priority_calc(tip + virtual_tip);191       * ```192       * 193       * Note that since we use `final_fee` the multiplier applies also to the regular `tip`194       * sent with the transaction. So, not only does the transaction get a priority bump based195       * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`196       * transactions.197       **/198      operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;199      /**200       * Generic const201       **/202      [key: string]: Codec;203    };204    treasury: {205      /**206       * Percentage of spare funds (if any) that are burnt per spend period.207       **/208      burn: Permill & AugmentedConst<ApiType>;209      /**210       * The maximum number of approvals that can wait in the spending queue.211       * 212       * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.213       **/214      maxApprovals: u32 & AugmentedConst<ApiType>;215      /**216       * The treasury's pallet id, used for deriving its sovereign account ID.217       **/218      palletId: FrameSupportPalletId & AugmentedConst<ApiType>;219      /**220       * Fraction of a proposal's value that should be bonded in order to place the proposal.221       * An accepted proposal gets these back. A rejected proposal does not.222       **/223      proposalBond: Permill & AugmentedConst<ApiType>;224      /**225       * Maximum amount of funds that should be placed in a deposit for making a proposal.226       **/227      proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;228      /**229       * Minimum amount of funds that should be placed in a deposit for making a proposal.230       **/231      proposalBondMinimum: u128 & AugmentedConst<ApiType>;232      /**233       * Period between successive spends.234       **/235      spendPeriod: u32 & AugmentedConst<ApiType>;236      /**237       * Generic const238       **/239      [key: string]: Codec;240    };241    unique: {242      /**243       * Maximum admins per collection.244       **/245      collectionAdminsLimit: u32 & AugmentedConst<ApiType>;246      /**247       * Default FT collection limit.248       **/249      ftDefaultCollectionLimits: UpDataStructsCollectionLimits & AugmentedConst<ApiType>;250      /**251       * Maximal length of a collection description.252       **/253      maxCollectionDescriptionLength: u32 & AugmentedConst<ApiType>;254      /**255       * Maximal length of a collection name.256       **/257      maxCollectionNameLength: u32 & AugmentedConst<ApiType>;258      /**259       * Maximum size for all collection properties.260       **/261      maxCollectionPropertiesSize: u32 & AugmentedConst<ApiType>;262      /**263       * A maximum number of token properties.264       **/265      maxPropertiesPerItem: u32 & AugmentedConst<ApiType>;266      /**267       * Maximal length of a property key.268       **/269      maxPropertyKeyLength: u32 & AugmentedConst<ApiType>;270      /**271       * Maximal length of a property value.272       **/273      maxPropertyValueLength: u32 & AugmentedConst<ApiType>;274      /**275       * Maximal length of a token prefix.276       **/277      maxTokenPrefixLength: u32 & AugmentedConst<ApiType>;278      /**279       * Maximum size of all token properties.280       **/281      maxTokenPropertiesSize: u32 & AugmentedConst<ApiType>;282      /**283       * A maximum number of levels of depth in the token nesting tree.284       **/285      nestingBudget: u32 & AugmentedConst<ApiType>;286      /**287       * Default NFT collection limit.288       **/289      nftDefaultCollectionLimits: UpDataStructsCollectionLimits & AugmentedConst<ApiType>;290      /**291       * Default RFT collection limit.292       **/293      rftDefaultCollectionLimits: UpDataStructsCollectionLimits & AugmentedConst<ApiType>;294      /**295       * Generic const296       **/297      [key: string]: Codec;298    };299    vesting: {300      /**301       * The minimum amount transferred to call `vested_transfer`.302       **/303      minVestedTransfer: u128 & AugmentedConst<ApiType>;304      /**305       * Generic const306       **/307      [key: string]: Codec;308    };309    xTokens: {310      /**311       * Base XCM weight.312       * 313       * The actually weight for an XCM message is `T::BaseXcmWeight +314       * T::Weigher::weight(&msg)`.315       **/316      baseXcmWeight: u64 & AugmentedConst<ApiType>;317      /**318       * Self chain location.319       **/320      selfLocation: XcmV1MultiLocation & AugmentedConst<ApiType>;321      /**322       * Generic const323       **/324      [key: string]: Codec;325    };326  } // AugmentedConsts327} // declare module
modifiedtests/src/interfaces/augment-api-query.tsdiffbeforeafterboth
--- a/tests/src/interfaces/augment-api-query.ts
+++ b/tests/src/interfaces/augment-api-query.ts
@@ -162,12 +162,8 @@
     configuration: {
       appPromomotionConfigurationOverride: AugmentedQuery<ApiType, () => Observable<PalletConfigurationAppPromotionConfiguration>, []> & QueryableStorageEntry<ApiType, []>;
       minGasPriceOverride: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
-<<<<<<< HEAD
-      weightToFeeCoefficientOverride: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
+      weightToFeeCoefficientOverride: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
       xcmAllowedLocationsOverride: AugmentedQuery<ApiType, () => Observable<Option<Vec<XcmV1MultiLocation>>>, []> & QueryableStorageEntry<ApiType, []>;
-=======
-      weightToFeeCoefficientOverride: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
->>>>>>> chore: regenerate types
       /**
        * Generic query
        **/
modifiedtests/src/interfaces/augment-api-runtime.tsdiffbeforeafterboth
--- a/tests/src/interfaces/augment-api-runtime.ts
+++ b/tests/src/interfaces/augment-api-runtime.ts
@@ -6,7 +6,7 @@
 import '@polkadot/api-base/types/calls';
 
 import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
-import type { Bytes, Null, Option, Result, U256, Vec, bool, u256, u64 } from '@polkadot/types-codec';
+import type { Bytes, Null, Option, Result, U256, Vec, bool, u256, u32, u64 } from '@polkadot/types-codec';
 import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
 import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
 import type { BlockHash } from '@polkadot/types/interfaces/chain';
@@ -16,6 +16,7 @@
 import type { EvmAccount, EvmCallInfo, EvmCreateInfo } from '@polkadot/types/interfaces/evm';
 import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
 import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
+import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
 import type { AccountId, Block, H160, H256, Header, Index, KeyTypeId, Permill, SlotDuration } from '@polkadot/types/interfaces/runtime';
 import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
 import type { ApplyExtrinsicResult, DispatchError } from '@polkadot/types/interfaces/system';
@@ -228,5 +229,20 @@
        **/
       [key: string]: DecoratedCallBase<ApiType>;
     };
+    /** 0x37c8bb1350a9a2a8/2 */
+    transactionPaymentApi: {
+      /**
+       * The transaction fee details
+       **/
+      queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
+      /**
+       * The transaction info
+       **/
+      queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
+      /**
+       * Generic call
+       **/
+      [key: string]: DecoratedCallBase<ApiType>;
+    };
   } // AugmentedCalls
 } // declare module
modifiedtests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth
--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -217,12 +217,8 @@
     configuration: {
       setAppPromotionConfigurationOverride: AugmentedSubmittable<(configuration: PalletConfigurationAppPromotionConfiguration | { recalculationInterval?: any; pendingInterval?: any; intervalIncome?: any; maxStakersPerCalculation?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletConfigurationAppPromotionConfiguration]>;
       setMinGasPriceOverride: AugmentedSubmittable<(coeff: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u64>]>;
-<<<<<<< HEAD
-      setWeightToFeeCoefficientOverride: AugmentedSubmittable<(coeff: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
+      setWeightToFeeCoefficientOverride: AugmentedSubmittable<(coeff: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u64>]>;
       setXcmAllowedLocations: AugmentedSubmittable<(locations: Option<Vec<XcmV1MultiLocation>> | null | Uint8Array | Vec<XcmV1MultiLocation> | (XcmV1MultiLocation | { parents?: any; interior?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Option<Vec<XcmV1MultiLocation>>]>;
-=======
-      setWeightToFeeCoefficientOverride: AugmentedSubmittable<(coeff: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u64>]>;
->>>>>>> chore: regenerate types
       /**
        * Generic tx
        **/
@@ -1436,6 +1432,23 @@
        **/
       destroyCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
       /**
+       * Repairs a collection if the data was somehow corrupted.
+       * 
+       * # Arguments
+       * 
+       * * `collection_id`: ID of the collection to repair.
+       **/
+      forceRepairCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
+      /**
+       * Repairs a token if the data was somehow corrupted.
+       * 
+       * # Arguments
+       * 
+       * * `collection_id`: ID of the collection the item belongs to.
+       * * `item_id`: ID of the item.
+       **/
+      forceRepairItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
+      /**
        * Remove admin of a collection.
        * 
        * An admin address can remove itself. List of admins may become empty,
@@ -1478,15 +1491,6 @@
        * * `address`: ID of the address to be removed from the allowlist.
        **/
       removeFromAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
-      /**
-       * Repairs a broken item
-       * 
-       * # Arguments
-       * 
-       * * `collection_id`: ID of the collection the item belongs to.
-       * * `item_id`: ID of the item.
-       **/
-      repairItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
       /**
        * Re-partition a refungible token, while owning all of its parts/pieces.
        * 
modifiedtests/src/interfaces/default/types.tsdiffbeforeafterboth
--- a/tests/src/interfaces/default/types.ts
+++ b/tests/src/interfaces/default/types.ts
@@ -2319,12 +2319,16 @@
     readonly operator: PalletEvmAccountBasicCrossAccountIdRepr;
     readonly approve: bool;
   } & Struct;
-  readonly isRepairItem: boolean;
-  readonly asRepairItem: {
+  readonly isForceRepairCollection: boolean;
+  readonly asForceRepairCollection: {
+    readonly collectionId: u32;
+  } & Struct;
+  readonly isForceRepairItem: boolean;
+  readonly asForceRepairItem: {
     readonly collectionId: u32;
     readonly itemId: u32;
   } & Struct;
-  readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition' | 'SetAllowanceForAll' | 'RepairItem';
+  readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition' | 'SetAllowanceForAll' | 'ForceRepairCollection' | 'ForceRepairItem';
 }
 
 /** @name PalletUniqueError */
modifiedtests/src/interfaces/lookup.tsdiffbeforeafterboth
--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -2282,7 +2282,10 @@
         operator: 'PalletEvmAccountBasicCrossAccountIdRepr',
         approve: 'bool',
       },
-      repair_item: {
+      force_repair_collection: {
+        collectionId: 'u32',
+      },
+      force_repair_item: {
         collectionId: 'u32',
         itemId: 'u32'
       }
@@ -2452,7 +2455,7 @@
   PalletConfigurationCall: {
     _enum: {
       set_weight_to_fee_coefficient_override: {
-        coeff: 'Option<u32>',
+        coeff: 'Option<u64>',
       },
       set_min_gas_price_override: {
         coeff: 'Option<u64>',
@@ -2468,23 +2471,11 @@
   /**
    * Lookup286: pallet_configuration::AppPromotionConfiguration<BlockNumber>
    **/
-<<<<<<< HEAD
   PalletConfigurationAppPromotionConfiguration: {
     recalculationInterval: 'Option<u32>',
     pendingInterval: 'Option<u32>',
     intervalIncome: 'Option<Perbill>',
     maxStakersPerCalculation: 'Option<u8>'
-=======
-  PalletConfigurationCall: {
-    _enum: {
-      set_weight_to_fee_coefficient_override: {
-        coeff: 'Option<u64>',
-      },
-      set_min_gas_price_override: {
-        coeff: 'Option<u64>'
-      }
-    }
->>>>>>> chore: regenerate types
   },
   /**
    * Lookup289: pallet_template_transaction_payment::Call<T>
modifiedtests/src/interfaces/types-lookup.tsdiffbeforeafterboth
--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -2517,12 +2517,16 @@
       readonly operator: PalletEvmAccountBasicCrossAccountIdRepr;
       readonly approve: bool;
     } & Struct;
-    readonly isRepairItem: boolean;
-    readonly asRepairItem: {
+    readonly isForceRepairCollection: boolean;
+    readonly asForceRepairCollection: {
+      readonly collectionId: u32;
+    } & Struct;
+    readonly isForceRepairItem: boolean;
+    readonly asForceRepairItem: {
       readonly collectionId: u32;
       readonly itemId: u32;
     } & Struct;
-    readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition' | 'SetAllowanceForAll' | 'RepairItem';
+    readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition' | 'SetAllowanceForAll' | 'ForceRepairCollection' | 'ForceRepairItem';
   }
 
   /** @name UpDataStructsCollectionMode (237) */