Rodrigo Quelhas
Rodrigo Quelhas
Added a new command `generate-moonbeam-key`. https://github.com/moonbeam-foundation/moonbeam/pull/3090 The old command `generate-account-key` now prints a warning: 
Hi @julian-payne, For future reference, in the upcoming client version `0.47.0`, you will be able to do the following: ```sh # Generate a Moonbeam key (default) moonbeam key generate-moonbeam-key --network...
Can you try using `eth_estimateGas` RPC? Moonbeam has 3 gas factors, the standard gasmeter, the PoV gas and Storage growth gas. This is most likely happens only when PoV gas...
> why not just use moonwall's built in chopsticks helpers?: https://github.com/Moonsong-Labs/moonwall/blob/d25dd555bb1fb2802f394cba70714d66903beaf6/test/suites/chopsticks/test-chopsticks-basic.ts#L87 > > (fake signature helpers are pure functions so should be able to work with chopsticks instance managed by...
Moonbeam foreign assets are native ERC-20 contracts, https://github.com/moonbeam-foundation/moonbeam/blob/master/pallets/moonbeam-foreign-assets/resources/foreign_erc20.sol Storage layout: ```rs { "astId": 332, "contract": "contracts/erc20.sol:MyToken", "label": "_balances", "offset": 0, "slot": "0", "type": "t_mapping(t_address,t_uint256)" }, { "astId": 8, "contract": "contracts/erc20.sol:MyToken",...
If you find the above too complex, you can also modify the asset owner, which is at slot 5 and then call `function mintInto(address to, uint256 amount)` in the erc-20...
You can use https://remix.ethereum.org to interact with erc-20. If it is easier I can provide the storage key and value you need to set with `system.setStorage`. For that I just...
Storage key: `0x1da53b775b270400e7e61ed5cbc5a146ab1160471b1418779239ba8e2b847e421f720ca3a567a7892f51ba4eabe649ccffffffff1fcacbd218edc0eba20fc2308c778080adf054024eb585d942fdcc11210daf107a1bc6e523bf240517ff9a4d6c4555b1a9ec0fd6a35164bd2ea9c9462b97370d` Storage value: `0x0000000000000000000000000000000000000000000000056bc75e2d63100000` This will set the balance to `100000000000000000000` on account `0x24D18dbFBcEd732EAdF98EE520853e13909fE258` for asset xcDOT.
You could use the same approach I shared above, by overriding the storage to change the owner and then minting some tokens.
For mocking the asset balances it should be identical, both assets use an erc20 native evm contract. Later today I could provide you with an example similar to: https://github.com/moonbeam-foundation/moonbeam/issues/3404#issuecomment-3215220955