unicornultrafoundation / go-u2u

Implementation of U2U Network in Golang
https://u2u.xyz
GNU Lesser General Public License v3.0
6 stars 3 forks source link

Implement EIP-7708 for U2U #105

Open trinhdn97 opened 4 months ago

trinhdn97 commented 4 months ago

Abstraction

Following EIP-7708, apply on U2U to allow external parties can easily track U2U transfers in internal transactions.

Motivation

Currently, Log are often used to track balance changes of assets on U2U. It’s useful tool for external parties like block explorer, centralized exchange. Logs work for ERC-20 tokens, but do not work for U2U. U2U transfers from EOA can be read from transaction list in the block, but U2U transfers from contract are not automatically logged anywhere. This EIP proposes that we automatically generate a log every time a value-transferring CALL or SELFDESTRUCT happens. We also add a similar log for transfers in transactions, so that all U2U transfers can be tracked using same mechanism with ERC-20.

khoau2u commented 4 months ago

Interesting! No longer we tx tracing for querying internal transfers and I also think fee transfer in txs should be excluded. I wonder what can it be used for.