https://github.com/0xhappydev/evm-timlock-dex
This project introduces a timelocked token for DEX purchases on EVM-compatible networks. It delays token access after buying, promoting secure and controlled trading.
https://github.com/0xhappydev/evm-timlock-dex
dex evm timelock
Last synced: 28 days ago
JSON representation
This project introduces a timelocked token for DEX purchases on EVM-compatible networks. It delays token access after buying, promoting secure and controlled trading.
- Host: GitHub
- URL: https://github.com/0xhappydev/evm-timlock-dex
- Owner: 0xhappydev
- License: mit
- Created: 2025-10-23T06:46:16.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-10-23T06:46:35.000Z (9 months ago)
- Last Synced: 2026-06-24T22:00:03.171Z (about 1 month ago)
- Topics: dex, evm, timelock
- Language: TypeScript
- Homepage:
- Size: 418 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Token Contract
## About
* It is a ERC20-based native token contract for the project.
* For more, refer [Wiki](https://github.com/UnicoinOfficial/token-contract/wiki).
## Installation
```console
$ npm install
```
## Usage
### Build
```console
$ npx hardhat compile
```
### Test
```console
$ npx hardhat test
```
### Deploying contracts to localhost Hardhat EVM
#### localhost-1
```console
// on terminal-1
$ npx hardhat node
// on terminal-2
$ npx hardhat run deployment/hardhat/ETH/deploy_hardhat_eth.ts --network localhost1
```
#### localhost-2
```console
// on terminal-1
$ npx hardhat node
// on terminal-2
$ npx hardhat run deployment/hardhat/BSC/deploy_hardhat_bsc.ts --network localhost2
```
### Deploying contracts to Testnet (Public)
#### ETH Testnet - Rinkeby
* Environment variables
- Create a `.env` file with its values:
```
INFURA_API_KEY=[YOUR_INFURA_API_KEY_HERE]
SPEEDY_NODE_KEY=[YOUR_SPEEDY_NODE_KEY_HERE]
DEPLOYER_PRIVATE_KEY=[YOUR_DEPLOYER_PRIVATE_KEY_without_0x]
REPORT_GAS=
```
* Deploy the token on one-chain
```console
$ npx hardhat run deployment/testnet/ETH/deploy_testnet_eth.ts --network rinkeby
```
#### BSC Testnet
* Environment variables
- Create a `.env` file with its values:
```
INFURA_API_KEY=[YOUR_INFURA_API_KEY_HERE]
SPEEDY_NODE_KEY=[YOUR_SPEEDY_NODE_KEY_HERE]
DEPLOYER_PRIVATE_KEY=[YOUR_DEPLOYER_PRIVATE_KEY_without_0x]
REPORT_GAS=
```
* Deploy the token on one-chain
```console
$ npx hardhat run deployment/testnet/BSC/deploy_testnet_bsc.ts --network bsctest
```
### Deploying contracts to Mainnet
#### ETH Mainnet
* Environment variables
- Create a `.env` file with its values:
```
INFURA_API_KEY=[YOUR_INFURA_API_KEY_HERE]
SPEEDY_NODE_KEY=[YOUR_SPEEDY_NODE_KEY_HERE]
DEPLOYER_PRIVATE_KEY=[YOUR_DEPLOYER_PRIVATE_KEY_without_0x]
REPORT_GAS=
```
* Deploy the token on one-chain
```console
$ npx hardhat run deployment/testnet/ETH/deploy_mainnet_eth.ts --network eth
```
#### BSC Mainnet
* Environment variables
- Create a `.env` file with its values:
```
INFURA_API_KEY=[YOUR_INFURA_API_KEY_HERE]
SPEEDY_NODE_KEY=[YOUR_SPEEDY_NODE_KEY_HERE]
DEPLOYER_PRIVATE_KEY=[YOUR_DEPLOYER_PRIVATE_KEY_without_0x]
REPORT_GAS=
```
* Deploy the token on one-chain
```console
$ npx hardhat run deployment/testnet/BSC/deploy_mainnet_bsc.ts --network bsc
```