aurora-is-near / aurora-engine

⚙️ Aurora Engine implements an Ethereum Virtual Machine (EVM) on the NEAR Protocol.
https://doc.aurora.dev/develop/compat/evm
323 stars 78 forks source link

Feat(standalone): SubmitResult from bridge transactions is available #869

Closed birchmd closed 7 months ago

birchmd commented 7 months ago

Description

Explorers like Blockscout rely on EVM logs to index certain events such as ERC-20 token transfers/minting/burning. When NEP-141 tokens are bridged to Aurora via ft_on_transfer there are ERC-20 token events that should be produced and indexed by explorers. This PR changes how ft_on_transfer calls are handled to expose the EVM logs generated to the standalone engine, which in turn will make them available to the Refiner and thus also to block explorers.

There will be a follow-up PR in borealis-engine-lib which uses the SubmitResult to include logs in the transactions corresponding to ft_on_transfer.

Performance / NEAR gas cost considerations

N/A no significant changes to contract code

Testing

Existing tests. (A new test will be added to borealis-engine-lib when we do integration there)