Go to file
Serge Farny bf6d2a11ec liquidator: forcefully exit process if snapshot job die (#924)
* liquidator: forcefully exit process if snapshot job die

* client: return snapshot_job join handle so it can be watched for early unexpected exit

(cherry picked from commit 2520c7d095)
2024-04-04 09:28:48 +02:00
.github Merge branch 'main' into deploy 2024-03-10 14:26:29 +01:00
anchor-tests chore: fix typos (#778) 2023-11-23 08:59:19 +01:00
audits add audit report for v0.21.0 (#812) 2023-12-08 10:23:48 +01:00
bin liquidator: forcefully exit process if snapshot job die (#924) 2024-04-04 09:28:48 +02:00
cd service-mango-health: monitors/historizes accounts health (#890) 2024-03-01 11:24:56 +01:00
docs
lib liquidator: forcefully exit process if snapshot job die (#924) 2024-04-04 09:28:48 +02:00
migrations
programs Fix merge errors 2024-03-12 11:27:30 +01:00
py
scripts deploy -> dev (#759) 2023-10-19 10:03:07 +02:00
ts/client ts: update script 2024-04-03 12:57:39 +02:00
.dockerignore Update to solana 1.16.14 and anchor 0.28.0 (#718) 2023-10-05 10:56:45 +02:00
.env.sample
.eslintignore
.eslintrc.json
.gitignore deploy -> dev (#759) 2023-10-19 10:03:07 +02:00
.mocharc.json
.prettierignore
Anchor.toml
CHANGELOG.md Fix merge errors 2024-03-12 11:27:30 +01:00
Cargo.lock Fix merge errors 2024-03-12 11:27:30 +01:00
Cargo.toml Rust client: Revamp transaction confirmation (#850) 2024-01-17 10:30:25 +01:00
DEVELOPING.md
Dockerfile Dockerfile: try to fix issue with cargo-chef not building 2024-03-01 11:59:56 +01:00
FAQ-DEV.md separate file, editing 2023-11-07 09:02:07 +01:00
HOW-TO-RELEASE.md
LICENSE
Procfile
Program
README.md separate file, editing 2023-11-07 09:02:07 +01:00
RELEASING.md ci/releasing: Include git sha and refname in release builds (#876) 2024-02-12 15:32:43 +01:00
SECURITY.md
fix-npm-tag.sh
fly.toml
idl-fixup.sh
mango_v4.json Fix merge errors 2024-03-12 11:27:30 +01:00
package.json upgrade mangolana lib 2024-04-02 16:59:28 +02:00
release-to-devnet.sh
run-anchor-tests.sh
rust-toolchain.toml Update to solana 1.16.14 and anchor 0.28.0 (#718) 2023-10-05 10:56:45 +02:00
tsconfig.cjs.json
tsconfig.esm.json
tsconfig.json
tsconfig.types.json
update-local-idl.sh
yarn.lock upgrade mangolana lib 2024-04-02 16:59:28 +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.69.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