HeliSwap core and periphery contracts are forks of Uniswap V2 core and
periphery repositories. The contracts are tailored to deployment on
Hedera Hashgraph and thus HeliSwap supports both HTS
and native to the Smart Contract
Service ERC20
deployed tokens.
HeliSwap contracts are non-upgradeable and thus immutable. For detailed information of how the contracts work, you can go to Uniswap Docs.
Changes from Uniswap V2
- After Pair creation, in the initialisation phase, the newly created Pair associates itself through HIP-206 to the 2 pair tokens.
- Additional metadata is emitted in events to compensate for the lack of free
view
functions.
Mainnet Deployment Addresses
HeliSwapFactory
:0x0000000000000000000000000000000000134224
HeliSwapV2Router02
:0x00000000000000000000000000000000002cc9B2
Testnet Deployment Addresses
HeliSwapFactory
:0x000000000000000000000000000000000000212d
HeliSwapV2Router02
:0x000000000000000000000000000000000000212f
Set up your Development environment by performing the following steps:
git clone
cp config.sample.ts config.ts
npm install
npx hardhat compile
Deployment, interactions and utilities scripts are defined as hardhat
tasks and can be run through package.
json.
Install dependencies:
npm install
You can run contracts tests with:
npx hardhat test