Skip to content

Commit

Permalink
Merge pull request #42 from AstarNetwork/feature/pallet-asset-ce
Browse files Browse the repository at this point in the history
Added pallet-asset chain-extension
  • Loading branch information
PierreOssun authored Nov 18, 2022
2 parents ec9e74c + 6f0642b commit f816a57
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
51 changes: 51 additions & 0 deletions Cargo.lock

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

7 changes: 7 additions & 0 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ pallet-rmrk-equip = { git = "https://github.com/AstarNetwork/rmrk-substrate", br
pallet-rmrk-market = { git = "https://github.com/AstarNetwork/rmrk-substrate", branch = "polkadot-v0.9.30", default-features = false }
rmrk-traits = { git = "https://github.com/AstarNetwork/rmrk-substrate", branch = "polkadot-v0.9.30", default-features = false }

# pallet-asset chain-extension
pallet-assets-chain-extension = { git = "https://github.com/AstarNetwork/pallet-assets-chain-extension", default-features = false, features = ["substrate"], branch = "polkadot-v0.9.30" }

# Used for the node template's RPCs
frame-system-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.30" }
pallet-transaction-payment-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.30" }
Expand Down Expand Up @@ -102,6 +105,7 @@ std = [
"sp-std/std",
"sp-transaction-pool/std",
"sp-version/std",
"pallet-assets-chain-extension/substrate-std",
]
contracts-unstable-interface = [
"pallet-contracts/unstable-interface",
Expand All @@ -116,6 +120,9 @@ runtime-benchmarks = [
"pallet-dapps-staking/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"pallet-contracts/runtime-benchmarks",
"pallet-assets/runtime-benchmarks",
"pallet-assets-chain-extension/runtime-benchmarks",
]
try-runtime = [
"log",
Expand Down
6 changes: 5 additions & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,11 @@ impl pallet_contracts::Config for Runtime {
type DepositPerByte = DepositPerByte;
type WeightPrice = pallet_transaction_payment::Pallet<Self>;
type WeightInfo = pallet_contracts::weights::SubstrateWeight<Self>;
type ChainExtension = (DappsStakingExtension<Self>, RmrkExtension<Self>);
type ChainExtension = (
DappsStakingExtension<Self>,
RmrkExtension<Self>,
pallet_assets_chain_extension::substrate::AssetsExtension,
);
type DeletionQueueDepth = ConstU32<128>;
type DeletionWeightLimit = DeletionWeightLimit;
type Schedule = Schedule;
Expand Down

0 comments on commit f816a57

Please sign in to comment.