Near-One / rainbow-token-connector

ERC-20/NEP-141 Token Connector for Rainbow Bridge
62 stars 18 forks source link

Emit event/logs when a proof is used #63

Open mfornet opened 3 years ago

mfornet commented 3 years ago

Emit events after consuming proofs, for easy searching for tx in indexers both in NEAR and in Ethereum

NEAR -> Ethereum

When a proof is consumed, emit an event with the receipt_id of the receipt on NEAR that was used to generate this proof.

Ethereum -> NEAR

When a proof is consumed, emit a log with the identifier of the event (tx hash, and log id) of the log on Ethereum that was used to generate this proof.

mfornet commented 3 years ago

Follow up from this suggestion: https://github.com/aurora-is-near/rainbow-bridge-client/issues/40#issuecomment-854434539