Code Monkey home page Code Monkey logo

hydro-solana-dex's Introduction

Hydra Protocol

anchor-build

Overview

Hydra Protocol, formally known as HydraSwap is a Solana-based decentralized exchange that is dedicated to providing users with a CEX-level trading experience. Empowered by its game-changing Hydra Market Maker ( HMM) core, it is a high-performance AMM focused on maximizing the returns for liquidity providers. Our vision is to attract more liquidity into decentralized exchanges and bring the trading experience of the average DeFi user to the same level as centralized exchanges.

Note

  • Hydra Protocol is in active development and all API are subject to change
  • This is currently experimental and unaudited software. Use at your own risk.

Programs / Contracts

All programs can be found in ./programs and all integration tests can be found in ./tests

  • hydra-farming
  • hydra-multisig
  • hydra-pools
  • hydra-staking
  • hydra-vesting

Contributing

Install dependencies

Some of the following dependencies can be installed via the make task: make install_dependencies. Please make sure you valid you have all the correct versions post install.

Installing rust:

Direction can be found here

$ rustc --version
rustc 1.60.0 (7737e0b5c 2022-04-04)

Installing solana cli tools:

Directions can be found here

$ solana --version
solana-cli 1.9.18 (src:5d0f2a9f; feat:1070292356)

Installing NodeJs

Direction can be found here

$ node --version
v16.14.2

Installing yarn

Direction can be found here

$yarn --version
1.22.18

Installing wasm-pack

cargo install wasm-pack

$wasm-pack -V
wasm-pack 0.10.2

cargo install wasm-bindgen-cli

Installing Anchor:

Directions can be found here.

You can also use our own fork by running make install_anchor

$ anchor --version
anchor-cli 0.24.2

Install TS dependencies

yarn

Build

make build

Build TypeScript components

To build the javascript components you need to have built and deployed anchor to a local solana-test-validator so that your IDLs contain programIds.

After anchor deploy you can run:

yarn build

We would like to make this experience more seamless.

Deploy

anchor deploy

Test

make test

Migrate

make migrate

How tos


hydro-solana-dex's People

Contributors

bugcrusher717 avatar

Stargazers

 avatar Jeff Snow avatar Sweet avatar  avatar Roman avatar Blockchain Developer avatar

Watchers

Blockchain Developer 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.