Go to file
microwavedcola1 634d442469 ts client boilerplate
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-02-23 11:09:17 +01:00
migrations First commit 2022-01-21 19:21:46 +01:00
programs/mango-v4 Enable anchor seeds extraction 2022-02-23 10:55:23 +01:00
src ts client boilerplate 2022-02-23 11:09:17 +01:00
.gitignore ts client boilerplate 2022-02-23 11:09:17 +01:00
Anchor.toml Enable anchor seeds extraction 2022-02-23 10:55:23 +01:00
Cargo.lock Upgrade to anchor 0.22.0 2022-02-22 10:09:40 +01:00
Cargo.toml First commit 2022-01-21 19:21:46 +01:00
README.md Depend on anchor cli 0.22.0 2022-02-22 16:45:13 +01:00
package.json ts client boilerplate 2022-02-23 11:09:17 +01:00
release.sh ts client boilerplate 2022-02-23 11:09:17 +01:00
tsconfig.json ts client boilerplate 2022-02-23 11:09:17 +01:00
yarn.lock ts client boilerplate 2022-02-23 11:09:17 +01:00

README.md

Development

  • rustc 1.57.0 (f1edd0429 2021-11-29)
  • anchor-cli 0.22.0
  • 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