Skip to main content

Questions tagged [erc20]

The tag has no usage guidance.

0 votes
0 answers
26 views

How to implement XC-20 standard

I need help understanding XC-20 implementation and how its components interact. Suppose I run a parachain (ParaA) that aims to supports XC-20. I need to include Frontier so ParaA is fully EVM ...
magecnion's user avatar
  • 344
1 vote
1 answer
93 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&...
Bernardo Rodrigues's user avatar
1 vote
1 answer
77 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: ...
dbp's user avatar
  • 11
5 votes
1 answer
162 views

Why does the Astar XC20 wrapper example use the ERC20 wrapper functionality?

I am working on an XC20 implementation of an existing ERC20. I am basing the contract off of the Astar here. I noticed there is some code inherited from the ERC20 contract via the ERC20Wrapper ...
DanTheMan's user avatar
0 votes
1 answer
57 views

How to initiate SpreadAllocated storage including other contract reference?

use erc20::Erc20Ref; use ink_storage::traits::SpreadAllocate; #[ink(storage)] #[derive(SpreadAllocate)] pub struct Bridge { map: ink_storage::Mapping<AccountId, u32>, token: Erc20Ref, } ...
Maxim Biryukov's user avatar