Questions tagged [frontier]
Questions about the most popular Substrate EVM framework.
69
questions
8
votes
2
answers
426
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>>{
...
7
votes
1
answer
65
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 ...
6
votes
1
answer
76
views
cannot find function `memory_teardown` in module `sandbox`
I am trying to add evm_pallet with NPOS consensus( i.e babe and staking) but while adding evm_pallet to runtime getting error..
active toolchain
1.59-x86_64-unknown-linux-gnu (default)
rustc 1.59.0 (...
5
votes
1
answer
67
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
113
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
77
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
97
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
1
answer
62
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?
3
votes
2
answers
145
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
2
answers
89
views
How to change evm token decimals?
native token of my chain has 12 decimals,now i have integrated EVM functionality into my chain, is there any way by which i can change evm decimals from 18 to 12 as i don't want to change my native ...
2
votes
4
answers
208
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
91
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
95
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
3
answers
499
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
60
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
1
answer
102
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
26
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
58
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
98
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
0
answers
39
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
132
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
59
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
45
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
59
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
16
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
2
answers
59
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
272
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
44
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<_, ...
1
vote
1
answer
33
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
56
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
50
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 ...
1
vote
2
answers
107
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
103
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
64
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
106
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
173
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
7
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
0
answers
61
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 ...
1
vote
0
answers
11
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
0
answers
41
views
Change chainID in frontier after chain is live
We have tested in local chain with a runtime upgrade to change the chainID of the EVM (with frontier). All seems ok, chain continue to run correctly with the new chainID. Except the fact that we will ...
1
vote
0
answers
40
views
EVM precompile actions always returns error code -32603 when called
We have started implementing a precompile for our NFT pallet but when I try testing it locally using Remix IDE when calling all of its actions I always get the following message:
Internal JSON-RPC ...
1
vote
1
answer
118
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 ...
1
vote
1
answer
62
views
How to make feeless(for parachain runtime balance) transaction in Frontier EVM for certain Ethereum smart contract functions?
And I learned about how to wrap a pallet to make a precompile for Ethereum users to call those pallet functions ... see the video at https://www.youtube.com/watch?v=V9KfvhoqLJ4&t=1004s (time = 01:...
1
vote
0
answers
229
views
Zombienet: wasm trap: wasm `unreachable` instruction executed
I was trying to deploy Ethereum smart contracts to my parachain as part of a Zombienet test... After deploying a bunch of contracts including demo,
BoxU, ERC1820, ERC20, ERC721, ERC1155, ERC777, ...
1
vote
1
answer
169
views
submit transaction to pool failed: Pool(TemporarilyBanned)
When I tried to deploy an Ethereum smart contract to my parachain's Frontier EVM, I got this error:
running deployment script...
owner: 0x6Be02d1d3665660d22FF9624b7BE0551ee1Ac91b
user1: ...
1
vote
0
answers
37
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-...
1
vote
0
answers
34
views
Frontier node template fails to build
I've just checked out the latest frontier version from master branch (28c4bce). When I'm trying to run ./node-template-release.sh I'm getting the following error. How to fix this?
Compiling pallet-...
1
vote
0
answers
38
views
Read Token Contract Information
I would like to read contract information(especially name, symbol, decimal, owner) from token contracts like shown here: https://moonbeam.moonscan.io/token/0x818ec0a7fe18ff94269904fced6ae3dae6d6dc0b#...
1
vote
1
answer
148
views
Enabling the std feature on environmental crate
I'm trying to use the environmental crate (link: https://docs.rs/environmental/1.1.3/src/environmental/lib.rs.html#64) to work with EVM and ethereum transactions. But it seems like adding either ...
0
votes
2
answers
70
views
Is it possible to run moonbeam/Astar as a standalone network
I am exploring moonbeam and astar projects. I would like to know if it is possible to run a standalone network without collators or relaychain.
I am interested in running a standalone network of one ...