Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusrodri committed May 17, 2024
1 parent 1a7b709 commit 0af1098
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions runtime/moonbase/src/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,17 @@ parameter_types! {

type EthereumPrecompilesChecks = (AcceptDelegateCall, CallableByContract, CallableByPrecompile);

// Pallet-xcm precompile types.
// Type that converts AssetId into Location
type AssetIdToLocationManager = AsAssetType<AssetId, AssetType, AssetManager>;

// The pallet-balances address is identified by 2050
type SingleAddressMatch = SingleAddressMatcher<AccountId, 2050, Balances>;

// Type that matches an AccountId with a foreign asset address (if any)
type ForeignAssetMatch = ForeignAssetMatcher<AccountId, AssetId, Runtime, AssetIdToLocationManager>;

// Erc20XcmBridge pallet index = 48
type Erc20Match = Erc20PalletMatcher<AccountId, 48>;

#[precompile_utils::precompile_name_from_address]
Expand Down

0 comments on commit 0af1098

Please sign in to comment.