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
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.js
```
Stack used:
NodeJS: For creating a javascript environment that works as server
Express: For routing
MetaMask: Signing transactions
Hardhat : Compiling and deploying smart contracts
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