Inside programs/on-chain-calculator/src/lib.rs
, you can find the program logic. Filling in the TODO parts in this file is your task. Implement the corresponding TODO parts inside lib.rs
, then test your implementation with the command mentioned below, and when you're done, push the changes of lib.rs
to GitHub. Please do not commit any other changes, as it will make the evaluation process more difficult.
The deadline for this task is Tuesday, October 10th, at 23:59 UTC. Note that we will not accept submissions after the deadline.
We will evaluate your submission using the same test suite provided in this task. Therefore, the requirements for this task are to pass 100% of the provided tests.
For this Task you need:
-
- Make sure to use stable version:
rustup default stable
-
- Use v1.17.0
-
- Use v0.28.0
With the setup I described above, you should be able to run the following commands.
-
You should have Yarn installed as it is one of the steps during Anchor installation, so once you clone the repo, you should be able to run:
yarn install
-
To build the project, run:
anchor build
-
To test the project, run:
anchor test
If you encounter any questions or issues during the installation process or have any inquiries related to the task, please feel free to initiate a discussion on Discord within the Issues Forum.
If you're interested in our company, don't hesitate to visit our website, Ackee Blockchain, or reach out to us on Discord. You can also follow us on Twitter for updates. For the most recent Solana News or Solana Twitter.