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.
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
If you are writing a Solana program that makes CPI of Beamsplitter:
// Better docs coming soon 😛
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 🎉.
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