1.0.1 • Published 2 years ago

context-exchange-contracts v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Context Smart Contracts

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

Deployed Contracts

Factory address: 0x9F0e80Ac5E09Dd1E37b40E8CDd749768FEAD43EB

Router address: 0x27c8D4290EC9Aedac3A70F774F41B12F3e7b5F14

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 contextd-exchange-contracts. Then import the ABI like so: import { abi as IContextPairABI } from 'context-exchange-contracts/artifacts/contracts/context-core/interfaces/IContextPair.sol/IContextPair.json'.

Attribution

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

1.0.1

2 years ago

1.0.0

2 years ago