Go to file
Christian Kamm a79ee2c8e2 Fix compile by disabling unadapted state/ structs 2022-02-22 10:09:40 +01:00
migrations First commit 2022-01-21 19:21:46 +01:00
notes add comments from notion 2022-02-10 09:11:39 +01:00
programs/mango-v4 Fix compile by disabling unadapted state/ structs 2022-02-22 10:09:40 +01:00
tests First commit 2022-01-21 19:21:46 +01:00
.gitignore First commit 2022-01-21 19:21:46 +01:00
Anchor.toml First commit 2022-01-21 19:21:46 +01:00
Cargo.lock fix imports 2022-02-10 10:04:47 +01:00
Cargo.toml First commit 2022-01-21 19:21:46 +01:00
README.md Extend note 2022-01-21 19:31:16 +01:00
package.json First commit 2022-01-21 19:21:46 +01:00
run-tests.sh turn off doc tests, make script executable 2022-01-21 19:25:13 +01:00
tsconfig.json First commit 2022-01-21 19:21:46 +01:00
yarn.lock First commit 2022-01-21 19:21:46 +01:00

README.md

Development

  • rustc 1.57.0 (f1edd0429 2021-11-29)
  • anchor-cli 0.20.1
  • npm 8.1.2
  • node v16.13.1

Module structure

As and when we move to a more complete project, we should think of having multiple modules e.g. core/shared, spot, perpetuals, etc., and then each would have its own instructions and state sub module. Goal is that new contributors find relevant code easily and can navigate easily.

programs
└── mango-v4
    ├── Cargo.toml
    ├── Xargo.toml
    └── src
    │    ├── error.rs
    │    ├── instructions # instructions go here, each instruction gets an individual file
    │    │   ├── initialiaze.rs
    │    │   └── mod.rs
    │    ├── lib.rs
    │    └── state # state goes here, each account state gets an individual file
    │       └── mod.rs
    └── tests # rust tests, TODO