namada icon indicating copy to clipboard operation
namada copied to clipboard

Functionality to easily run a development Ethereum node with Ethereum bridge smart contracts deployed

Open james-chf opened this issue 2 years ago • 2 comments

We should have a way of running a local ledger node alongside an Ethereum node of some sort (e.g. geth, or some dummy Ethereum node like a Hardhat node), with the Ethereum bridge smart contracts deployed and the local Namada chain configured to use them.

Dependent tasks

  • https://github.com/anoma/namada/issues/686
  • https://github.com/anoma/ethereum-bridge/issues/24

james-chf avatar Jul 28 '22 09:07 james-chf

At the moment, the ledger always starts up geth on http://127.0.0.1:8545 and then the oracle component connects to it via that endpoint. We could allow the setting of a custom ETHEREUM_URL envvar and, if set, not start up geth.

We may want to start geth out-of-process on http://127.0.0.1:8545 and have the ledger still use it, or use some remote Ethereum API like Infura. This would provide the most flexibility for testing.

james-chf avatar Aug 01 '22 16:08 james-chf

The best way to do this (imo) may be to use something like npx hardhat node and then automatically deploy all the smart contracts, then start up the ledger pointing at the local Hardhat node using functionality from https://github.com/anoma/namada/pull/253

james-chf avatar Aug 24 '22 15:08 james-chf

@james-chf what is the status of this?

cwgoes avatar Jan 13 '23 18:01 cwgoes

Currently WIP in this PR - https://github.com/anoma/ethereum-bridge/pull/44 - also tracked in this issue - https://github.com/anoma/ethereum-bridge/issues/24

james-chf avatar Jan 15 '23 15:01 james-chf

Closed by https://github.com/anoma/ethereum-bridge/pull/44

james-chf avatar Feb 09 '23 11:02 james-chf