Coder Social home page Coder Social logo

al-qa-qa / constant-sum-amm Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 104 KB

Constant Sum AMM smart contract

License: MIT License

Solidity 18.97% TypeScript 81.03%
decentralized-finance defi ethereum hardhat solidity solidity-contracts automatic-market-maker

constant-sum-amm's Introduction

Constant Sum AMM Solidity Contract

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact
  6. Acknowledgments

About The Project

An Automated Market Maker (AMM) is a decentralized financial protocol that facilitates the trading of digital assets on blockchain networks, such as Ethereum.

We built an AMM smart contract, that depends on constant sum algorism (X + Y = K).

We used blockchain technology, the Ethereum network, and smart contract development technology to achieve our goal.

The smart contract is written in solidity, and we used JS/TS to test and interact with the contract.

Built With

The smart contract is built using hardhat framework, ethersjs, and some other packages and dependencies that speed up in development process.

  • Soliditylang
  • Hardhat
  • Openzeppelin-contracts

Getting Started

This is an example of how to run the smart contract locally on your computer.

Prerequisites

You need to check if nodejs and npm are installed on your computer first.

npm --version
node --version

If you don't have node, you can install it from there official website

Installation

Below is an example of how to start interacting with the smart contract locally.

  1. Clone the repo
    git clone https://github.com/Al-Qa-qa/constant-sum-amm.git
  2. Install NPM packages (remember to move to the directory constant-sum-amm first)
    npm install
  3. Code installed successfully, you can start testing it.

Usage

You can interact with the smart contract on the local network now.

  • npm run compile to compile the solidity code
  • npm run deploy to deploy the contract on the hardhat network
  • npm run test to run the unit testing of the contract

License

This project is under the MIT License. See LICENSE for more information.

Contact

Al-Qa'qa' - @Al_Qa_qa - [email protected]

Project Link: https://github.com/Al-Qa-qa/constant-sum-amm

Acknowledgments

We used some web services, open-source projects, and packages that helped us in our development process, which will be listed below.

We would like to apologize if we used a free package or service and forgot to mention it.

constant-sum-amm's People

Contributors

al-qa-qa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.