Questions tagged [frontier]
Questions about the most popular Substrate EVM framework.
15
questions with no upvoted or accepted answers
1
vote
0
answers
8
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
62
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
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
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
1
answer
21
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 ...
0
votes
0
answers
23
views
What is the account code in genesis account?
What does account code use for? No idea why are 0xff (INVALID) and 0x00 (STOP)...
https://github.com/paritytech/frontier/blob/08dfe8986e3f92ce213244c438eb9178653fce59/primitives/evm/src/lib.rs#L87
...
0
votes
1
answer
38
views
Update ERC-20 Storage slot from Substrate
I'm trying to make a PoC (using frontier template) where I should update the balance of an EVM ERC-20.
I guess that the steps should be as follows:
Calculate the storage slot like this tool does: ...
0
votes
0
answers
63
views
build NPOS EVM commpatible chain
What's the best project setup to build an NPoS and EVM Compatible chain at this moment?
Which version/branch of polkadot release to use? such as polkadot-v0.9.22 or polkadot-v0.9.18?
Use ORML or ...
0
votes
0
answers
27
views
duplicate lang item in crate std (which ansi_term depends on): panic_impl - Cannot use dependency
I was trying to use this ansi_term dependency in my project/precompiles/utils/src/lib.rs.
Here is my file structure:
my_parachain/
├── ...
└──precompiles/utils
├── macro
├── src/lib.rs
└...