Go to file
Christian Kamm 676da3a084 Fix alignment of ordertree nodes (#954)
This ensures casts of local variables don't run into alignment
differences.

(cherry picked from commit d9c4f69e0e)
2024-04-29 18:50:58 +02:00
.github Openbook V2 Integration (#836) 2024-04-22 11:37:53 +02:00
anchor-tests
audits
bin Merge deploy into dev 2024-04-23 11:00:25 +02:00
cd
docs
lib Merge remote-tracking branch 'origin/dev' into dev 2024-04-23 11:01:06 +02:00
migrations
programs Fix alignment of ordertree nodes (#954) 2024-04-29 18:50:58 +02:00
py
scripts
ts/client Merge remote-tracking branch 'origin/dev' into dev 2024-04-23 11:01:06 +02:00
.dockerignore
.env.sample
.eslintignore
.eslintrc.json
.gitignore
.mocharc.json
.prettierignore
Anchor.toml
CHANGELOG.md Changelog for v0.25.0 2024-04-23 19:17:11 +02:00
Cargo.lock Serge/deploy v24+ (#945) 2024-04-22 13:27:15 +02:00
Cargo.toml Openbook V2 Integration (#836) 2024-04-22 11:37:53 +02:00
DEVELOPING.md
Dockerfile Openbook V2 Integration (#836) 2024-04-22 11:37:53 +02:00
FAQ-DEV.md
HOW-TO-RELEASE.md
LICENSE
Procfile
Program
README.md Openbook V2 Integration (#836) 2024-04-22 11:37:53 +02:00
RELEASING.md
SECURITY.md
fix-npm-tag.sh
fly.toml
idl-fixup.sh Openbook V2 Integration (#836) 2024-04-22 11:37:53 +02:00
mango_v4.json Allow the insurance fund to be for any bank (#946) 2024-04-23 09:17:53 +02:00
package.json Merge deploy into dev 2024-04-23 11:00:25 +02:00
release-to-devnet.sh
run-anchor-tests.sh
rust-toolchain.toml Openbook V2 Integration (#836) 2024-04-22 11:37:53 +02:00
tsconfig.cjs.json
tsconfig.esm.json
tsconfig.json Openbook V2 Integration (#836) 2024-04-22 11:37:53 +02:00
tsconfig.types.json
update-local-idl.sh
yarn.lock Merge deploy into dev 2024-04-23 11:00:25 +02:00

README.md

work in progress

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 mango-v4 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 mango-v4 crate for building closed-source tools and integrations, including other solana programs that call into the mango program.

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

Development

See DEVELOPING.md and FAQ-DEV.md

Dependencies

  • rust version 1.70.0
  • solana-cli 1.16.7
  • anchor-cli 0.28.0
  • npm 8.1.2
  • node v16.13.1

Deployments

  • devnet: 4MangoMjqJ2firMokCjjGgoK8d4MXcrgL7XJaL3w6fVg
  • mainnet-beta: 4MangoMjqJ2firMokCjjGgoK8d4MXcrgL7XJaL3w6fVg
  • primary mango group on mainnet-beta: 78b8f4cGCwmZ9ysPFMWLaLTkkaYnUjwMJYStWe5RTSSX

Release

For program deployment, see RELEASING.md.

Here are steps followed while performing a npm package release note: the UI currently uses code directly from github, pointing to the ts-client branch

  • use yarn publish to release a new package, ensure compatibility with program release to mainnet-beta
  • fix the tag auto added by yarn to match our internal convention, see script fix-npm-tag.sh, tags should look like this e.g.npm-v0.0.1, note: the npm package version/tag should not necessarily match the latest program deployment