2222#[ cfg( feature = "std" ) ]
2323include ! ( concat!( env!( "OUT_DIR" ) , "/wasm_binary.rs" ) ) ;
2424
25- use pallet_contracts_rpc_runtime_api :: ContractExecResult ;
25+ use cumulus_pallet_contracts_rpc_runtime_api :: ContractExecResult ;
2626use sp_api:: impl_runtime_apis;
2727use sp_core:: OpaqueMetadata ;
2828use sp_runtime:: {
@@ -269,23 +269,23 @@ parameter_types! {
269269 pub const SurchargeReward : Balance = 0 ;
270270}
271271
272- impl pallet_contracts :: Trait for Runtime {
272+ impl cumulus_pallet_contracts :: Trait for Runtime {
273273 type Time = Timestamp ;
274274 type Randomness = RandomnessCollectiveFlip ;
275275 type Currency = Balances ;
276276 type Call = Call ;
277277 type Event = Event ;
278- type DetermineContractAddress = pallet_contracts :: SimpleAddressDeterminer < Runtime > ;
279- type TrieIdGenerator = pallet_contracts :: TrieIdFromParentCounter < Runtime > ;
278+ type DetermineContractAddress = cumulus_pallet_contracts :: SimpleAddressDeterminer < Runtime > ;
279+ type TrieIdGenerator = cumulus_pallet_contracts :: TrieIdFromParentCounter < Runtime > ;
280280 type RentPayment = ( ) ;
281- type SignedClaimHandicap = pallet_contracts :: DefaultSignedClaimHandicap ;
281+ type SignedClaimHandicap = cumulus_pallet_contracts :: DefaultSignedClaimHandicap ;
282282 type TombstoneDeposit = TombstoneDeposit ;
283- type StorageSizeOffset = pallet_contracts :: DefaultStorageSizeOffset ;
283+ type StorageSizeOffset = cumulus_pallet_contracts :: DefaultStorageSizeOffset ;
284284 type RentByteFee = RentByteFee ;
285285 type RentDepositOffset = RentDepositOffset ;
286286 type SurchargeReward = SurchargeReward ;
287- type MaxDepth = pallet_contracts :: DefaultMaxDepth ;
288- type MaxValueSize = pallet_contracts :: DefaultMaxValueSize ;
287+ type MaxDepth = cumulus_pallet_contracts :: DefaultMaxDepth ;
288+ type MaxValueSize = cumulus_pallet_contracts :: DefaultMaxValueSize ;
289289 type WeightPrice = pallet_transaction_payment:: Module < Self > ;
290290}
291291
@@ -298,7 +298,7 @@ construct_runtime! {
298298 System : frame_system:: { Module , Call , Storage , Config , Event <T >} ,
299299 Timestamp : pallet_timestamp:: { Module , Call , Storage , Inherent } ,
300300 Balances : pallet_balances:: { Module , Call , Storage , Config <T >, Event <T >} ,
301- Contracts : pallet_contracts :: { Module , Call , Config , Storage , Event <T >} ,
301+ Contracts : cumulus_pallet_contracts :: { Module , Call , Config , Storage , Event <T >} ,
302302 Sudo : pallet_sudo:: { Module , Call , Storage , Config <T >, Event <T >} ,
303303 RandomnessCollectiveFlip : pallet_randomness_collective_flip:: { Module , Call , Storage } ,
304304 ParachainUpgrade : cumulus_parachain_upgrade:: { Module , Call , Storage , Inherent , Event } ,
@@ -413,7 +413,7 @@ impl_runtime_apis! {
413413 }
414414 }
415415
416- impl pallet_contracts_rpc_runtime_api :: ContractsApi <Block , AccountId , Balance , BlockNumber >
416+ impl cumulus_pallet_contracts_rpc_runtime_api :: ContractsApi <Block , AccountId , Balance , BlockNumber >
417417 for Runtime
418418 {
419419 fn call(
@@ -438,13 +438,13 @@ impl_runtime_apis! {
438438 fn get_storage(
439439 address: AccountId ,
440440 key: [ u8 ; 32 ] ,
441- ) -> pallet_contracts_primitives :: GetStorageResult {
441+ ) -> cumulus_pallet_contracts_primitives :: GetStorageResult {
442442 Contracts :: get_storage( address, key)
443443 }
444444
445445 fn rent_projection(
446446 address: AccountId ,
447- ) -> pallet_contracts_primitives :: RentProjectionResult <BlockNumber > {
447+ ) -> cumulus_pallet_contracts_primitives :: RentProjectionResult <BlockNumber > {
448448 Contracts :: rent_projection( address)
449449 }
450450 }
0 commit comments