FlipsideCrypto / iou

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cross-Chain IOUs

Cross-Chain IOUs

Powering the functionality of trusted cross-chain payments, IOUs stand as an on-chain representation for an asset owed. Offered by the token distributor, a signature is enforced to provide an opportunity that all tokens minted have funds to be redeemed against.

This system utilizes a trusted party to provide the IOU, and is not a decentralized solution.

Building

The dependencies for IOUs are very slim. To install all that is needed, run:

npm install

Testing

This repository is setup to use Hardhat, a development environment to compile, deploy, test, and debug your Ethereum software. It helps developers manage and automate the recurring tasks that are inherent to the process of building smart contracts and dApps, as well as easily introducing more functionality around this workflow.

To install the dependencies, run the tests and prepare for development, run:

npx hardhat test

Deploying

To deploy the project to a local network, run:

npx hardhat deploy --network localhost

To deploy the project to a live network, first configure your .env based on example.env and then run:

npx hardhat deploy --network polygon

Test contracts can be found at:

  • Mock Badge: 0x971Bc5dC6eF18CfBf6BA965b60f0586cf685EE2B
  • IOU Singleton: 0x63c7641068A0843E7d359ca2d5B88d991a08fFB2
  • IOU Factory: 0x47E38e585EbBBEC57F4FfeF222fb73B1E3A524bC

About


Languages

Language:JavaScript 54.5%Language:Solidity 45.5%