From c0c50425059c98da8304e1f819749a51572030eb Mon Sep 17 00:00:00 2001 From: AgusDuha <81362284+agusduha@users.noreply.github.com> Date: Tue, 3 Dec 2024 13:07:14 -0300 Subject: [PATCH] feat: add sender to ERC7802 events (#464) * feat: add sender to ERC7802 events (#9) * fix: lint --- specs/interop/token-bridging.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specs/interop/token-bridging.md b/specs/interop/token-bridging.md index f67fd0a57..a44696894 100644 --- a/specs/interop/token-bridging.md +++ b/specs/interop/token-bridging.md @@ -93,7 +93,7 @@ crosschainBurn(address _account, uint256 _amount) MUST trigger when `crosschainMint` is called ```solidity -event CrosschainMint(address indexed _to, uint256 _amount) +event CrosschainMint(address indexed _to, uint256 _amount, address indexed _sender) ``` #### `CrosschainBurn` @@ -101,7 +101,7 @@ event CrosschainMint(address indexed _to, uint256 _amount) MUST trigger when `crosschainBurn` is called ```solidity -event CrosschainBurn(address indexed _from, uint256 _amount) +event CrosschainBurn(address indexed _from, uint256 _amount, address indexed _sender) ``` ## `SuperchainERC20Bridge` @@ -142,7 +142,7 @@ sequenceDiagram from->>L2SBA: sendERC20(tokenAddr, to, amount, chainID) L2SBA->>SuperERC20_A: crosschainBurn(from, amount) - SuperERC20_A-->SuperERC20_A: emit CrosschainBurn(from, amount) + SuperERC20_A-->SuperERC20_A: emit CrosschainBurn(from, amount, sender) L2SBA->>Messenger_A: sendMessage(chainId, message) Messenger_A->>L2SBA: return msgHash_ L2SBA-->L2SBA: emit SentERC20(tokenAddr, from, to, amount, destination) @@ -150,7 +150,7 @@ sequenceDiagram Inbox->>Messenger_B: relayMessage() Messenger_B->>L2SBB: relayERC20(tokenAddr, from, to, amount) L2SBB->>SuperERC20_B: crosschainMint(to, amount) - SuperERC20_B-->SuperERC20_B: emit CrosschainMint(to, amount) + SuperERC20_B-->SuperERC20_B: emit CrosschainMint(to, amount, sender) L2SBB-->L2SBB: emit RelayedERC20(tokenAddr, from, to, amount, source) ``` @@ -239,14 +239,14 @@ sequenceDiagram from->>Intermediate_A: sendWithData(data) Intermediate_A->>L2SBA: sendERC20To(tokenAddr, to, amount, chainID) L2SBA->>SuperERC20_A: crosschainBurn(from, amount) - SuperERC20_A-->SuperERC20_A: emit CrosschainBurn(from, amount) + SuperERC20_A-->SuperERC20_A: emit CrosschainBurn(from, amount, sender) L2SBA->>Messenger_A: sendMessage(chainId, message) L2SBA-->L2SBA: emit SentERC20(tokenAddr, from, to, amount, destination) Intermediate_A->>Messenger_A: sendMessage(chainId, to, data) Inbox->>Messenger_B: relayMessage() Messenger_B->>L2SBB: relayERC20(tokenAddr, from, to, amount) L2SBB->>SuperERC20_B: crosschainMint(to, amount) - SuperERC20_B-->SuperERC20_B: emit CrosschainMint(to, amount) + SuperERC20_B-->SuperERC20_B: emit CrosschainMint(to, amount, sender) Inbox->>Messenger_B: relayMessage(): call L2SBB-->L2SBB: emit RelayedERC20(tokenAddr, from, to, amount, source) Messenger_B->>to: call(data)