Questions tagged [frontier]
Questions about the most popular Substrate EVM framework.
103
questions
2
votes
1
answer
59
views
Duplicate lang item error (E0152) with sp_io crate when integrating Frontier pallets with Substrate
I'm trying to make my Substrate-based blockchain compatible with Solidity and MetaMask. I've cloned Substrate from the polkadot-v0.9.39 branch and am trying to integrate Frontier's Ethereum ...
2
votes
1
answer
147
views
How to Integrate a Substrate Chain with MetaMask and Implement Specific Features?
I am currently working on a project that involves creating a Substrate chain and I have several questions related to this:
Integration with MetaMask: I want to be able to connect my Substrate chain to ...
-1
votes
2
answers
100
views
the trait bound `<RuntimeApi as ConstructRuntimeApi<sp_runtime::generic::Block<, OpaqueExtrinsic>>` is not satisfied
`the trait bound` `<RuntimeApi as ConstructRuntimeApi<sp_runtime::generic::Block<sp_runtime::generic::Header<u32, BlakeTwo256>, OpaqueExtrinsic>, sc_service::client::client::Client&...
0
votes
1
answer
71
views
frontier template upgrade to polkadotv0.9.38 but using Babe instead of Aura
I've upgraded the frontier-node-template to substrate polkadot-v0.9.38, I've fixed all issues in runtime, migrated my code as well.
But since last few days, I'm stuck in converting service.rs file in ...
2
votes
0
answers
60
views
Frontier: What is trait LinearCostPrecompile about?
So it's often seen in Precompile implementations as a trait bound :
impl<T: LinearCostPrecompile> Precompile for T {
and the trait itself :
pub trait LinearCostPrecompile {
const BASE: u64;
...
1
vote
1
answer
71
views
Frontier template using sr25519 - polkajsapi
I just cloned frontier and modified the code for using H256 address following this
These are my changes in runtime/src/lib.rs:
pub type Signature = MultiSignature;
impl pallet_evm::Config for Runtime ...
1
vote
0
answers
88
views
how withdraw astar frontier tip reward with alice in dev mode, i use evm.withdraw(0x15fdd31c61141abd04a99fd6822c8558854ccde3, 1) report "bad Origin"
[]
https://github.com/AstarNetwork/Astar.git
./target/release/astar-collator --dev -d ./data -l info
astar frontier evm use HashedAddressMapping in evm pallet
alice public key is ...
5
votes
1
answer
167
views
PolkadotJS Apps shows wrong AccountId20 on Frontier Template Node
Frontier recently received support for Moonbeam's AccountId20:
https://github.com/paritytech/frontier/pull/1019
So now I'm trying to use this new feature on PolkadotJS Apps.
I'm running a Frontier ...
1
vote
1
answer
111
views
Generating ethereum address from SS58 address [duplicate]
I have created keypairs for aura and grandpa and added it into customSpec file but i need to add ethereum address in customSpec file to fund it with some amount of ethereum. So, i have generated ...
2
votes
1
answer
102
views
Derived H160 address is different than showing in metamask?
I know ss58 public key and private key, also I have derived the EVM HS160 account from the same public key, next is how I can import that EVM HS160 Account in metamask. If I put the private key of ...
2
votes
1
answer
63
views
PreLog Blocks in frontier ethereum pallet on_initialize hook
fn on_initialize(_: T::BlockNumber) -> Weight {
let mut weight = T::SystemWeightInfo::kill_storage(1);
// If the digest contain an existing ethereum block(encoded as PreLog)...
1
vote
1
answer
206
views
How do I use the AccountId20 and EthereumSignature Signer with polkadot.js.org? [duplicate]
I'm trying to get a better understanding of Frontier, and thus I'm reimplementing the frontier node template over the generic substrate node template. Unfortunately I'm pretty much stuck at step 1.
...
1
vote
0
answers
19
views
subscan-essentials EVM plugin
I've tested subscan-essentials and love how nicely a substrate-based chain gets indexed in a database. But I see that it doesn't parse Frontier evm extrinsics. I couldn't find open-source plugins for ...
1
vote
1
answer
62
views
How to implement the `Get` trait for a `Pallet<T>`?
I'm writing a pallet that implements evm::executor::stack::PrecompileSet.
The goal is to use this pallet in conjunction with Frontier's pallet-evm, which has the following types in its Config trait:
...
1
vote
2
answers
106
views
frontier node template fees
I created a new frontier node template with frontier.
During each interaction I pay a gas fee, my question is where this gas fee is deposited and can it be collected by the validator ?