anoma / namada

Rust implementation of Namada, a Proof-of-Stake L1 for interchain asset-agnostic privacy
https://namada.net
GNU General Public License v3.0
2.39k stars 948 forks source link

End-to-end tests for transfers from Ethereum to Namada using the fake events endpoint #508

Open james-chf opened 2 years ago

james-chf commented 2 years ago

We should have end-to-end tests testing submission of fake Ethereum events to a Namada validator. These tests should be able to be run in CI. They should cover (at least) what the shell script test does in https://github.com/anoma/namada/pull/430 - i.e. sending wDAI to an established address on a Namada chain - but this issue is open ended, we need to come up with more test cases. Examples of things we need to cover:

As a separate later issue - we will have equivalent end-to-end tests that use the fully deployed Ethereum smart contracts rather than the direct events submission endpoint.

To scope/plan out this issue for the moment (though perhaps this issue should become a tracking issue for individual issues for individual e2e tests)

cwgoes commented 1 year ago

@james-chf Is this status up to date?

james-chf commented 1 year ago

I've updated the checklist in the body of this issue - the previous second task (e2e tests relating to multitoken transfers with namadac transfer) has its own issue now so have removed it (https://github.com/anoma/namada/issues/578). Scoped this issue to be about adding e2e tests that submit fake Ethereum events to a namada node to test out Ethereum -> Namada transfers.