Questions tagged [frontier]
Questions about the most popular Substrate EVM framework.
87
questions
8
votes
2
answers
602
views
How to bind an Ethereum H160 address with a Substrate H256 address?
I'm trying to bind a H160 address with a H256 address, if we
assume this function:
fn bind(origin: OriginFor<T>, address: H160 , signature: [u8; 130]) -> Result<(), Error<T>>{
...
5
votes
1
answer
114
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 ...
4
votes
1
answer
159
views
Frontier-node-template compilation error on Windows
I am trying to run the frontier-node-template:https://github.com/substrate-developer-hub/frontier-node-template/
But it gives an error as shown below. I tried to change the
rustup default nightly-...
4
votes
1
answer
85
views
Existential deposit in EVM compatible address
I understand that there is an existential deposit for native token. But, there is any existential deposit for EVM compatible address H160?
4
votes
1
answer
120
views
Is there any way to access the accountid inside the offchain worker?
I am coding a pallet in which I need to know who I am inside a offchain worker to check if I should send a transaction or not. Right now I have access to the account in the send_signed_transaction ...
3
votes
2
answers
105
views
Implementing min gas fee for pallet_evm
I have my base currency as 18 decimals like 1_000_000_000_000_000_000. I want to set my base fee to charge using 1_000_000_000_000_000_000 for each evm transaction. How can i do? currently i have done ...
3
votes
2
answers
255
views
Frontier: How to change EVM gas fee charged in calling precompile functions
Regarding the EVM gas fee used for calling precompile functions, how can I set that fee to zero so that the MetaMask will show zero fee at invoking those precompile functions?
I saw a demonstration of ...
3
votes
1
answer
62
views
How does 'into_account_id' function of pallet_evm works?
I'm working with pallet_evm of Frontier to support EVM, I want to map the Substrate account with the EVM account
#[pallet::storage]
pub type Mapping<T: Config> = StorageMap<_, ...
3
votes
1
answer
76
views
How substrate / frontier convert address
We are using frontier with substrate to be able to deploy evm smart contract.
When I create a transfer between two evm address and that the second one does not exist, the node create a new ss58 ...
3
votes
0
answers
120
views
Unable to fully utilize block capacity when performing load testing
I'm currently running load tests on my local parachain which includes Frontier integration for EVM compatibility. During these tests, I'm sending thousands of transactions via the RPC endpoint. ...
3
votes
0
answers
37
views
Unified Accounts
We have followed the comets of moonBeam and implemented Unified Accounts. Now we're facing issues while adding session keys for aura, grandpa and I'm online.
we're using this method for Aura and ...
3
votes
1
answer
113
views
Getting `insufficient funds for gas * price + value` error when performing transaction with another account than Alice
I'd like to use Substrate Frontier as a private blockchain for my current project. I have set up a project using a frontier-template-node build and I am now trying to adjust its settings.
I am ...
2
votes
4
answers
475
views
Private key for EVM Frontier
I am running the Frontier-Node-Template and using the library Web3JS to generate EVM transactions following the Moonbeam guide.
const Web3 = require('web3');
const web3 = new Web3('ws://127.0.0.1:9944'...
2
votes
2
answers
113
views
Ethereum chain as a Substrate chain
Is it technically possible to upgrade Ethereum to be Substrate compatible blockchain?
I understand there is likely to be strong resistance toward such idea in ETH community but I am interested only ...
2
votes
1
answer
123
views
How to upgrade Frontier to use a specific Substrate version
The Substrate team(https://github.com/paritytech/substrate/) produces releases like polkadot-v0.9.25 every a few weeks,
and my team needs to upgrade our parachain to follow those Substrate versions.
...
2
votes
1
answer
112
views
Explorer for Substrate-based EVM chains
I've built an EVM-compatible blockchain using Substrate and connected it with Metamask and PolkadotJs explorer. But I want a more user-friendly explorer that users with a non-technical background can ...
2
votes
2
answers
55
views
Is it possible to turn a Frontier node into an Ethereum client?
Suppose I start with a Frontier-based template node and want it to sync with a Geth full node, as if it was an Ethereum execution client.
What are the minimal set of changes necessary to make this ...
2
votes
1
answer
66
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 ...
2
votes
1
answer
51
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)...
2
votes
1
answer
78
views
Can an off-chain worker read/write the state of an EVM contract?
Let's assume we have a frontier-based node with smart contract X. From an off-chain worker, we want to call X.some_method() which will return data, and then the worker would use this data to make some ...
2
votes
3
answers
763
views
cannot find macro `vec` in this scope
I am trying to add Frontier as a dependency in my substrate-parachain-template.
Compiling sp-npos-elections v4.0.0-dev (https://github.com/paritytech/substrate?branch=polkadot-v0.9.25#3348e144)
...
2
votes
1
answer
134
views
How to make a parachain project that uses Frontier as a dependency?
I have a parachain project that uses Frontier as a dependency with a specific Substrate version(polkadot-v0.9.24), but the Ethereum RPC does not work. So I need to find the bug there...
Also I am ...
2
votes
1
answer
40
views
How to debug/solve this frontier integration issue?
I am currently in the process of integrating the frontier with the solo chain. Following the integration, when I attempted to deploy the contract using Remix, it appears to be stuck, with no ...
2
votes
1
answer
70
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
79
views
Frontier EVM integration: UnknownTransaction::NoUnsignedValidator error occurs while transferring funds via Metamask
I'm integrating Frontier EVM into my Substrate chain and facing the following issue while trying to send some funds between accounts via metamask:
[ethjs-query] while formatting outputs from RPC '{&...
2
votes
1
answer
157
views
How to make gasless(EVM balance) transaction in Frontier EVM for certain Ethereum smart contract functions?
How is gasPrice determined in Frontier EVM?
I found the following settings in the Frontier/template/src/runtime/lib.rs
impl pallet_evm::Config for Runtime {
type FeeCalculator = BaseFee;
type ...
2
votes
0
answers
45
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;
...
2
votes
0
answers
46
views
Failed to resolve dependencies with pallet-staking in frontier
i am trying to implement n-POS in my frontier and i had to use pallet-staking for that. but when i try to use this dependency in my cargo.TOML file it start giving me error related to frame-...
2
votes
0
answers
43
views
frontier ethereum pallet integration, the trait `fc_rpc::format::Formatter` is not implemented for `Geth` [closed]
I'm trying to copy a function from the frontier pallet(fc_rpc::format::Formatter), I copied it to a file and imported that.
frontier-752fb1c28a6c675a/ea37e8f/client/rpc/src/format.rs
It's the same ...
1
vote
2
answers
196
views
Where can I find frontier evm precompile documentation?
I'm trying to learn how to implement EVM pre-compiles in substrate (frontier), but I cannot find any documentation anywhere. If I try and reference something like moonbeam I fall into dependency hell. ...
1
vote
1
answer
84
views
Moonbeam #[precompile] procedural macro and Rust generics compilation error
I'm trying to write something similar to Moonbeam's assets-erc20 precompile.
I'm using Moonbeam's #[precompile] procedural macros.
pub type AssetIdOf<R> =
<<R as pallet_evm::Config&...
1
vote
1
answer
47
views
unresolved import sc_rpc::Metadata
i try to import fc-rpc on fronter.
but got some error message
Compiling fc-rpc v2.0.0-dev (https://github.com/paritytech/frontier.git#9d4ccba8)
error[E0432]: unresolved import `sc_rpc::Metadata`
--&...
1
vote
1
answer
75
views
Can I make a frontier node only accept json-rpc read methods?
Is there a way to filter ethereum json-rpc methods to only allow read calls, not writing? ie, filter out sendTransaction, sendRawTransaction, create, etc
1
vote
1
answer
43
views
Frontier & Substrate
Hello we are using frontier, and we would like to remove gas fees for all evm transactons, I tried many things, but didn't achieve..
I still need to pass gas when I sign and send a transaction :
await ...
1
vote
1
answer
61
views
Transferring Funds from SS58 Account to H160 Account Using Frontier and Metamask
I've successfully integrated Frontier into my runtime and have accessed the funds from an account, Alice's, using its SS58 account. To achieve this, I truncated the public address to retrieve the H160 ...
1
vote
1
answer
52
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 ...
1
vote
1
answer
102
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
2
answers
87
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 ?
1
vote
1
answer
94
views
the trait bound `Event: From<pallet_base_fee::Event>` is not satisfied
I was trying to add Frontier template into my substrate-parachain-template project...
when I added this code below in runtime/src/lib.rs:
impl pallet_base_fee::Config for Runtime {
type Event = ...
1
vote
1
answer
326
views
trait bound `H256: TypeInfo` is not satisfied; `TypeInfo` is not implemented for `H256, H160, H64, ethereum_types::U256`
Frontier(pallet-ethereum) project failed to compile after updating from polkadot-v0.9.17 to v0.9.18
Compiling polkadot-runtime v0.9.18 (https://github.com/paritytech/polkadot?branch=release-v0.9....
1
vote
1
answer
25
views
do we have any updated guide to integrate the frontier to the substrate solo-chain?
I want to integrate the frontier with my existing substrate solo-chain. do we have any guide/resource to help in that?
substrate version i am using polkadot-v1.0.0
1
vote
1
answer
62
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 ...
1
vote
1
answer
60
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
1
answer
102
views
getting Error's while adding pallet_evm to runtime " the trait bound `pallet_evm::Pallet<Runtime>: Callable<Runtime>` is not satisfied in `Call`"
I am trying to add Evm pallet to my substrate runtime i am using Polkadotv0.9.25 for both substrate and frontier but getting error of trait bound for almost every pallet.
error:- within Call, the ...
1
vote
2
answers
138
views
deploy solidity ethereum to parachain with ExhaustsResources error
I can deploy a few Ethereum smart contracts into my parachain via Hardhat.
But those are only normal contracts. All the upgradeable contracts and ERC777 contract cannot be deployed with the ...
1
vote
1
answer
151
views
ProviderError: submit transaction to pool failed: Pool(InvalidTransaction(InvalidTransaction::Payment))
Hi I am trying to use Hardhat to deploy Ethereum smart contracts to my parachain with Frontier EVM inside. The Hardhat uses my own Typescript file to deploy contracts like this one: https://hardhat....
1
vote
1
answer
70
views
eth_getLogs is returning empty array on Astar
With recent updates in frontier eth_getLogs is returning empty array
curl -X POST --data '{"id": 1, "jsonrpc":"2.0","method": "eth_getLogs","...
1
vote
2
answers
117
views
How do I know if I will need a storage migration along a forkless upgrade?
I have a blockchain running a version of Frontier from september 2021, and want to upgrade it to the latest commits.
I'm prepared to do a forkless upgrade, but who do I know if I will need storage ...
1
vote
1
answer
305
views
no function or associated item named `set_block_number` found for struct `frame_system::Pallet` in the current scope
I have updated rust version. when i try to build the frontier template i am getting the below error:
*
error[E0599]: no function or associated item named `set_block_number` found for struct `...
1
vote
0
answers
20
views
Run benchmark fail test in pallet-evm
test_benchmarks fail
Repo: https://github.com/paritytech/frontier
Command: cargo t -p pallet-evm --features runtime-benchmarks
Issue:
failures:
---- benchmarking::benchmark_tests::test_benchmarks ...