This repository includes contracts for NEAR Academy
Any content produced by NEAR, or developer resources that NEAR provides, are for educational and inspiration purposes only. NEAR does not encourage, induce or sanction the deployment of any such applications in violation of applicable laws or regulations.
- clone this repo to a local folder
- run
yarn - run
yarn test
- run
yarn testto run all tests- (!) be sure to run
yarn build:releaseat least once before:- run
yarn test:unitto run only unit tests - run
yarn test:simulateto run only simulation tests
- run
- (!) be sure to run
- run
yarn buildto quickly verify build status - run
yarn cleanto clean up build folder
-
Meme contract and test documentation
- see
/src/meme/READMEfor Meme interface - see
/src/meme/__tests__/READMEfor Meme unit testing details
- see
-
Museum contract and test documentation
- see
/src/museum/READMEfor Museum interface - see
/src/museum/__tests__/READMEfor Museum unit testing details
- see
-
simulation tests
- see
/simulation/READMEfor simulation testing
- see
Please note that boilerplate project configuration files have been ommitted from the following lists for simplicity.
src
├── meme <-- Meme contract
│ ├── README.md
│ ├── __tests__
│ │ ├── README.md
│ │ └── index.unit.spec.ts
│ └── assembly
│ ├── index.ts
│ └── models.ts
├── museum <-- Museum contract
│ ├── README.md
│ ├── __tests__
│ │ ├── README.md
│ │ └── index.unit.spec.ts
│ └── assembly
│ ├── index.ts
│ └── models.ts
└── utils.ts <-- shared contract codesimulation <-- simulation tests
├── Cargo.toml
├── README.md
└── src
├── lib.rs
├── meme.rs
└── museum.rs