Near-One / rainbow-bridge

🌈🌈🌈 NEAR <> Ethereum Decentralized Bridge
GNU General Public License v3.0
327 stars 100 forks source link

Eth2-to-Near-relay: interaction with DAO #779

Closed olga24912 closed 2 years ago

olga24912 commented 2 years ago

Implementation of Eth Client Wrapper for interaction with DAO.

We created a trait for Eth Client Wrapper with two implementations: (1) direct interaction with contract(eth_client_contract.rs), (2) submitting the light client updates by DAO (dao_eth_client_contract.rs).

In DAO ETH2 Client wrapper implementation, all functions except send_light_client_update work in the same way as in the classic implementation and call the correspondent functions in EthClientContract inside. In send_light_client_update we submit the light client update to DAO and actively wait for when the transaction will be handled on DAO (until the status changes from InProgress).

sept-en commented 2 years ago

@olga24912 please rebase/merge on top of the the-merge branch.