This effort prototypes a simplified end-to-end flow of FIO Wrapping.
Use case
Wrap FIO Token:
Alice (dApp) executes
wraptokens
on FIO chainOracle monitors
wraptokens
for transfersOracle executes ERC20
_mint
Oracle executes ERC20
approve
Alice (dApp) calls ERC20
balanceOf
to get balanceAlice (dApp) executes ERC20
transferFrom
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 with V1 History (eventually will move to Hyperion)
oracle: daemon running on server
ERC-20: open zeppelin contracts on Ropsten testnet
TBD
How will Alice execute the transfer? Need a dApp.
Add Comment