nico
0bea962391
|
2 years ago | |
---|---|---|
contracts | 2 years ago | |
test | 2 years ago | |
.gitignore | 2 years ago | |
.mocharc.json | 2 years ago | |
.npmignore | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
hardhat.config.ts | 2 years ago | |
package.json | 2 years ago | |
yarn.lock | 2 years ago |
README.md
KalySwap Smart Contracts
This repo contains all of the smart contracts used to run KalySwap.
Deployed Testnet Contracts
Factory address: 0x775329A510c0b45D66F2358d44B929d41A253064
Router address: 0x6318EcDbae6B469D39C38949eDC671f4bA8A6172
Running
These contracts are compiled and deployed using Hardhat. They can also be run using the Remix IDE.
To prepare the dev environment, run yarn install
. To compile the contracts, run yarn compile
. Yarn is available to install here if you need it.
Accessing the ABI
If you need to use any of the contract ABIs, you can install this repo as an npm package with npm install --dev @kalycoinproject/exchange-contracts
. Then import the ABI like so: import { abi as IKalyswapPairABI } from '@kalycoinproject/exchange-contracts/artifacts/contracts/kalyswap-core/interfaces/IKalyswapPair.sol/IKalyswapPair.json'
.
Attribution
These contracts were adapted from these Uniswap repos: uniswap-v2-core, uniswap-v2-periphery, and uniswap-lib.