Go to file
Serge Farny 1c8c8ddb48 liquidator for boost - remove SOL route 2024-03-12 21:42:27 +01:00
.github boost changes 2024-03-01 00:22:22 +01:00
anchor-tests boost changes 2024-03-01 00:22:22 +01:00
audits add audit report for v0.21.0 (#812) 2023-12-08 10:23:48 +01:00
bin liquidator for boost - remove SOL route 2024-03-12 21:42:27 +01:00
cd Update to solana 1.16.14 and anchor 0.28.0 (#718) 2023-10-05 10:56:45 +02:00
docs Add doc generation job (#450) 2023-02-13 08:29:50 +01:00
lib add TokenBalanceLog in token_charge_collateral_fees (#894) 2024-02-29 08:10:13 +01:00
migrations Update package.json build steps and move js scripts out of src folder (#470) 2023-02-22 08:36:59 +01:00
programs program: sequence check as u8 (#909) 2024-03-11 21:40:41 +01:00
py rename 2022-03-01 20:55:10 +01:00
scripts deploy -> dev (#759) 2023-10-19 10:03:07 +02:00
ts/client program: sequence check as u8 (#909) 2024-03-11 21:40:41 +01:00
.dockerignore Update to solana 1.16.14 and anchor 0.28.0 (#718) 2023-10-05 10:56:45 +02:00
.env.sample add dotenv for client config vars 2022-12-05 14:48:06 -05:00
.eslintignore add eslint config and fix errors 2022-08-04 13:42:41 -04:00
.eslintrc.json ts client improvement (#254) 2022-09-29 15:51:09 +02:00
.gitignore deploy -> dev (#759) 2023-10-19 10:03:07 +02:00
.mocharc.json Fix mocha runner 2023-02-22 11:19:03 +01:00
.prettierignore run prettier and add prettierignore 2022-08-04 14:13:46 -04:00
Anchor.toml boost changes 2024-03-01 00:22:22 +01:00
CHANGELOG.md Changelog for v0.23.0 (#903) 2024-03-04 11:20:44 +01:00
Cargo.lock Bump program version to v0.23.0, update idl 2024-03-04 11:22:08 +01:00
Cargo.toml Rust client: Revamp transaction confirmation (#850) 2024-01-17 10:30:25 +01:00
DEVELOPING.md Enable self-trading protection (#533) 2023-05-15 10:40:41 +02:00
Dockerfile Update to solana 1.16.14 and anchor 0.28.0 (#718) 2023-10-05 10:56:45 +02:00
FAQ-DEV.md separate file, editing 2023-11-07 09:02:07 +01:00
HOW-TO-RELEASE.md update 2022-07-14 10:14:23 +02:00
LICENSE License: Mark instructions GPLv3 and everything else MIT (#454) 2023-02-15 08:42:07 +01:00
Procfile Spot based token rebalancer (#541) 2023-04-19 18:15:39 +02:00
Program ts: Additional serum3 support (#196) 2022-08-31 11:36:44 +02:00
README.md boost changes 2024-03-01 00:22:22 +01:00
RELEASING.md boost changes 2024-03-01 00:22:22 +01:00
SECURITY.md add security policy and on-chain metadata (#361) 2023-01-04 18:13:29 +00:00
fix-npm-tag.sh add script to rename tag added by npm 2023-02-01 13:49:31 +01:00
fly.toml quote less 2023-03-20 19:23:47 +01:00
idl-fixup.sh Update Cargo.lock and IDL after merge 2023-07-11 10:39:06 +02:00
mango_v4.json program: sequence check as u8 (#909) 2024-03-11 21:40:41 +01:00
package.json v0.23.0-rc2 2024-02-24 01:53:49 +01:00
release-to-devnet.sh boost changes 2024-03-01 00:22:22 +01:00
run-anchor-tests.sh boost changes 2024-03-01 00:22:22 +01:00
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 Ts keeper (backup for rust keeper) (#546) 2023-04-19 17:42:13 +02:00
tsconfig.esm.json make consistent 2023-03-14 13:14:45 +01:00
tsconfig.json make consistent 2023-03-14 13:14:45 +01:00
tsconfig.types.json v0.9.1 2023-03-13 14:29:47 -04:00
update-local-idl.sh Update anchor to v0.27.0, stop using submodule (#582) 2023-05-12 13:54:53 +02:00
yarn.lock fix multi cancel (#888) 2024-02-20 12:45:06 +01: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: AKeMSYiJekyKfwCc3CUfVNDVAiqk9FfbQVMY3G7RUZUf

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