Wrapping Architecture Overview

FIO is rolling out two wrapping features in the next release: FIO Token wrapping and FIO Domain wrapping. There is some overlap in the applications (on the FIO Chain and the fio.oracle middleware) but some differences (token wraps to the fio.erc20 contract on Ethereum, while domains wrap to the fio.erc721 contract on Polygon).

Wrapping applications/contracts

The wrapping architecture consists of 5 applications/contracts:

  1. FIO Chain contract (Casey)

 

2. ERC20 contract on the Ethereum chain (Adam / Bill)

 

3. ERC721 contract on the Polygon chain (Adam / Bill)

  • Spec of endpoints (similar to a FIP spec):

  • Github:

  • Devnet deployed on Polygon Mumbai testnet

 

4. Oracle middleware

  • Spec:

  • Github:

 

5. Wrapping Status Page (Admin UI)

  • This application is used to track wrap and unwrap transactions for the BPs and other Admins. There is not a lot of error checking in the oracle to monitor transactions that fail. The Status page is being built to help monitor transactions so appropriate action can be taken.

  • Spec:

  • Github:

  • Development site: https://fio-wrap-status-page.vercel.app

Devnet

Instructions for the Wrapping Devnet are here:

(Note that this is in development, so check with Eric to make sure it is working before testing it out.)