-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flow VM Bridge FLIP #233
Flow VM Bridge FLIP #233
Conversation
Co-authored-by: j pimmel <[email protected]> Co-authored-by: Joshua Hannan <[email protected]>
Marked this FLIP as proposed |
In order to bridge an NFT or FT from Flow VM to Flow EVM does the developer need to write and deploy a solidity contract on Flow EVM to match his Cadence contract ? Assuming an NFT was bridged from Flow VM to Flow EVM. If that token changes owners (through a solidity marketplace contract for example) what events would be triggered on Flow? The events/logs on the solidity contract, the NFT transfer events in the Flow NFT standard, both , or some others ? |
A corresponding EVM contract must exist, but the bridge deploys it on "onboarding". This is done so that the bridge can mint in the target (non-native) VM. The bridge takes a Cadence type, assesses whether it's an NFT or FT, then calls into an EVM factory contract that deploys an ERC721/ERC20 with identifying information about the corresponding Cadence asset. The bridge then retains an association between the Cadence type and the corresponding bridge-deployed EVM contract.
On bridging from Cadence -> EVM, the NFT is locked in bridge escrow. Fulfillment of the bridge request emits an event (in Cadence) identifying the type, id, evm ID, recipient, and ERC721 defining contract. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice design 👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Спасибо вам очень хорошо
No description provided.