-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make pallet_contracts compatible with the Ethereum RPC. #111
Comments
how are you plan to handle the different address format? how compatible do you intent to make them be? 100% or 98% (like Acala EVM+) or 50% (because people won’t be able to deploy and run evm contracts)? what’s the status of this issue? pending research? design completed? poc ready? |
There will just be a mapping scheme between the 20bit addresses and whatever the chain uses. Just as this is the case for chains that use pallet-evm without using 20bit natively.
At first, we just aim for end user compatibility: A Dapp deployed on pallet-contracts can be used with Metamask. Developers will still need to be aware. But they can target the Metamask userbase.
Pending research. But I am at a point where I am convinced that it will work. The only big work item is supporting Eth ABI in ink! (in addition to our native SCALE based Abi). |
We already have a pallet to manage account mapping https:/AcalaNetwork/Acala/blob/master/modules/evm-accounts/src/lib.rs It is possible to make Substrate chain use H160 as address (e.g. Moonbeam). Is it possible to make ink contract use H160 as address? If that's possible, then things will be a bit easier. |
I know. This is why I didn't spend too much thoughts on this. It is a solved problem.
|
Related issue for ink!: use-ink/ink#1748. |
chainHead/unpin: Explicit about unpin parameters
This is a tracking issue for making it possible to interact with pallet_contracts through the Ethereum RPC. We want this so that contract authors and users could use their contracts with well-known tooling like e.g. Truffle and Metamask.
We will try to achieve that by making Frontier's pallet_ethereum work with pallet_contracts.
In order for this RPCs to be useful we need to support Eth ABI in ink!:
The text was updated successfully, but these errors were encountered: