This effort prototypes a simplified end-to-end flow of FIO Wrapping.
Use case
Wrap FIO Token:
Alice executes
wraptokens
on FIO chainOracle monitors
wraptokens
for transfersOracle executes ERC-20
approve
Alice calls ERC-20
blanceOf
to get balanceAlice executes ERC-20
transfer
Assumptions
Assume there is a single Oracle managing all transactions. Do NOT worry about multisigs, approvals, etc.
No validation on either chain is required.
Diagram link: https://drive.google.com/file/d/12f8iOoZjj1txZCJprpuQ5VFb8Ejpc9Bp/view?usp=sharing
Deployment
fio.wrapping contract deployed to DEV server
Hyperion connected to DEV server
oracle deployment?
ERC-20 deployment?
TBD
amounts on FIO are int64, amounts on ERC-20 are uint256
How will Alice execute the transfer? Are there standard interfaces or tools to do this?
0 Comments