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).
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. Insend_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 fromInProgress
).