This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.
This project implements HTLC based atomic swap between Ontology and Ethereum with an on chain bidding on the Ethereum chain.
Try running some of the following tasks:
Currently swap can be done only when order is initiated via Ontology and responded via Ethereum.
```shell
Stack used:
npx hardhat help
NodeJS: For creating a javascript environment that works as server
npx hardhat test
Express: For routing
REPORT_GAS=true npx hardhat test
MetaMask: Signing transactions
npx hardhat node
Hardhat : Compiling and deploying smart contracts
npx hardhat run scripts/deploy.js
MongoDB Atlas: For storing the current bids in progress.
```
Languages used:
Solidity
Javascript
1. npm install
2. Setup metamask wallet
3. Configure two networks in metamask:
ONTOLOGY TESTNET
Network name - Ontology TestNet
New RPC URL - https://polaris2.ont.io:10339
Chain ID - 5851
Currency symbol - ONT
Block explorer URL(Optional) - https://explorer.ont.io/testnet
GOERLI TESTNET
Network name - Goerli test network
New RPC URL - https://goerli.infura.io/v3/
Chain ID - 5
Currency symbol - GoerliETH
Block explorer URL(Optional) - https://goerli.etherscan.io