Go to file
microwavedcola1 800b6db892 v24.3 program id change to boost
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-08-24 09:33:41 +02:00
.github lib upgrades (#989) 2024-08-08 23:57:07 +02:00
anchor-tests v24.3 program id change to boost 2024-08-24 09:33:41 +02:00
audits add audit report for v0.24.0 (#941) 2024-04-15 09:10:48 +02:00
bin v24.3 program id change to boost 2024-08-24 09:33:41 +02:00
cd add deployment config for sb-on-demand-crank, fix BN import 2024-06-28 14:52:58 +01:00
docs
lib Liquidator: rebalancing - append sequence check before validating TX size 2024-08-10 14:22:51 +02:00
migrations
programs v24.3 program id change to boost 2024-08-24 09:33:41 +02:00
py
scripts deploy -> dev (#759) 2023-10-19 10:03:07 +02:00
ts/client v24.3 program id change to boost 2024-08-24 09:33:41 +02:00
.dockerignore
.env.sample
.eslintignore
.eslintrc.json format 2024-07-29 12:19:31 +02:00
.gitignore ts: sb on demand oracles part 2 2024-06-27 13:11:22 +02:00
.mocharc.json
.prettierignore lib upgrades (#989) 2024-08-08 23:57:07 +02:00
Anchor.toml v24.3 program id change to boost 2024-08-24 09:33:41 +02:00
CHANGELOG.md Program: prepare v0.24.3 2024-08-12 09:19:33 +02:00
Cargo.lock Program: prepare v0.24.3 2024-08-12 09:19:33 +02:00
Cargo.toml Program: add support for pyth v2 account (#980) 2024-07-17 10:21:38 +02:00
DEVELOPING.md
Dockerfile Clients: log git commit info at start time - try to fix for CI (#968) 2024-05-28 15:10:47 +02:00
FAQ-DEV.md separate file, editing 2023-11-07 09:02:07 +01:00
HOW-TO-RELEASE.md
LICENSE
Procfile
Program
README.md v24.3 program id change to boost 2024-08-24 09:33:41 +02:00
RELEASING.md v24.3 program id change to boost 2024-08-24 09:33:41 +02:00
SECURITY.md
eslint.config.mjs bump eslint 2024-07-29 12:09:15 +02:00
fix-npm-tag.sh
idl-fixup.sh
mango_v4.json Program: add a tier string in banks (not used program side) 2024-08-12 09:19:33 +02:00
package-lock.json lib upgrades (#989) 2024-08-08 23:57:07 +02:00
package.json lib upgrades (#989) 2024-08-08 23:57:07 +02:00
release-to-devnet.sh v24.3 program id change to boost 2024-08-24 09:33:41 +02:00
run-anchor-tests.sh v24.3 program id change to boost 2024-08-24 09:33:41 +02:00
rust-toolchain.toml
tsconfig.cjs.json
tsconfig.esm.json
tsconfig.json reset 2024-07-09 09:44:08 +02:00
tsconfig.types.json
update-local-idl.sh
yarn.lock lib upgrades (#989) 2024-08-08 23:57:07 +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: zF2vSz6V9g1YHGmfrzsY497NJzbRr84QUrPry4bLQ25
  • mainnet-beta: zF2vSz6V9g1YHGmfrzsY497NJzbRr84QUrPry4bLQ25
  • 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