Skip to content

Commit

Permalink
add extension to shibuya-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Dec 27, 2023
1 parent 21c0f3a commit 4207860
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions runtime/shibuya/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ moonbeam-rpc-primitives-txpool = { workspace = true, optional = true }

# chain-extensions
pallet-chain-extension-assets = { workspace = true }
pallet-chain-extension-uniques = { workspace = true }

# benchmarking
array-bytes = { workspace = true }
Expand Down Expand Up @@ -242,6 +243,7 @@ std = [
"xcm-executor/std",
"substrate-wasm-builder",
"pallet-chain-extension-assets/std",
"pallet-chain-extension-uniques/std",
"orml-xtokens/std",
"orml-xcm-support/std",
"astar-primitives/std",
Expand Down
7 changes: 7 additions & 0 deletions runtime/shibuya/src/chain_extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use super::{Runtime, UnifiedAccounts, Xvm};

/// Registered WASM contracts chain extensions.
pub use pallet_chain_extension_assets::AssetsExtension;
pub use pallet_chain_extension_uniques::UniquesExtension;
use pallet_contracts::chain_extension::RegisteredChainExtension;

pub use pallet_chain_extension_unified_accounts::UnifiedAccountsExtension;
Expand All @@ -40,3 +41,9 @@ impl<W: pallet_chain_extension_assets::weights::WeightInfo> RegisteredChainExten
impl RegisteredChainExtension<Runtime> for UnifiedAccountsExtension<Runtime, UnifiedAccounts> {
const ID: u16 = 03;
}

impl<W: pallet_chain_extension_uniques::weights::WeightInfo> RegisteredChainExtension<Runtime>
for UniquesExtension<Runtime, W>
{
const ID: u16 = 04;
}
1 change: 1 addition & 0 deletions runtime/shibuya/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ impl pallet_contracts::Config for Runtime {
XvmExtension<Self, Xvm, UnifiedAccounts>,
AssetsExtension<Self, pallet_chain_extension_assets::weights::SubstrateWeight<Self>>,
UnifiedAccountsExtension<Self, UnifiedAccounts>,
UniquesExtension<Self, pallet_chain_extension_uniques::weights::SubstrateWeight<Self>>,
);
type Schedule = Schedule;
type AddressGenerator = pallet_contracts::DefaultAddressGenerator;
Expand Down

0 comments on commit 4207860

Please sign in to comment.