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)
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 howft_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 theSubmitResult
to include logs in the transactions corresponding toft_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)