From 0af10986227dfcd8075f3dd48a5f761a33149b67 Mon Sep 17 00:00:00 2001 From: Agusrodri Date: Fri, 17 May 2024 06:23:28 -0700 Subject: [PATCH] add some comments --- runtime/moonbase/src/precompiles.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/runtime/moonbase/src/precompiles.rs b/runtime/moonbase/src/precompiles.rs index 06b4c02d94..e904e0d5ef 100644 --- a/runtime/moonbase/src/precompiles.rs +++ b/runtime/moonbase/src/precompiles.rs @@ -99,9 +99,17 @@ parameter_types! { type EthereumPrecompilesChecks = (AcceptDelegateCall, CallableByContract, CallableByPrecompile); +// Pallet-xcm precompile types. +// Type that converts AssetId into Location type AssetIdToLocationManager = AsAssetType; + +// The pallet-balances address is identified by 2050 type SingleAddressMatch = SingleAddressMatcher; + +// Type that matches an AccountId with a foreign asset address (if any) type ForeignAssetMatch = ForeignAssetMatcher; + +// Erc20XcmBridge pallet index = 48 type Erc20Match = Erc20PalletMatcher; #[precompile_utils::precompile_name_from_address]