Skip to content

Commit 4d205fc

Browse files
Separate topics and payload
1 parent da4944b commit 4d205fc

1 file changed

Lines changed: 30 additions & 6 deletions

File tree

docs/bridging/bridging-fa-how.md

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,18 @@ event QueuedDeposit(
122122
);
123123
```
124124

125-
These are the fields in the event:
125+
The topics for this event are:
126+
127+
Field | Type | Description
128+
--- | --- | ---
129+
Signature | `keccak256` | `QueuedDeposit(uint256, address)`
130+
`ticketHash` | uint256 | The hash of the ticket that represents the transferred tokens, computed as `keccak256(L1 ticketer + content)`
131+
`proxy` | address | The proxy address through which the deposit is routed
132+
133+
The payload includes these fields:
126134

127135
Field | Type | Description
128136
--- | --- | ---
129-
`ticketHash` | uint256 (indexed) | The hash of the ticket that represents the transferred tokens, computed as `keccak256(L1 ticketer + content)`
130-
`proxy` | address (indexed) | The proxy address through which the deposit is routed
131137
`nonce` | uint256 | The global counter for the transaction
132138
`receiver` | address | The Etherlink address that receives the tokens
133139
`amount` | uint256 | The amount of tokens in the transaction
@@ -151,11 +157,17 @@ event Deposit(
151157
);
152158
```
153159

154-
These are the fields in the event:
160+
The topics for this event are:
155161

156162
Field | Type | Description
157163
--- | --- | ---
164+
Signature | `keccak256` | `Deposit(uint256)`
158165
`ticketHash` | uint256 | The hash of the ticket that represents the transferred tokens, computed as `keccak256(L1 ticketer + content)`
166+
167+
The payload includes these fields:
168+
169+
Field | Type | Description
170+
--- | --- | ---
159171
`ticketOwner` | address | The ERC-20 proxy contract that manages the tokens
160172
`receiver` | address | The ERC-20 proxy contract that manages the tokens (a duplicate of the `ticketOwner` field)
161173
`amount` | uint256 | The amount of tokens
@@ -180,11 +192,17 @@ event Withdrawal(
180192
);
181193
```
182194

183-
These are the fields in the event:
195+
The topics for this event are:
184196

185197
Field | Type | Description
186198
--- | --- | ---
199+
Signature | `keccak256` | `Withdrawal(uint256)`
187200
`ticketHash` | uint256 | The hash of the ticket that represents the transferred tokens, computed as `keccak256(L1 ticketer + content)`
201+
202+
The payload includes these fields:
203+
204+
Field | Type | Description
205+
--- | --- | ---
188206
`sender` | address | The Etherlink address that is withdrawing the tokens
189207
`ticketOwner` | address | The ERC-20 proxy contract that manages the tokens
190208
`receiver` | bytes22 | The layer 1 address that receives the tokens
@@ -212,11 +230,17 @@ event FastFaWithdrawal(
212230
);
213231
```
214232

215-
These are the fields in the event:
233+
The topics for this event are:
216234

217235
Field | Type | Description
218236
--- | --- | ---
237+
Signature | `keccak256` | `FastFaWithdrawal(uint256)`
219238
`ticketHash` | uint256 | The hash of the ticket that represents the transferred tokens, computed as `keccak256(L1 ticketer + content)`
239+
240+
The payload includes these fields:
241+
242+
Field | Type | Description
243+
--- | --- | ---
220244
`sender` | address | The Etherlink address that is withdrawing the tokens
221245
`ticketOwner` | address | The ERC-20 proxy contract that manages the tokens
222246
`receiver` | bytes22 | The layer 1 address that receives the tokens

0 commit comments

Comments
 (0)