...
Use case
Wrap FIO Token:
Alice (dApp) executes
wraptokens
on FIO chainOracle monitors
wraptokens
for transfersOracle executes ERC20
_mint
Oracle executes ERC-20 ERC20
approve
Alice calls ERC-20
blanceOf
(dApp) calls ERC20balanceOf
to get balanceAlice executes ERC-20
transfer
(dApp) executes ERC20transferFrom
Assumptions
Assume there is a single Oracle managing all transactions. Do NOT worry about multisigs, approvals, etc.
No validation on either chain is required.
...
How will Alice execute the transfer? Are there standard interfaces or tools to do this?amounts on FIO are int64, amounts on ERC-20 are uint256 Need a dApp.