difftreelog
add contracts consts
in: master
7 files changed
pallets/common/src/lib.rsdiffbeforeafterboth--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -376,6 +376,7 @@
type TreasuryAccountId: Get<Self::AccountId>;
/// Address under which the CollectionHelper contract would be available.
+ #[pallet::constant]
type ContractAddress: Get<H160>;
/// Mapper for token addresses to Ethereum addresses.
pallets/evm-contract-helpers/src/lib.rsdiffbeforeafterboth--- a/pallets/evm-contract-helpers/src/lib.rs
+++ b/pallets/evm-contract-helpers/src/lib.rs
@@ -47,6 +47,7 @@
type RuntimeEvent: IsType<<Self as frame_system::Config>::RuntimeEvent> + From<Event<Self>>;
/// Address, under which magic contract will be available
+ #[pallet::constant]
type ContractAddress: Get<H160>;
/// In case of enabled sponsoring, but no sponsoring rate limit set,
tests/src/apiConsts.test.tsdiffbeforeafterboth--- a/tests/src/apiConsts.test.ts
+++ b/tests/src/apiConsts.test.ts
@@ -15,6 +15,7 @@
// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
import {ApiPromise} from '@polkadot/api';
+import {ApiBase} from '@polkadot/api/base';
import {usingPlaygrounds, itSub, expect} from './util';
@@ -41,6 +42,9 @@
transfersEnabled: true,
};
+const EVM_COLLECTION_HELPERS_ADDRESS = '0x6c4e9fe1ae37a41e93cee429e8e1881abdcbb54f';
+const HELPERS_CONTRACT_ADDRESS = '0x842899ECF380553E8a4de75bF534cdf6fBF64049';
+
describe('integration test: API UNIQUE consts', () => {
let api: ApiPromise;
@@ -101,6 +105,14 @@
itSub('COLLECTION_ADMINS_LIMIT', () => {
checkConst(api.consts.unique.collectionAdminsLimit, COLLECTION_ADMINS_LIMIT);
});
+
+ itSub('HELPERS_CONTRACT_ADDRESS', () => {
+ expect(api.consts.evmContractHelpers.contractAddress.toString().toLowerCase()).to.be.equal(HELPERS_CONTRACT_ADDRESS.toLowerCase());
+ });
+
+ itSub('EVM_COLLECTION_HELPERS_ADDRESS', () => {
+ expect(api.consts.common.contractAddress.toString().toLowerCase()).to.be.equal(EVM_COLLECTION_HELPERS_ADDRESS.toLowerCase());
+ });
});
function checkConst<T>(constValue: any, expectedValue: T) {
tests/src/eth/util/playgrounds/unique.dev.tsdiffbeforeafterboth--- a/tests/src/eth/util/playgrounds/unique.dev.ts
+++ b/tests/src/eth/util/playgrounds/unique.dev.ts
@@ -103,12 +103,12 @@
contractHelpers(caller: string): Contract {
const web3 = this.helper.getWeb3();
- return new web3.eth.Contract(contractHelpersAbi as any, '0x842899ECF380553E8a4de75bF534cdf6fBF64049', {from: caller, gas: this.helper.eth.DEFAULT_GAS});
+ return new web3.eth.Contract(contractHelpersAbi as any, this.helper.getApi().consts.evmContractHelpers.contractAddress.toString(), {from: caller, gas: this.helper.eth.DEFAULT_GAS});
}
collectionHelpers(caller: string) {
const web3 = this.helper.getWeb3();
- return new web3.eth.Contract(collectionHelpersAbi as any, '0x6c4e9fe1ae37a41e93cee429e8e1881abdcbb54f', {from: caller, gas: this.helper.eth.DEFAULT_GAS});
+ return new web3.eth.Contract(collectionHelpersAbi as any, this.helper.getApi().consts.common.contractAddress.toString(), {from: caller, gas: this.helper.eth.DEFAULT_GAS});
}
collection(address: string, mode: TCollectionMode, caller?: string, mergeDeprecated = false): Contract {
tests/src/interfaces/augment-api-consts.tsdiffbeforeafterboth1// 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 { Perbill, Permill, Weight } 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 * Generic const74 **/75 [key: string]: Codec;76 };77 configuration: {78 defaultMinGasPrice: u64 & AugmentedConst<ApiType>;79 defaultWeightToFeeCoefficient: u32 & AugmentedConst<ApiType>;80 /**81 * Generic const82 **/83 [key: string]: Codec;84 };85 inflation: {86 /**87 * Number of blocks that pass between treasury balance updates due to inflation88 **/89 inflationBlockInterval: u32 & AugmentedConst<ApiType>;90 /**91 * Generic const92 **/93 [key: string]: Codec;94 };95 scheduler: {96 /**97 * The maximum weight that may be scheduled per block for any dispatchables.98 **/99 maximumWeight: Weight & AugmentedConst<ApiType>;100 /**101 * The maximum number of scheduled calls in the queue for a single block.102 **/103 maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;104 /**105 * Generic const106 **/107 [key: string]: Codec;108 };109 system: {110 /**111 * Maximum number of block number to block hash mappings to keep (oldest pruned first).112 **/113 blockHashCount: u32 & AugmentedConst<ApiType>;114 /**115 * The maximum length of a block (in bytes).116 **/117 blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;118 /**119 * Block & extrinsics weights: base values and limits.120 **/121 blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;122 /**123 * The weight of runtime database operations the runtime can invoke.124 **/125 dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;126 /**127 * The designated SS58 prefix of this chain.128 * 129 * This replaces the "ss58Format" property declared in the chain spec. Reason is130 * that the runtime should know about the prefix in order to make use of it as131 * an identifier of the chain.132 **/133 ss58Prefix: u16 & AugmentedConst<ApiType>;134 /**135 * Get the chain's current version.136 **/137 version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;138 /**139 * Generic const140 **/141 [key: string]: Codec;142 };143 timestamp: {144 /**145 * The minimum period between blocks. Beware that this is different to the *expected*146 * period that the block production apparatus provides. Your chosen consensus system will147 * generally work with this to determine a sensible block time. e.g. For Aura, it will be148 * double this period on default settings.149 **/150 minimumPeriod: u64 & AugmentedConst<ApiType>;151 /**152 * Generic const153 **/154 [key: string]: Codec;155 };156 tokens: {157 maxLocks: u32 & AugmentedConst<ApiType>;158 /**159 * The maximum number of named reserves that can exist on an account.160 **/161 maxReserves: u32 & AugmentedConst<ApiType>;162 /**163 * Generic const164 **/165 [key: string]: Codec;166 };167 transactionPayment: {168 /**169 * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their170 * `priority`171 * 172 * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later173 * added to a tip component in regular `priority` calculations.174 * It means that a `Normal` transaction can front-run a similarly-sized `Operational`175 * extrinsic (with no tip), by including a tip value greater than the virtual tip.176 * 177 * ```rust,ignore178 * // For `Normal`179 * let priority = priority_calc(tip);180 * 181 * // For `Operational`182 * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;183 * let priority = priority_calc(tip + virtual_tip);184 * ```185 * 186 * Note that since we use `final_fee` the multiplier applies also to the regular `tip`187 * sent with the transaction. So, not only does the transaction get a priority bump based188 * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`189 * transactions.190 **/191 operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;192 /**193 * Generic const194 **/195 [key: string]: Codec;196 };197 treasury: {198 /**199 * Percentage of spare funds (if any) that are burnt per spend period.200 **/201 burn: Permill & AugmentedConst<ApiType>;202 /**203 * The maximum number of approvals that can wait in the spending queue.204 * 205 * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.206 **/207 maxApprovals: u32 & AugmentedConst<ApiType>;208 /**209 * The treasury's pallet id, used for deriving its sovereign account ID.210 **/211 palletId: FrameSupportPalletId & AugmentedConst<ApiType>;212 /**213 * Fraction of a proposal's value that should be bonded in order to place the proposal.214 * An accepted proposal gets these back. A rejected proposal does not.215 **/216 proposalBond: Permill & AugmentedConst<ApiType>;217 /**218 * Maximum amount of funds that should be placed in a deposit for making a proposal.219 **/220 proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;221 /**222 * Minimum amount of funds that should be placed in a deposit for making a proposal.223 **/224 proposalBondMinimum: u128 & AugmentedConst<ApiType>;225 /**226 * Period between successive spends.227 **/228 spendPeriod: u32 & AugmentedConst<ApiType>;229 /**230 * Generic const231 **/232 [key: string]: Codec;233 };234 unique: {235 /**236 * Maximum admins per collection.237 **/238 collectionAdminsLimit: u32 & AugmentedConst<ApiType>;239 /**240 * Default FT collection limit.241 **/242 ftDefaultCollectionLimits: UpDataStructsCollectionLimits & AugmentedConst<ApiType>;243 /**244 * Maximum length for collection description.245 **/246 maxCollectionDescriptionLength: u32 & AugmentedConst<ApiType>;247 /**248 * Maximum length for collection name.249 **/250 maxCollectionNameLength: u32 & AugmentedConst<ApiType>;251 /**252 * Maximum size for all collection properties.253 **/254 maxCollectionPropertiesSize: u32 & AugmentedConst<ApiType>;255 /**256 * Maximum properties that can be assigned to token.257 **/258 maxPropertiesPerItem: u32 & AugmentedConst<ApiType>;259 /**260 * Maximal lenght of property key.261 **/262 maxPropertyKeyLength: u32 & AugmentedConst<ApiType>;263 /**264 * Maximal lenght of property value.265 **/266 maxPropertyValueLength: u32 & AugmentedConst<ApiType>;267 /**268 * Maximal token prefix length.269 **/270 maxTokenPrefixLength: u32 & AugmentedConst<ApiType>;271 /**272 * Maximum size for all token properties.273 **/274 maxTokenPropertiesSize: u32 & AugmentedConst<ApiType>;275 /**276 * Maximum number of levels of depth in the token nesting tree.277 **/278 nestingBudget: u32 & AugmentedConst<ApiType>;279 /**280 * Default NFT collection limit.281 **/282 nftDefaultCollectionLimits: UpDataStructsCollectionLimits & AugmentedConst<ApiType>;283 /**284 * Default RFT collection limit.285 **/286 rftDefaultCollectionLimits: UpDataStructsCollectionLimits & AugmentedConst<ApiType>;287 /**288 * Generic const289 **/290 [key: string]: Codec;291 };292 vesting: {293 /**294 * The minimum amount transferred to call `vested_transfer`.295 **/296 minVestedTransfer: u128 & AugmentedConst<ApiType>;297 /**298 * Generic const299 **/300 [key: string]: Codec;301 };302 xTokens: {303 /**304 * Base XCM weight.305 * 306 * The actually weight for an XCM message is `T::BaseXcmWeight +307 * T::Weigher::weight(&msg)`.308 **/309 baseXcmWeight: u64 & AugmentedConst<ApiType>;310 /**311 * Self chain location.312 **/313 selfLocation: XcmV1MultiLocation & AugmentedConst<ApiType>;314 /**315 * Generic const316 **/317 [key: string]: Codec;318 };319 } // AugmentedConsts320} // declare module1// 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, Weight } 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 defaultMinGasPrice: u64 & AugmentedConst<ApiType>;83 defaultWeightToFeeCoefficient: u32 & AugmentedConst<ApiType>;84 /**85 * Generic const86 **/87 [key: string]: Codec;88 };89 evmContractHelpers: {90 /**91 * Address, under which magic contract will be available92 **/93 contractAddress: H160 & AugmentedConst<ApiType>;94 /**95 * Generic const96 **/97 [key: string]: Codec;98 };99 inflation: {100 /**101 * Number of blocks that pass between treasury balance updates due to inflation102 **/103 inflationBlockInterval: u32 & AugmentedConst<ApiType>;104 /**105 * Generic const106 **/107 [key: string]: Codec;108 };109 scheduler: {110 /**111 * The maximum weight that may be scheduled per block for any dispatchables.112 **/113 maximumWeight: Weight & AugmentedConst<ApiType>;114 /**115 * The maximum number of scheduled calls in the queue for a single block.116 **/117 maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;118 /**119 * Generic const120 **/121 [key: string]: Codec;122 };123 system: {124 /**125 * Maximum number of block number to block hash mappings to keep (oldest pruned first).126 **/127 blockHashCount: u32 & AugmentedConst<ApiType>;128 /**129 * The maximum length of a block (in bytes).130 **/131 blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;132 /**133 * Block & extrinsics weights: base values and limits.134 **/135 blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;136 /**137 * The weight of runtime database operations the runtime can invoke.138 **/139 dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;140 /**141 * The designated SS58 prefix of this chain.142 * 143 * This replaces the "ss58Format" property declared in the chain spec. Reason is144 * that the runtime should know about the prefix in order to make use of it as145 * an identifier of the chain.146 **/147 ss58Prefix: u16 & AugmentedConst<ApiType>;148 /**149 * Get the chain's current version.150 **/151 version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;152 /**153 * Generic const154 **/155 [key: string]: Codec;156 };157 timestamp: {158 /**159 * The minimum period between blocks. Beware that this is different to the *expected*160 * period that the block production apparatus provides. Your chosen consensus system will161 * generally work with this to determine a sensible block time. e.g. For Aura, it will be162 * double this period on default settings.163 **/164 minimumPeriod: u64 & AugmentedConst<ApiType>;165 /**166 * Generic const167 **/168 [key: string]: Codec;169 };170 tokens: {171 maxLocks: u32 & AugmentedConst<ApiType>;172 /**173 * The maximum number of named reserves that can exist on an account.174 **/175 maxReserves: u32 & AugmentedConst<ApiType>;176 /**177 * Generic const178 **/179 [key: string]: Codec;180 };181 transactionPayment: {182 /**183 * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their184 * `priority`185 * 186 * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later187 * added to a tip component in regular `priority` calculations.188 * It means that a `Normal` transaction can front-run a similarly-sized `Operational`189 * extrinsic (with no tip), by including a tip value greater than the virtual tip.190 * 191 * ```rust,ignore192 * // For `Normal`193 * let priority = priority_calc(tip);194 * 195 * // For `Operational`196 * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;197 * let priority = priority_calc(tip + virtual_tip);198 * ```199 * 200 * Note that since we use `final_fee` the multiplier applies also to the regular `tip`201 * sent with the transaction. So, not only does the transaction get a priority bump based202 * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`203 * transactions.204 **/205 operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;206 /**207 * Generic const208 **/209 [key: string]: Codec;210 };211 treasury: {212 /**213 * Percentage of spare funds (if any) that are burnt per spend period.214 **/215 burn: Permill & AugmentedConst<ApiType>;216 /**217 * The maximum number of approvals that can wait in the spending queue.218 * 219 * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.220 **/221 maxApprovals: u32 & AugmentedConst<ApiType>;222 /**223 * The treasury's pallet id, used for deriving its sovereign account ID.224 **/225 palletId: FrameSupportPalletId & AugmentedConst<ApiType>;226 /**227 * Fraction of a proposal's value that should be bonded in order to place the proposal.228 * An accepted proposal gets these back. A rejected proposal does not.229 **/230 proposalBond: Permill & AugmentedConst<ApiType>;231 /**232 * Maximum amount of funds that should be placed in a deposit for making a proposal.233 **/234 proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;235 /**236 * Minimum amount of funds that should be placed in a deposit for making a proposal.237 **/238 proposalBondMinimum: u128 & AugmentedConst<ApiType>;239 /**240 * Period between successive spends.241 **/242 spendPeriod: u32 & AugmentedConst<ApiType>;243 /**244 * Generic const245 **/246 [key: string]: Codec;247 };248 unique: {249 /**250 * Maximum admins per collection.251 **/252 collectionAdminsLimit: u32 & AugmentedConst<ApiType>;253 /**254 * Default FT collection limit.255 **/256 ftDefaultCollectionLimits: UpDataStructsCollectionLimits & AugmentedConst<ApiType>;257 /**258 * Maximum length for collection description.259 **/260 maxCollectionDescriptionLength: u32 & AugmentedConst<ApiType>;261 /**262 * Maximum length for collection name.263 **/264 maxCollectionNameLength: u32 & AugmentedConst<ApiType>;265 /**266 * Maximum size for all collection properties.267 **/268 maxCollectionPropertiesSize: u32 & AugmentedConst<ApiType>;269 /**270 * Maximum properties that can be assigned to token.271 **/272 maxPropertiesPerItem: u32 & AugmentedConst<ApiType>;273 /**274 * Maximal lenght of property key.275 **/276 maxPropertyKeyLength: u32 & AugmentedConst<ApiType>;277 /**278 * Maximal lenght of property value.279 **/280 maxPropertyValueLength: u32 & AugmentedConst<ApiType>;281 /**282 * Maximal token prefix length.283 **/284 maxTokenPrefixLength: u32 & AugmentedConst<ApiType>;285 /**286 * Maximum size for all token properties.287 **/288 maxTokenPropertiesSize: u32 & AugmentedConst<ApiType>;289 /**290 * Maximum number of levels of depth in the token nesting tree.291 **/292 nestingBudget: u32 & AugmentedConst<ApiType>;293 /**294 * Default NFT collection limit.295 **/296 nftDefaultCollectionLimits: UpDataStructsCollectionLimits & AugmentedConst<ApiType>;297 /**298 * Default RFT collection limit.299 **/300 rftDefaultCollectionLimits: UpDataStructsCollectionLimits & AugmentedConst<ApiType>;301 /**302 * Generic const303 **/304 [key: string]: Codec;305 };306 vesting: {307 /**308 * The minimum amount transferred to call `vested_transfer`.309 **/310 minVestedTransfer: u128 & AugmentedConst<ApiType>;311 /**312 * Generic const313 **/314 [key: string]: Codec;315 };316 xTokens: {317 /**318 * Base XCM weight.319 * 320 * The actually weight for an XCM message is `T::BaseXcmWeight +321 * T::Weigher::weight(&msg)`.322 **/323 baseXcmWeight: u64 & AugmentedConst<ApiType>;324 /**325 * Self chain location.326 **/327 selfLocation: XcmV1MultiLocation & AugmentedConst<ApiType>;328 /**329 * Generic const330 **/331 [key: string]: Codec;332 };333 } // AugmentedConsts334} // declare moduletests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -2936,13 +2936,13 @@
}
},
/**
- * Lookup340: pallet_maintenance::pallet::Call<T>
+ * Lookup338: pallet_maintenance::pallet::Call<T>
**/
PalletMaintenanceCall: {
_enum: ['enable', 'disable']
},
/**
- * Lookup341: pallet_test_utils::pallet::Call<T>
+ * Lookup339: pallet_test_utils::pallet::Call<T>
**/
PalletTestUtilsCall: {
_enum: {
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -3175,14 +3175,14 @@
readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents';
}
- /** @name PalletMaintenanceCall (340) */
+ /** @name PalletMaintenanceCall (338) */
interface PalletMaintenanceCall extends Enum {
readonly isEnable: boolean;
readonly isDisable: boolean;
readonly type: 'Enable' | 'Disable';
}
- /** @name PalletTestUtilsCall (341) */
+ /** @name PalletTestUtilsCall (339) */
interface PalletTestUtilsCall extends Enum {
readonly isEnable: boolean;
readonly isSetTestValue: boolean;