You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
nico 0bea962391 testnet 2 years ago
contracts testnet 2 years ago
test testnet 2 years ago
.gitignore testnet 2 years ago
.mocharc.json testnet 2 years ago
.npmignore testnet 2 years ago
LICENSE testnet 2 years ago
README.md testnet 2 years ago
hardhat.config.ts testnet 2 years ago
package.json testnet 2 years ago
yarn.lock testnet 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.