0.0.5 • Published 1 month ago

platadev v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

PlataForge

A central-limit order-book program on Solana. It started as an Openbook fork but many changes have been added.

License

See the LICENSE file.

The majority of this repo is MIT-licensed, but some parts needed for compiling the Solana program are under GPL.

All GPL code is gated behind the enable-gpl feature. If you use the plata-forge crate as a dependency with the client or cpi features, you use only MIT parts of it.

The intention is for you to be able to depend on the plata-forge crate for building closed-source tools and integrations, including other Solana programs that call into the PlataForge program.

But deriving a Solana program with similar functionality to the PlataForge program from this codebase would require the changes and improvements to stay publicly available under GPL.

Deployed versions

tag networkprogram ID
v0.1mainnetxxxx
v0.1devnetxxxx
v0.1testnetxxxx

Building & testing

Pre-requisites

Before you can build the program, you will first need to install the following:

Installing

To install the repo, run:

git clone https://github.com/plata-forge/program.git --recursive

The recursive flag ensures that you receive all of the submodules. If you have already cloned without passing in this flag, you can run:

git submodule init
git submodule update

To ensure that you always have the latest submodules, you can configure your git like so:

git config --global submodule.recurse true

Building

To build, run:

just build

IDL

To generate the progam & typescript IDLs, run:

just idl

Testing

To see whether all of the tests are passing, run:

just test-all

To drill down on a specific test (e.g., test_expired_order), run:

just test test_expired_order

If you want to have tests that automatically re-run when you edit a file, install entr and run:

just test-dev

TS Client

yarn build
0.0.5

1 month ago

0.0.4

1 month ago

0.0.3

1 month ago

0.0.2

2 months ago

0.0.1

2 months ago