Skip to content

Commit

Permalink
Update asset hub
Browse files Browse the repository at this point in the history
  • Loading branch information
raynaudoe committed Aug 7, 2024
1 parent ff99bf7 commit b7c2d18
Show file tree
Hide file tree
Showing 28 changed files with 2,204 additions and 1,912 deletions.
38 changes: 19 additions & 19 deletions system-parachains/asset-hub-paseo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ repository.workspace = true
version.workspace = true

[dependencies]
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] }
hex-literal = { version = "0.4.1", optional = true }
log = { version = "0.4.20", default-features = false }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
codec = { features = ["derive", "max-encoded-len"], workspace = true }
hex-literal = { optional = true, workspace = true }
log = { workspace = true }
scale-info = { features = ["derive"], workspace = true }

# Local
bp-asset-hub-paseo = { workspace = true }
Expand Down Expand Up @@ -63,9 +63,9 @@ sp-version = { workspace = true }
sp-weights = { workspace = true }
# num-traits feature needed for dex integer sq root:
primitive-types = { features = [
"codec",
"num-traits",
"scale-info",
"codec",
"num-traits",
"scale-info",
], workspace = true }

# Polkadot
Expand All @@ -81,11 +81,11 @@ xcm-executor = { workspace = true }
# Cumulus
cumulus-pallet-aura-ext = { workspace = true }
cumulus-pallet-parachain-system = { features = [
"parameterized-consensus-hook",
"parameterized-consensus-hook",
], workspace = true }
cumulus-pallet-session-benchmarking = { workspace = true }
cumulus-pallet-xcm = { workspace = true }
cumulus-pallet-xcmp-queue = { workspace = true , features = ["bridging"] }
cumulus-pallet-xcmp-queue = { features = ["bridging"], workspace = true }
cumulus-primitives-aura = { workspace = true }
cumulus-primitives-core = { workspace = true }
cumulus-primitives-utility = { workspace = true }
Expand All @@ -96,7 +96,6 @@ system-parachains-constants = { workspace = true }
assets-common = { workspace = true }

# Bridges
#bp-bridge-hub-paseo = { path = "../bridge-hub-paseo/primitives", default-features = false }
pallet-xcm-bridge-hub-router = { workspace = true }
snowbridge-router-primitives = { workspace = true }

Expand All @@ -109,7 +108,7 @@ parachains-runtimes-test-utils = { workspace = true }
substrate-wasm-builder = { optional = true, workspace = true }

[features]
default = [ "std" ]
default = ["std"]
runtime-benchmarks = [
"assets-common/runtime-benchmarks",
"cumulus-pallet-parachain-system/runtime-benchmarks",
Expand All @@ -122,6 +121,7 @@ runtime-benchmarks = [
"frame-system-benchmarking/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"hex-literal",
"pallet-asset-conversion/runtime-benchmarks",
"pallet-assets/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-collator-selection/runtime-benchmarks",
Expand All @@ -134,6 +134,7 @@ runtime-benchmarks = [
"pallet-utility/runtime-benchmarks",
"pallet-vesting/runtime-benchmarks",
"pallet-xcm-benchmarks/runtime-benchmarks",
"pallet-xcm-bridge-hub-router/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"parachains-common/runtime-benchmarks",
"polkadot-parachain-primitives/runtime-benchmarks",
Expand All @@ -142,8 +143,6 @@ runtime-benchmarks = [
"sp-runtime/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"pallet-asset-conversion/runtime-benchmarks",
"pallet-xcm-bridge-hub-router/runtime-benchmarks"
]
try-runtime = [
"cumulus-pallet-aura-ext/try-runtime",
Expand Down Expand Up @@ -171,14 +170,16 @@ try-runtime = [
"pallet-uniques/try-runtime",
"pallet-utility/try-runtime",
"pallet-vesting/try-runtime",
"pallet-xcm-bridge-hub-router/try-runtime",
"pallet-xcm/try-runtime",
"parachain-info/try-runtime",
"polkadot-runtime-common/try-runtime",
"sp-runtime/try-runtime",
"pallet-xcm-bridge-hub-router/try-runtime"
]
std = [
"assets-common/std",
"bp-asset-hub-paseo/std",
"bp-bridge-hub-paseo/std",
"codec/std",
"cumulus-pallet-aura-ext/std",
"cumulus-pallet-parachain-system/std",
Expand Down Expand Up @@ -215,7 +216,9 @@ std = [
"pallet-transaction-payment/std",
"pallet-uniques/std",
"pallet-utility/std",
"pallet-vesting/std",
"pallet-xcm-benchmarks?/std",
"pallet-xcm-bridge-hub-router/std",
"pallet-xcm/std",
"parachain-info/std",
"parachains-common/std",
Expand All @@ -225,12 +228,14 @@ std = [
"paseo-runtime-constants/std",
"primitive-types/std",
"scale-info/std",
"snowbridge-router-primitives/std",
"sp-api/std",
"sp-block-builder/std",
"sp-consensus-aura/std",
"sp-core/std",
"sp-genesis-builder/std",
"sp-inherents/std",
"sp-io/std",
"sp-offchain/std",
"sp-runtime/std",
"sp-session/std",
Expand All @@ -239,16 +244,11 @@ std = [
"sp-transaction-pool/std",
"sp-version/std",
"sp-weights/std",
"sp-io/std",
"snowbridge-router-primitives/std",
"substrate-wasm-builder",
"system-parachains-constants/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm/std",
"bp-bridge-hub-paseo/std",
"pallet-xcm-bridge-hub-router/std",
"bp-asset-hub-paseo/std"
]

# Enable metadata hash generation at compile time for the `CheckMetadataHash` extension.
Expand Down
13 changes: 8 additions & 5 deletions system-parachains/asset-hub-paseo/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#[cfg(feature = "std")]
#[cfg(all(feature = "std", not(feature = "metadata-hash")))]
fn main() {
substrate_wasm_builder::WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
substrate_wasm_builder::WasmBuilder::build_using_defaults()
}

#[cfg(all(feature = "std", feature = "metadata-hash"))]
fn main() {
substrate_wasm_builder::WasmBuilder::init_with_defaults()
.enable_metadata_hash("PAS", 10)
.build()
}

Expand Down
Loading

0 comments on commit b7c2d18

Please sign in to comment.