Commit 9ee9a0d4 authored by kirtisingh's avatar kirtisingh

Added Readme

parent b14e6ce5
# Sample Hardhat Project # Atomic Swap
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
4. Run npm app.js
5. localhost:3000 -> For the platform
6. localhost:3000/txns -> For the order book
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment