Skip to content

BeTechnologyCo/fex

 
 

Repository files navigation

Order Book decentralized

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.

Try running some of the following tasks:

npx hardhat help
npx hardhat test
GAS_REPORT=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.ts

Test in local

To test in local create .env file and add 4 private key and execute script

PRIVATE_KEY = 0xaaaaaaaaa.... PRIVATE_KEY2 = 0xbbbbbbbb.... PRIVATE_KEY3 = 0xccccccccc.... PRIVATE_KEY4 = 0xdddddddd....

npx hardhat test .\test\order-test.ts

Deploy on local

To deploy in mumbai or local node add deployer key on .env file and execute script (we used a mumbai fork)

DEPLOYER_KEY = 0xaaaaaaaaa....

npx hardhat node

npx hardhat run scripts/deploy.ts

Deploy on fantom testnet

To deploy in fantom testnet or local node add deployer key on .env file and execute script

DEPLOYER_KEY = 0xaaaaaaaaa....

npx hardhat run scripts/deploy.ts --network testnet

Native token address (testnet) : 0x5bd8391CBC43eE396F5614A517691C7d08268333

Order Book address (testnet) : 0x1fb496CDD6e00EE72c775263FFb34c1401bC5CfC

Licensing

The primary license for Order Book Dex is the Business Source License 1.1 (BUSL-1.1), see LICENSE. However, some files are dual licensed under GPL-2.0-or-later

About

The order book on the defi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 87.1%
  • TypeScript 12.9%