@lydiaswap/exchange-contracts

1.0.2 • Public • Published

Lydia Smart Contracts

This repo contains all of the smart contracts used to run Lydia.

Deployed Contracts

Factory address: 0xe......

Router address: 0xE.......

Running

These contracts are compiled and deployed using Hardhat. They can also be run using the Remix IDE. A tutorial for using Remix is located here.

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 @lydiaswap/exchange-contracts. Then import the ABI like so: import { abi as ILydiaPairABI } from '@lydiaswap/exchange-contracts/artifacts/contracts/lydia-core/interfaces/ILydiaPair.sol/ILydiaPair.json'.

Attribution

These contracts were adapted from these Uniswap repos: uniswap-v2-core, uniswap-v2-periphery, and uniswap-lib.

Readme

Keywords

none

Package Sidebar

Install

npm i @lydiaswap/exchange-contracts

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

9.69 MB

Total Files

132

Last publish

Collaborators

  • ue