Coder Social home page Coder Social logo

cleon30 / protocol-v2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drift-labs/protocol-v2

0.0 0.0 0.0 12.74 MB

On-chain perpetuals dex with multiple liquidity mechanisms

License: Apache License 2.0

Shell 0.03% JavaScript 0.20% Rust 47.64% TypeScript 52.10% Dockerfile 0.02%

protocol-v2's Introduction

Drift Protocol v2

Docs Discord Chat License

Drift Protocol v2

This repository provides open source access to Drift V2's Typescript SDK, Solana Programs, and more.

SDK Guide

SDK docs can be found here

Example Bot Implementations

Example bots (makers, liquidators, fillers, etc) can be found here

Building Locally

Note: If you are running the build on an Apple computer with an M1 chip, please set the default rust toolchain to stable-x86_64-apple-darwin

rustup default stable-x86_64-apple-darwin

Compiling Programs

# build v2
anchor build
# install packages
yarn
# build sdk
cd sdk/ && yarn && yarn build && cd ..

Running Rust Test

cargo test

Running Javascript Tests

bash test-scripts/run-anchor-tests.sh

Bug Bounty

Information about the Bug Bounty can be found here

protocol-v2's People

Contributors

crispheaney avatar github-actions[bot] avatar 0xbigz avatar wphan avatar lukecaan avatar nouralharithi avatar lowkeynicc avatar chestersim avatar 0xnineteen avatar evanpipta avatar soundsonacid avatar jarry-xiao avatar ricardojmendez avatar silas-x avatar grantweii avatar chenwainuo avatar norbaeocystin avatar sannykim avatar ryumasolooo avatar radiantaeon avatar omahs avatar nicolaslwilson avatar dependabot[bot] avatar asktree avatar acheroncrypto avatar zsal avatar nevi-me avatar vovacodes avatar swaroop-osec avatar metaproph3t 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.