manifoldfinance / mevETH2

mevETH LST Protocol - Repo has migrated see link
https://github.com/MEV-Protocol/meveth
27 stars 2 forks source link

Feat: Introduce `eth_getTransactionBySenderAndNonce` and additional protection mechanisms for cross chain transfers & reorgs #175

Open sambacha opened 1 year ago

sambacha commented 1 year ago

New RPC Methods and Protection Mechanisms for Lz Transfers

We need to ensure that the DEST and SOURCE chain do not have differing views of a users state due to chain reorgs or liveness failures, etc.

### eth_getTransactionBySenderAndNonce

Consider this use case.

We journal everything we do. If the system dies we recover the state from that journal and move on. You need to re sync your local state with the chain first. That may mean a tx having been replaced. You can get the new tx, you can only try to fetch the old one and you receive a null.

With  `eth_getTransactionBySenderAndNonce` you just check which tx is using your nonce, if any.

sambacha commented 1 year ago

🥳 https://crosschainriskframework.github.io/framework/20categories/10network/network/

ControlCplusControlV commented 11 months ago

L0 removed and reverted in

sambacha commented 10 months ago

The proposed EIP spec is here: https://github.com/manifoldfinance/eip-proposal-rpc/blob/master/eth_getTransactionBySenderAndNonce.md

Just need to submit it now that the EIP repo has been split