Reference information for FA bridging calls and events#367
Reference information for FA bridging calls and events#367timothymcmackin wants to merge 10 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
b8c15d8 to
3480309
Compare
2b2bec3 to
f73117f
Compare
780d2b1 to
4d205fc
Compare
4d205fc to
1f96ddc
Compare
11ad135 to
091c992
Compare
091c992 to
72f4eb3
Compare
docs/bridging/bridging-fa-how.md
Outdated
| Field | Type | Description | ||
| --- | --- | --- | ||
| `ticketOwner` | address | The ERC-20 proxy contract that manages the tokens | ||
| `receiver` | address | The ERC-20 proxy contract that manages the tokens (a duplicate of the `ticketOwner` field) |
There was a problem hiding this comment.
This is untrue, it is the etherlink account receiving the FA deposit tokens
docs/bridging/bridging-fa-how.md
Outdated
| `sender` | address | The Etherlink address that is withdrawing the tokens | ||
| `ticketOwner` | address | The ERC-20 proxy contract that manages the tokens | ||
| `receiver` | bytes22 | The layer 1 address that receives the tokens | ||
| `proxy` | bytes22 | The proxy address through which the deposit is routed |
There was a problem hiding this comment.
This might confusing w.r.t. other proxy mentions in the doc, this a L1 contract, in previous events proxy refers to a L2 contract
There was a problem hiding this comment.
Which contract is this, the token brige helper contract, the ticketer contract, or something else?
There was a problem hiding this comment.
Based on discussion this appears to be the token bridge helper contract.
docs/bridging/bridging-fa-how.md
Outdated
|
|
||
| Field | Type | Description | ||
| --- | --- | --- | ||
| `ticketOwner` | address | The ERC-20 proxy contract that manages the tokens |
There was a problem hiding this comment.
ticketOwner can sometimes be the receiver, but imho this is an implem detail and shouldn't be mentionned, I'll let you be the judge of it
There was a problem hiding this comment.
I'll add "or, in some cases, the account receiving the deposited tokens"
docs/bridging/bridging-fa-how.md
Outdated
| `sender` | address | The Etherlink address that is withdrawing the tokens | ||
| `ticketOwner` | address | The ERC-20 proxy contract that manages the tokens | ||
| `receiver` | bytes22 | The layer 1 address that receives the tokens | ||
| `proxy` | bytes22 | The proxy address through which the deposit is routed |
bcee516 to
523b649
Compare
Provide more detailed information about how the FA bridge works. I took information about the events from
etherlink/kernel_latest/revm/contracts/fa_bridge.solbut I'm not sure if I've got each field explained clearly.