GithubHelp home page GithubHelp logo

intl-man / beamsplitter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coherence-finance/beamsplitter

0.0 0.0 0.0 762 KB

BeamSplitter Monorepo

License: GNU Affero General Public License v3.0

Shell 0.02% JavaScript 0.11% Rust 23.37% TypeScript 76.50%

beamsplitter's Introduction

BeamSplitter Logo

npm version License: AGPL v3 Discord Support

BeamSplitter is Coherence's cryptocurrency ETF program on Solana. This monorepo contains the on-chain program as well as the client sdk for interacting with Beamsplitter. It uses, Anchor, a framework that simplifies development on Solana. You can use the program to construct and deconstruct on-chain ETF-like tokens.

Installing the SDK (Off-Chain)

If you are building a client that interacts with Beamsplitter, install the sdk through:

yarn add @coherence-finance/sdk

Looking for examples? Check out the EXAMPLES.md file

Calling the Program (On-Chain)

If you are writing a Solana program that makes CPI of Beamsplitter:

// Better docs coming soon ๐Ÿ˜›

Building and Deploying the Program

If you are building from source or deploying your own instance of Beamsplitter, use the steps below.

First install Anchor and it's dependencies.

Next, install the necessary test client dependencies with:

yarn

Next, compile the program and generate the IDL for the tests with Anchor's build command:

anchor build

Deploy the program with Anchor's deploy command:

anchor deploy

Beamsplitter is live ๐ŸŽ‰.

Testing

Anchor, and therefore Beamsplitter, uses ts-Mocha a Typescript wrapper around Mocha.

Integration tests can be added under the tests directory. Execute the tests with:

yarn test

beamsplitter's People

Contributors

agunderman10 avatar sagefarrenholz avatar thasianx 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.